bi-sdk-react 0.0.52 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/js/bi-sdk.es.js +14 -14
- package/dist/types/components/context/PageContext.d.ts +2 -0
- package/dist/umd/js/bi-sdk.umd.min.js +12 -12
- package/package.json +1 -1
- package/src/components/context/PageContext.tsx +10 -0
- package/src/components/icon/IconFont.tsx +1 -1
- package/src/components/panel/ScriptPanel.tsx +1 -1
- package/src/components/plugins/@antd/items/HtmlRender.tsx +1 -1
- package/src/example.tsx +1 -1
- package/dist/types/components/context/DesignerContext.d.ts +0 -18
- package/dist/types/components/context/EnvContext.d.ts +0 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see bi-sdk.umd.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ant-design/icons"),require("echarts"),require("react"),require("uuid"),require("dayjs"),require("styled-components"),require("antd"),require("react-dom"),require("@monaco-editor/react")):"function"==typeof define&&define.amd?define(["@ant-design/icons","echarts","react","uuid","dayjs","styled-components","antd","react-dom","@monaco-editor/react"],t):"object"==typeof exports?exports.BiSdk=t(require("@ant-design/icons"),require("echarts"),require("react"),require("uuid"),require("dayjs"),require("styled-components"),require("antd"),require("react-dom"),require("@monaco-editor/react")):e.BiSdk=t(e["@ant-design/icons"],e.echarts,e.react,e.uuid,e.dayjs,e["styled-components"],e.antd,e["react-dom"],e["@monaco-editor/react"])}(this,(e,t,n,r,i,a,o,s,l)=>(()=>{var u={290(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var i=n(352);function a(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,n){var o=t.map(function(t){var o=null==n?t:r(r({},t),{options:r(r({},a(n)),a(t.options))});return(0,i.bind)(e,o)});return function(){o.forEach(function(e){return e()})}}},352(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}},951(e,t,n){"use strict";t.bindAll=t.bind=void 0;var r=n(352);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return r.bind}});var i=n(290);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return i.bindAll}})},965(e,t,n){"use strict";var r=n(426),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,s,l,u,c,d,h=!1;t||(t={}),o=t.debug||!1;try{if(l=r(),u=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(r){o&&console.error("unable to copy using execCommand: ",r),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(r){o&&console.error("unable to copy using clipboardData: ",r),o&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,a),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}},20(e,t,n){"use strict";var r=n(155),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},848(e,t,n){"use strict";e.exports=n(20)},426(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},375(t){"use strict";t.exports=e},247(e){"use strict";e.exports=l},59(e){"use strict";e.exports=o},185(e){"use strict";e.exports=i},190(e){"use strict";e.exports=t},155(e){"use strict";e.exports=n},514(e){"use strict";e.exports=s},694(e){"use strict";e.exports=a},315(e){"use strict";e.exports=r}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return u[e].call(n.exports,n,n.exports,d),n.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return(()=>{"use strict";d.r(h),d.d(h,{PluginType:()=>eu.PluginType,PageCanvas:()=>tx,PageContext:()=>eg,PageDesigner:()=>nn,PageSchema:()=>eu.PageSchema,useDatasource:()=>nl,plugins:()=>mp,PropEditorProps:()=>ec.PropEditorProps,PageProvider:()=>ev,DropContainer:()=>tg});var e,t,n,r,i,a,o,s,l,u,c,p,f,m,g,v,y,x,_,b,w,S,C,j,T,k,I,M,D,O,A,z,R,P,N,L,F,E,B,H,V,W,Y,G,U,q,X,$,Z,K,J,Q,ee,et,en,er,ei,ea,eo,es,el,eu={};d.r(eu),d.d(eu,{P:()=>nr});var ec={};d.r(ec);var ed=d(848),eh=d(155),ep=d.n(eh),ef=d(694),em=d.n(ef);let eg=(0,eh.createContext)({pageId:"",designable:!1,plugins:[],schema:{info:{},datasources:[],scripts:[],variables:[],items:[]},selectedItem:null,atItems:null,setSchema:()=>{},setSelectedItem:()=>{},updateSelectedItem:()=>{},forceUpdate:()=>{},onAddAtItem:()=>{},onRemoveAtItem:()=>{},clearAtItems:()=>{},datasetSelector:void 0,datasetAdd:void 0,fetch:void 0,deviceWidth:0,setDeviceWidth:()=>{},initCallback:()=>{},handleCallback:()=>{},initMethod:()=>{},handleMethod:()=>{},getVars:()=>({}),setVar:()=>{},setItemData:()=>{}}),ev=e=>{let{pageId:t,designable:n,plugins:r,schema:i,selectedItem:a,setSchema:o,setSelectedItem:s,datasetSelector:l,datasetAdd:u,fetch:c,children:d,setItemData:h}=e,[p,f]=(0,eh.useState)(0),[m,g]=(0,eh.useState)([]),[v,y]=(0,eh.useState)({global:{},local:{}}),[x,_]=(0,eh.useState)({}),[b,w]=(0,eh.useState)({}),S=e=>({...v.global,...v.local[e||""]||{}});return(0,eh.useEffect)(()=>{let e={};(i.variables||[]).forEach(t=>{e[t.name]=t.value}),y(t=>({...t,global:e}))},[i.variables]),(0,ed.jsx)(eg.Provider,{value:{pageId:t,designable:!!n,plugins:r||[],schema:i,selectedItem:a,atItems:m,setSchema:o||(()=>{}),setSelectedItem:s||(()=>{}),updateSelectedItem:e=>{null==s||s(Object.assign(a,e||{})),null==o||o({...i})},datasetSelector:l,datasetAdd:u,fetch:c,forceUpdate:()=>{null==o||o({...i})},onAddAtItem:e=>{null!=m&&m.includes(e)||g([...m,e])},onRemoveAtItem:e=>{g(m.filter(t=>t!==e))},clearAtItems:()=>{g([])},deviceWidth:p,setDeviceWidth:f||(()=>{}),initCallback:e=>{let{id:t,callback:n}=e;_(e=>({...e,[t]:n}))},handleCallback:(e,t,n)=>{(e.cascadeIds||[]).forEach(e=>{let r=x[e];if("function"==typeof r){let i=r(t,S(e));if(i){let{target:e,data:t}=i;null==n||n(e,t)}}})},initMethod:e=>{let{id:t,method:n}=e;w(e=>({...e,[t]:n}))},handleMethod:(e,t,n,r)=>{let i=b[t][n];return"function"==typeof i?i({sourceId:e.id,arg:r}):null},getVars:S,setVar:(e,t,n)=>{let r={...v};(e.cascadeIds||[]).forEach(e=>{r.local[e]=r.local[e]||{},r.local[e][t]=n})},setItemData:h},children:d})};function ey(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ex(e,t){if(e){if("string"==typeof e)return ey(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ey(e,t):void 0}}function e_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||ex(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eb=d(951),ew="data-pdnd-honey-pot";function eS(e){return e instanceof Element&&e.hasAttribute(ew)}function eC(e){var t=e_(document.elementsFromPoint(e.x,e.y),2),n=t[0],r=t[1];return n?eS(n)?null!=r?r:null:n:null}function ej(e){return(ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eT(e,t,n){var r;return(r=function(e,t){if("object"!=ej(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ej(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ej(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ek(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 eI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ek(Object(n),!0).forEach(function(t){eT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eM(e){var t,n,r,i,a={x:Math.min((i={x:Math.max((r={x:(n={x:Math.floor((t=e.client).x),y:Math.floor(t.y)}).x-1,y:n.y-1}).x,0),y:Math.max(r.y,0)}).x,window.innerWidth-2),y:Math.min(i.y,window.innerHeight-2)};return DOMRect.fromRect({x:a.x,y:a.y,width:2,height:2})}function eD(e){var t=e.clientRect;return{left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}}function eO(e){return function(e){if(Array.isArray(e))return ey(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ex(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eA(e){var t=null;return function(){if(!t){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t={result:e.apply(this,r)}}return t.result}}var ez=eA(function(){return navigator.userAgent.includes("Firefox")}),eR=eA(function(){var e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}),eP={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};if("undefined"!=typeof window&&eR()){var eN=eL();(0,eb.bindAll)(window,[{type:"dragstart",listener:function(){eN.enterCount=0,eN.isOverWindow=!0}},{type:"drop",listener:eF},{type:"dragend",listener:eF},{type:"dragenter",listener:function(e){eN.isOverWindow||0!==eN.enterCount||(e[eP.isEnteringWindow]=!0),eN.isOverWindow=!0,eN.enterCount++}},{type:"dragleave",listener:function(e){eN.enterCount--,eN.isOverWindow&&0===eN.enterCount&&(e[eP.isLeavingWindow]=!0,eN.isOverWindow=!1)}}],{capture:!0})}function eL(){return{enterCount:0,isOverWindow:!1}}function eF(){eN=eL()}function eE(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var eB=(l=function(e){return e()},u=[],c=null,(p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];u=t,c||(c=requestAnimationFrame(function(){c=null,l.apply(void 0,u)}))}).cancel=function(){c&&(cancelAnimationFrame(c),c=null)},p),eH=(f=null,{schedule:function(e){f={frameId:requestAnimationFrame(function(){f=null,e()}),fn:e}},flush:function(){f&&(cancelAnimationFrame(f.frameId),f.fn(),f=null)}}),eV={isActive:!1};function eW(){return!eV.isActive}function eY(e){var t,n=e.event,r=null==(t=e.current[0])?void 0:t.dropEffect;null!=r&&n.dataTransfer&&(n.dataTransfer.dropEffect=r)}var eG=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,i=e.dispatchEvent;if(eW()){var a,o,s=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,i=eE(t);if("external"===n.startedFrom)return{input:i,dropTargets:[]};var a=r({input:i,source:n.payload,target:t.target,current:[]});return{input:i,dropTargets:a}}({event:t,dragType:n,getDropTargetsOver:r});eV.isActive=!0;var l={current:s};eY({event:t,current:s.dropTargets});var u=function(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function a(e){r(e),i={dropTargets:e.payload.location.current.dropTargets}}return{start:function(e){var r=e.nativeSetDragImage,o={current:n,previous:i,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:o,nativeSetDragImage:r}}),eH.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:o}})})},dragUpdate:function(e){var r=e.current;eH.flush(),eB.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:r}}})},drag:function(e){var r=e.current;eB(function(){eH.flush(),a({eventName:"onDrag",payload:{source:t,location:{initial:n,previous:i,current:r}}})})},drop:function(e){var r=e.current,o=e.updatedSourcePayload;eH.flush(),eB.cancel(),a({eventName:"onDrop",payload:{source:null!=o?o:t,location:{current:r,previous:i,initial:n}}})}}}({source:n.payload,dispatchEvent:i,initial:s}),c=(0,eb.bindAll)(window,[{type:"dragover",listener:function(e){h(e),u.drag({current:l.current})}},{type:"dragenter",listener:h},{type:"dragleave",listener:function(e){(function(e){var t=e.dragLeave,n=t.type,r=t.relatedTarget;return"dragleave"===n&&(eR()?!!eR()&&t.hasOwnProperty(eP.isLeavingWindow):null==r||(ez()?"nodeName"in r&&r.ownerDocument!==document:r instanceof HTMLIFrameElement))})({dragLeave:e})&&(d({input:l.current.input,dropTargets:[]}),"external"===n.startedFrom&&p())}},{type:"drop",listener:function(e){(l.current={dropTargets:l.current.dropTargets,input:eE(e)},l.current.dropTargets.length)?(e.preventDefault(),eY({event:e,current:l.current.dropTargets}),u.drop({current:l.current,updatedSourcePayload:"external"===n.type?n.getDropPayload(e):null}),f()):p()}},{type:"dragend",listener:function(e){l.current={dropTargets:l.current.dropTargets,input:eE(e)},p()}}].concat(eO([{type:"pointermove",listener:(o=0,function(){o<20?o++:a()})},{type:"pointerdown",listener:a=p}])),{capture:!0});u.start({nativeSetDragImage:t.dataTransfer?t.dataTransfer.setDragImage.bind(t.dataTransfer):null})}function d(e){var t=function(e){var t=e.current,n=e.next;if(t.length!==n.length)return!0;for(var r=0;r<t.length;r++)if(t[r].element!==n[r].element)return!0;return!1}({current:l.current.dropTargets,next:e.dropTargets});l.current=e,t&&u.dragUpdate({current:l.current})}function h(e){var t=eE(e),i=r({target:eS(e.target)?eC({x:t.clientX,y:t.clientY}):e.target,input:t,source:n.payload,current:l.current.dropTargets});i.length&&(e.preventDefault(),eY({event:e,current:i})),d({dropTargets:i,input:t})}function p(){l.current.dropTargets.length&&d({dropTargets:[],input:l.current.input}),u.drop({current:l.current,updatedSourcePayload:null}),f()}function f(){eV.isActive=!1,c()}},eU=new Map;function eq(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach(function(e){return e()})}}function eX(e,t){var n=t.attribute,r=t.value;return e.setAttribute(n,r),function(){return e.removeAttribute(n)}}function e$(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 eZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e$(Object(n),!0).forEach(function(t){eT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eK(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eJ(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eJ(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function eJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eQ(e){return e.slice(0).reverse()}function e1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e0(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}var e2=eA(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),e3="text/plain",e4=new WeakMap,e5=(m=null,{bindEvents:function(){return m=null,(0,eb.bind)(window,{type:"pointermove",listener:function(e){m={x:e.clientX,y:e.clientY}},options:{capture:!0}})},getOnPostDispatch:function(){var e=null;return function(t){var n=t.eventName,r=t.payload;if("onDragStart"===n){var i,a,o,s=r.location.initial.input,l=null!=m?m:{x:s.clientX,y:s.clientY};(i=document.createElement("div")).setAttribute(ew,"true"),a=eM({client:l}),Object.assign(i.style,eI(eI({backgroundColor:"transparent",position:"fixed",padding:0,margin:0,boxSizing:"border-box"},eD({clientRect:a})),{},{pointerEvents:"auto",zIndex:0x7fffffff})),document.body.appendChild(i),o=(0,eb.bind)(window,{type:"pointermove",listener:function(e){a=eM({client:{x:e.clientX,y:e.clientY}}),Object.assign(i.style,eD({clientRect:a}))},options:{capture:!0}}),e=function(e){var t,n,r,s=e.current;if(o(),n=(t={client:s,clientRect:a}).client,r=t.clientRect,n.x>=r.x&&n.x<=r.x+r.width&&n.y>=r.y&&n.y<=r.y+r.height)return void i.remove();function l(){u(),i.remove()}var u=(0,eb.bindAll)(window,[{type:"pointerdown",listener:l},{type:"pointermove",listener:l},{type:"focusin",listener:l},{type:"focusout",listener:l},{type:"dragstart",listener:l},{type:"dragenter",listener:l},{type:"dragover",listener:l}],{capture:!0})}}if("onDrop"===n){var u,c=r.location.current.input;null==(u=e)||u({current:{x:c.clientX,y:c.clientY}}),e=null,m=null}}}}),e8=function(e){var t=e.typeKey,n=e.mount,r=e.dispatchEventToSource,i=e.onPostDispatch,a=e.defaultDropEffect,o=function(){var e=new Set,t=null;function n(e){t&&(!e.canMonitor||e.canMonitor(t.canMonitorArgs))&&t.active.add(e)}return{dispatchEvent:function(r){var i=r.eventName,a=r.payload;if("onGenerateDragPreview"===i){t={canMonitorArgs:{initial:a.location.initial,source:a.source},active:new Set};var o,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e1(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e1(e,void 0):void 0}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;n(l)}}catch(e){s.e(e)}finally{s.f()}}if(t){for(var u=Array.from(t.active),c=0;c<u.length;c++){var d,h=u[c];t.active.has(h)&&(null==(d=h[i])||d.call(h,a))}"onDrop"===i&&(t.active.clear(),t=null)}},monitorForConsumers:function(r){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e0(Object(n),!0).forEach(function(t){eT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r);return e.add(i),n(i),eA(function(){e.delete(i),t&&t.active.delete(i)})}}}(),s=function(e){var t=e.typeKey,n=e.defaultDropEffect,r=new WeakMap,i="data-drop-target-for-".concat(t),a="[".concat(i,"]");function o(e){var t,n=e.eventName,i=e.payload,a=eK(i.location.current.dropTargets);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=r.get(s.element),u=eZ(eZ({},i),{},{self:s});null==l||null==(o=l[n])||o.call(l,u)}}catch(e){a.e(e)}finally{a.f()}}var s={onGenerateDragPreview:o,onDrag:o,onDragStart:o,onDrop:o,onDropTargetChange:function(e){var t,n=e.payload,i=new Set(n.location.current.dropTargets.map(function(e){return e.element})),a=new Set,o=eK(n.location.previous.dropTargets);try{for(o.s();!(t=o.n()).done;){var s,l,u=t.value;a.add(u.element);var c=r.get(u.element),d=i.has(u.element),h=eZ(eZ({},n),{},{self:u});null==c||null==(s=c.onDropTargetChange)||s.call(c,h),d||null==c||null==(l=c.onDragLeave)||l.call(c,h)}}catch(e){o.e(e)}finally{o.f()}var p,f=eK(n.location.current.dropTargets);try{for(f.s();!(p=f.n()).done;){var m,g,v=p.value;if(!a.has(v.element)){var y=eZ(eZ({},n),{},{self:v}),x=r.get(v.element);null==x||null==(m=x.onDropTargetChange)||m.call(x,y),null==x||null==(g=x.onDragEnter)||g.call(x,y)}}}catch(e){f.e(e)}finally{f.f()}}};return{dropTargetForConsumers:function(e){return eA(eq(eX(e.element,{attribute:i,value:"true"}),(r.set(e.element,e),function(){return r.delete(e.element)})))},getIsOver:function(e){var t=e.source,i=e.target,o=e.input,s=e.current,l=function e(t){var i,o,s,l,u=t.source,c=t.target,d=t.input,h=t.result,p=void 0===h?[]:h;if(null==c)return p;if(!(c instanceof Element))return c instanceof Node?e({source:u,target:c.parentElement,input:d,result:p}):p;var f=c.closest(a);if(null==f)return p;var m=r.get(f);if(null==m)return p;var g={input:d,source:u,element:m.element};if(m.canDrop&&!m.canDrop(g))return e({source:u,target:m.element.parentElement,input:d,result:p});var v=null!=(i=null==(o=m.getData)?void 0:o.call(m,g))?i:{},y=null!=(s=null==(l=m.getDropEffect)?void 0:l.call(m,g))?s:n,x={data:v,element:m.element,dropEffect:y,isActiveDueToStickiness:!1};return e({source:u,target:m.element.parentElement,input:d,result:[].concat(eO(p),[x])})}({source:t,target:i,input:o});if(l.length>=s.length)return l;for(var u=eQ(s),c=eQ(l),d=[],h=0;h<u.length;h++){var p,f=u[h],m=c[h];if(null!=m){d.push(m);continue}var g=d[h-1],v=u[h-1];if((null==g?void 0:g.element)!==(null==v?void 0:v.element))break;var y=r.get(f.element);if(!y)break;var x={input:o,source:t,element:y.element};if(y.canDrop&&!y.canDrop(x)||!(null!=(p=y.getIsSticky)&&p.call(y,x)))break;d.push(eZ(eZ({},f),{},{isActiveDueToStickiness:!0}))}return eQ(d)},dispatchEvent:function(e){s[e.eventName](e)}}}({typeKey:t,defaultDropEffect:a});function l(e){null==r||r(e),s.dispatchEvent(e),o.dispatchEvent(e),null==i||i(e)}function u(e){eG({event:e.event,dragType:e.dragType,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}return{registerUsage:function(){var e,r;return r=function(e){var t=e.typeKey,n=e.mount,r=eU.get(t);if(r)return r.usageCount++,r;var i={typeKey:t,unmount:n(),usageCount:1};return eU.set(t,i),i}(e={typeKey:t,mount:function(){return n({canStart:eW,start:u})}}),function(){r.usageCount--,r.usageCount>0||(r.unmount(),eU.delete(e.typeKey))}},dropTarget:s.dropTargetForConsumers,monitor:o.monitorForConsumers}}({typeKey:"element",defaultDropEffect:"move",mount:function(e){return eq(e5.bindEvents(),(0,eb.bind)(document,{type:"dragstart",listener:function(t){if(e.canStart(t)&&!t.defaultPrevented&&t.dataTransfer){var n,r,i,a,o,s,l=t.target;if(l instanceof HTMLElement){var u=e4.get(l);if(u){var c=eE(t),d={element:u.element,dragHandle:null!=(n=u.dragHandle)?n:null,input:c};if(u.canDrag&&!u.canDrag(d))return void t.preventDefault();if(u.dragHandle){var h=eC({x:c.clientX,y:c.clientY});if(!u.dragHandle.contains(h))return void t.preventDefault()}var p=null!=(r=null==(i=u.getInitialDataForExternal)?void 0:i.call(u,d))?r:null;if(p)for(var f=0,m=Object.entries(p);f<m.length;f++){var g=e_(m[f],2),v=g[0],y=g[1];t.dataTransfer.setData(v,null!=y?y:"")}!e2()||t.dataTransfer.types.includes(e3)||t.dataTransfer.types.includes("text/uri-list")||t.dataTransfer.setData(e3,"pdnd:android-fallback"),t.dataTransfer.setData("application/vnd.pdnd","");var x={element:u.element,dragHandle:null!=(a=u.dragHandle)?a:null,data:null!=(o=null==(s=u.getInitialData)?void 0:s.call(u,d))?o:{}};e.start({event:t,dragType:{type:"element",payload:x,startedFrom:"internal"}})}}}}}))},dispatchEventToSource:function(e){var t,n,r=e.eventName,i=e.payload;null==(t=e4.get(i.source.element))||null==(n=t[r])||n.call(t,i)},onPostDispatch:e5.getOnPostDispatch()}),e9=e8.dropTarget;function e6(e){return eA(eq(e8.registerUsage(),(e4.set(e.element,e),function(){e4.delete(e.element)}),eX(e.element,{attribute:"draggable",value:"true"})))}e8.monitor;var e7=d(375);let te=(0,e7.createFromIconfontCN)({scriptUrl:"https://at.alicdn.com/t/c/font_5072483_3ofyyta7h1e.js"}),tt=e=>{let{type:t,className:n="",style:r={}}=e;return(0,ed.jsx)(te,{type:t,className:n,style:r})};var tn=d(59),tr=d(514),ti=d.n(tr),ta=d(247),to=d.n(ta);let ts=em().div`
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ant-design/icons"),require("echarts"),require("react"),require("uuid"),require("dayjs"),require("styled-components"),require("antd"),require("react-dom"),require("@monaco-editor/react")):"function"==typeof define&&define.amd?define(["@ant-design/icons","echarts","react","uuid","dayjs","styled-components","antd","react-dom","@monaco-editor/react"],t):"object"==typeof exports?exports.BiSdk=t(require("@ant-design/icons"),require("echarts"),require("react"),require("uuid"),require("dayjs"),require("styled-components"),require("antd"),require("react-dom"),require("@monaco-editor/react")):e.BiSdk=t(e["@ant-design/icons"],e.echarts,e.react,e.uuid,e.dayjs,e["styled-components"],e.antd,e["react-dom"],e["@monaco-editor/react"])}(this,(e,t,n,r,i,a,o,s,l)=>(()=>{var u={327(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var i=n(577);function a(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,n){var o=t.map(function(t){var o=null==n?t:r(r({},t),{options:r(r({},a(n)),a(t.options))});return(0,i.bind)(e,o)});return function(){o.forEach(function(e){return e()})}}},577(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}},592(e,t,n){"use strict";t.bindAll=t.bind=void 0;var r=n(577);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return r.bind}});var i=n(327);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return i.bindAll}})},585(e,t,n){"use strict";var r=n(687),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,s,l,u,c,d,h=!1;t||(t={}),o=t.debug||!1;try{if(l=r(),u=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(r){o&&console.error("unable to copy using execCommand: ",r),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(r){o&&console.error("unable to copy using clipboardData: ",r),o&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,a),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}},921(e,t,n){"use strict";var r=n(155),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},723(e,t,n){"use strict";e.exports=n(921)},687(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},375(t){"use strict";t.exports=e},247(e){"use strict";e.exports=l},59(e){"use strict";e.exports=o},185(e){"use strict";e.exports=i},190(e){"use strict";e.exports=t},155(e){"use strict";e.exports=n},514(e){"use strict";e.exports=s},694(e){"use strict";e.exports=a},315(e){"use strict";e.exports=r}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return u[e].call(n.exports,n,n.exports,d),n.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return(()=>{"use strict";d.r(h),d.d(h,{PluginType:()=>eu.PluginType,PageCanvas:()=>tx,PageContext:()=>eg,PageDesigner:()=>nn,PageSchema:()=>eu.PageSchema,useDatasource:()=>nl,plugins:()=>md,PropEditorProps:()=>ec.PropEditorProps,PageProvider:()=>ev,DropContainer:()=>tg});var e,t,n,r,i,a,o,s,l,u,c,p,f,m,g,v,y,x,_,b,w,S,C,j,T,k,I,M,D,O,A,z,R,P,N,L,F,E,B,H,V,W,G,Y,U,q,X,$,Z,K,J,Q,ee,et,en,er,ei,ea,eo,es,el,eu={};d.r(eu),d.d(eu,{P:()=>nr});var ec={};d.r(ec);var ed=d(723),eh=d(155),ep=d.n(eh),ef=d(694),em=d.n(ef);let eg=(0,eh.createContext)({pageId:"",designable:!1,plugins:[],schema:{info:{},datasources:[],scripts:[],variables:[],items:[]},selectedItem:null,atItems:null,setSchema:()=>{},setSelectedItem:()=>{},updateSelectedItem:()=>{},forceUpdate:()=>{},onAddAtItem:()=>{},onRemoveAtItem:()=>{},clearAtItems:()=>{},datasetSelector:void 0,datasetAdd:void 0,fetch:void 0,deviceWidth:0,setDeviceWidth:()=>{},initCallback:()=>{},handleCallback:()=>{},initMethod:()=>{},handleMethod:()=>{},getVars:()=>({}),setVar:()=>{},getGlobalVar:()=>void 0,setGlobalVar:()=>{},setItemData:()=>{}}),ev=e=>{let{pageId:t,designable:n,plugins:r,schema:i,selectedItem:a,setSchema:o,setSelectedItem:s,datasetSelector:l,datasetAdd:u,fetch:c,children:d,setItemData:h}=e,[p,f]=(0,eh.useState)(0),[m,g]=(0,eh.useState)([]),[v,y]=(0,eh.useState)({global:{},local:{}}),[x,_]=(0,eh.useState)({}),[b,w]=(0,eh.useState)({}),S=e=>({...v.global,...v.local[e||""]||{}});return(0,eh.useEffect)(()=>{let e={};(i.variables||[]).forEach(t=>{e[t.name]=t.value}),y(t=>({...t,global:e}))},[i.variables]),(0,ed.jsx)(eg.Provider,{value:{pageId:t,designable:!!n,plugins:r||[],schema:i,selectedItem:a,atItems:m,setSchema:o||(()=>{}),setSelectedItem:s||(()=>{}),updateSelectedItem:e=>{null==s||s(Object.assign(a,e||{})),null==o||o({...i})},datasetSelector:l,datasetAdd:u,fetch:c,forceUpdate:()=>{null==o||o({...i})},onAddAtItem:e=>{null!=m&&m.includes(e)||g([...m,e])},onRemoveAtItem:e=>{g(m.filter(t=>t!==e))},clearAtItems:()=>{g([])},deviceWidth:p,setDeviceWidth:f||(()=>{}),initCallback:e=>{let{id:t,callback:n}=e;_(e=>({...e,[t]:n}))},handleCallback:(e,t,n)=>{(e.cascadeIds||[]).forEach(e=>{let r=x[e];if("function"==typeof r){let i=r(t,S(e));if(i){let{target:e,data:t}=i;null==n||n(e,t)}}})},initMethod:e=>{let{id:t,method:n}=e;w(e=>({...e,[t]:n}))},handleMethod:(e,t,n,r)=>{let i=b[t][n];return"function"==typeof i?i({sourceId:e.id,arg:r}):null},getVars:S,setVar:(e,t,n)=>{let r={...v};(e.cascadeIds||[]).forEach(e=>{r.local[e]=r.local[e]||{},r.local[e][t]=n})},getGlobalVar:e=>v.global[e],setGlobalVar:(e,t)=>{y(n=>({...n,global:{...n.global,[e]:t}}))},setItemData:h},children:d})};function ey(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ex(e,t){if(e){if("string"==typeof e)return ey(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ey(e,t):void 0}}function e_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||ex(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eb=d(592),ew="data-pdnd-honey-pot";function eS(e){return e instanceof Element&&e.hasAttribute(ew)}function eC(e){var t=e_(document.elementsFromPoint(e.x,e.y),2),n=t[0],r=t[1];return n?eS(n)?null!=r?r:null:n:null}function ej(e){return(ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eT(e,t,n){var r;return(r=function(e,t){if("object"!=ej(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ej(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ej(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ek(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 eI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ek(Object(n),!0).forEach(function(t){eT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eM(e){var t,n,r,i,a={x:Math.min((i={x:Math.max((r={x:(n={x:Math.floor((t=e.client).x),y:Math.floor(t.y)}).x-1,y:n.y-1}).x,0),y:Math.max(r.y,0)}).x,window.innerWidth-2),y:Math.min(i.y,window.innerHeight-2)};return DOMRect.fromRect({x:a.x,y:a.y,width:2,height:2})}function eD(e){var t=e.clientRect;return{left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}}function eO(e){return function(e){if(Array.isArray(e))return ey(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ex(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eA(e){var t=null;return function(){if(!t){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t={result:e.apply(this,r)}}return t.result}}var ez=eA(function(){return navigator.userAgent.includes("Firefox")}),eR=eA(function(){var e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}),eP={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};if(!("u"<typeof window)&&eR()){var eN=eL();(0,eb.bindAll)(window,[{type:"dragstart",listener:function(){eN.enterCount=0,eN.isOverWindow=!0}},{type:"drop",listener:eF},{type:"dragend",listener:eF},{type:"dragenter",listener:function(e){eN.isOverWindow||0!==eN.enterCount||(e[eP.isEnteringWindow]=!0),eN.isOverWindow=!0,eN.enterCount++}},{type:"dragleave",listener:function(e){eN.enterCount--,eN.isOverWindow&&0===eN.enterCount&&(e[eP.isLeavingWindow]=!0,eN.isOverWindow=!1)}}],{capture:!0})}function eL(){return{enterCount:0,isOverWindow:!1}}function eF(){eN=eL()}function eE(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var eB=(l=function(e){return e()},u=[],c=null,(p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];u=t,c||(c=requestAnimationFrame(function(){c=null,l.apply(void 0,u)}))}).cancel=function(){c&&(cancelAnimationFrame(c),c=null)},p),eH=(f=null,{schedule:function(e){f={frameId:requestAnimationFrame(function(){f=null,e()}),fn:e}},flush:function(){f&&(cancelAnimationFrame(f.frameId),f.fn(),f=null)}}),eV={isActive:!1};function eW(){return!eV.isActive}function eG(e){var t,n=e.event,r=null==(t=e.current[0])?void 0:t.dropEffect;null!=r&&n.dataTransfer&&(n.dataTransfer.dropEffect=r)}var eY=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,i=e.dispatchEvent;if(eW()){var a,o,s=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,i=eE(t);if("external"===n.startedFrom)return{input:i,dropTargets:[]};var a=r({input:i,source:n.payload,target:t.target,current:[]});return{input:i,dropTargets:a}}({event:t,dragType:n,getDropTargetsOver:r});eV.isActive=!0;var l={current:s};eG({event:t,current:s.dropTargets});var u=function(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function a(e){r(e),i={dropTargets:e.payload.location.current.dropTargets}}return{start:function(e){var r=e.nativeSetDragImage,o={current:n,previous:i,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:o,nativeSetDragImage:r}}),eH.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:o}})})},dragUpdate:function(e){var r=e.current;eH.flush(),eB.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:r}}})},drag:function(e){var r=e.current;eB(function(){eH.flush(),a({eventName:"onDrag",payload:{source:t,location:{initial:n,previous:i,current:r}}})})},drop:function(e){var r=e.current,o=e.updatedSourcePayload;eH.flush(),eB.cancel(),a({eventName:"onDrop",payload:{source:null!=o?o:t,location:{current:r,previous:i,initial:n}}})}}}({source:n.payload,dispatchEvent:i,initial:s}),c=(0,eb.bindAll)(window,[{type:"dragover",listener:function(e){h(e),u.drag({current:l.current})}},{type:"dragenter",listener:h},{type:"dragleave",listener:function(e){(function(e){var t=e.dragLeave,n=t.type,r=t.relatedTarget;return"dragleave"===n&&(eR()?!!eR()&&t.hasOwnProperty(eP.isLeavingWindow):null==r||(ez()?"nodeName"in r&&r.ownerDocument!==document:r instanceof HTMLIFrameElement))})({dragLeave:e})&&(d({input:l.current.input,dropTargets:[]}),"external"===n.startedFrom&&p())}},{type:"drop",listener:function(e){(l.current={dropTargets:l.current.dropTargets,input:eE(e)},l.current.dropTargets.length)?(e.preventDefault(),eG({event:e,current:l.current.dropTargets}),u.drop({current:l.current,updatedSourcePayload:"external"===n.type?n.getDropPayload(e):null}),f()):p()}},{type:"dragend",listener:function(e){l.current={dropTargets:l.current.dropTargets,input:eE(e)},p()}}].concat(eO([{type:"pointermove",listener:(o=0,function(){o<20?o++:a()})},{type:"pointerdown",listener:a=p}])),{capture:!0});u.start({nativeSetDragImage:t.dataTransfer?t.dataTransfer.setDragImage.bind(t.dataTransfer):null})}function d(e){var t=function(e){var t=e.current,n=e.next;if(t.length!==n.length)return!0;for(var r=0;r<t.length;r++)if(t[r].element!==n[r].element)return!0;return!1}({current:l.current.dropTargets,next:e.dropTargets});l.current=e,t&&u.dragUpdate({current:l.current})}function h(e){var t=eE(e),i=r({target:eS(e.target)?eC({x:t.clientX,y:t.clientY}):e.target,input:t,source:n.payload,current:l.current.dropTargets});i.length&&(e.preventDefault(),eG({event:e,current:i})),d({dropTargets:i,input:t})}function p(){l.current.dropTargets.length&&d({dropTargets:[],input:l.current.input}),u.drop({current:l.current,updatedSourcePayload:null}),f()}function f(){eV.isActive=!1,c()}},eU=new Map;function eq(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach(function(e){return e()})}}function eX(e,t){var n=t.attribute,r=t.value;return e.setAttribute(n,r),function(){return e.removeAttribute(n)}}function e$(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 eZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e$(Object(n),!0).forEach(function(t){eT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eK(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eJ(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eJ(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function eJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eQ(e){return e.slice(0).reverse()}function e1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e0(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}var e2=eA(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),e3="text/plain",e4=new WeakMap,e5=(m=null,{bindEvents:function(){return m=null,(0,eb.bind)(window,{type:"pointermove",listener:function(e){m={x:e.clientX,y:e.clientY}},options:{capture:!0}})},getOnPostDispatch:function(){var e=null;return function(t){var n=t.eventName,r=t.payload;if("onDragStart"===n){var i,a,o,s=r.location.initial.input,l=null!=m?m:{x:s.clientX,y:s.clientY};(i=document.createElement("div")).setAttribute(ew,"true"),a=eM({client:l}),Object.assign(i.style,eI(eI({backgroundColor:"transparent",position:"fixed",padding:0,margin:0,boxSizing:"border-box"},eD({clientRect:a})),{},{pointerEvents:"auto",zIndex:0x7fffffff})),document.body.appendChild(i),o=(0,eb.bind)(window,{type:"pointermove",listener:function(e){a=eM({client:{x:e.clientX,y:e.clientY}}),Object.assign(i.style,eD({clientRect:a}))},options:{capture:!0}}),e=function(e){var t,n,r,s=e.current;if(o(),n=(t={client:s,clientRect:a}).client,r=t.clientRect,n.x>=r.x&&n.x<=r.x+r.width&&n.y>=r.y&&n.y<=r.y+r.height)return void i.remove();function l(){u(),i.remove()}var u=(0,eb.bindAll)(window,[{type:"pointerdown",listener:l},{type:"pointermove",listener:l},{type:"focusin",listener:l},{type:"focusout",listener:l},{type:"dragstart",listener:l},{type:"dragenter",listener:l},{type:"dragover",listener:l}],{capture:!0})}}if("onDrop"===n){var u,c=r.location.current.input;null==(u=e)||u({current:{x:c.clientX,y:c.clientY}}),e=null,m=null}}}}),e8=function(e){var t=e.typeKey,n=e.mount,r=e.dispatchEventToSource,i=e.onPostDispatch,a=e.defaultDropEffect,o=function(){var e=new Set,t=null;function n(e){t&&(!e.canMonitor||e.canMonitor(t.canMonitorArgs))&&t.active.add(e)}return{dispatchEvent:function(r){var i=r.eventName,a=r.payload;if("onGenerateDragPreview"===i){t={canMonitorArgs:{initial:a.location.initial,source:a.source},active:new Set};var o,s=function(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e1(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e1(e,void 0):void 0}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;n(l)}}catch(e){s.e(e)}finally{s.f()}}if(t){for(var u=Array.from(t.active),c=0;c<u.length;c++){var d,h=u[c];t.active.has(h)&&(null==(d=h[i])||d.call(h,a))}"onDrop"===i&&(t.active.clear(),t=null)}},monitorForConsumers:function(r){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e0(Object(n),!0).forEach(function(t){eT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r);return e.add(i),n(i),eA(function(){e.delete(i),t&&t.active.delete(i)})}}}(),s=function(e){var t=e.typeKey,n=e.defaultDropEffect,r=new WeakMap,i="data-drop-target-for-".concat(t),a="[".concat(i,"]");function o(e){var t,n=e.eventName,i=e.payload,a=eK(i.location.current.dropTargets);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=r.get(s.element),u=eZ(eZ({},i),{},{self:s});null==l||null==(o=l[n])||o.call(l,u)}}catch(e){a.e(e)}finally{a.f()}}var s={onGenerateDragPreview:o,onDrag:o,onDragStart:o,onDrop:o,onDropTargetChange:function(e){var t,n=e.payload,i=new Set(n.location.current.dropTargets.map(function(e){return e.element})),a=new Set,o=eK(n.location.previous.dropTargets);try{for(o.s();!(t=o.n()).done;){var s,l,u=t.value;a.add(u.element);var c=r.get(u.element),d=i.has(u.element),h=eZ(eZ({},n),{},{self:u});null==c||null==(s=c.onDropTargetChange)||s.call(c,h),d||null==c||null==(l=c.onDragLeave)||l.call(c,h)}}catch(e){o.e(e)}finally{o.f()}var p,f=eK(n.location.current.dropTargets);try{for(f.s();!(p=f.n()).done;){var m,g,v=p.value;if(!a.has(v.element)){var y=eZ(eZ({},n),{},{self:v}),x=r.get(v.element);null==x||null==(m=x.onDropTargetChange)||m.call(x,y),null==x||null==(g=x.onDragEnter)||g.call(x,y)}}}catch(e){f.e(e)}finally{f.f()}}};return{dropTargetForConsumers:function(e){return eA(eq(eX(e.element,{attribute:i,value:"true"}),(r.set(e.element,e),function(){return r.delete(e.element)})))},getIsOver:function(e){var t=e.source,i=e.target,o=e.input,s=e.current,l=function e(t){var i,o,s,l,u=t.source,c=t.target,d=t.input,h=t.result,p=void 0===h?[]:h;if(null==c)return p;if(!(c instanceof Element))return c instanceof Node?e({source:u,target:c.parentElement,input:d,result:p}):p;var f=c.closest(a);if(null==f)return p;var m=r.get(f);if(null==m)return p;var g={input:d,source:u,element:m.element};if(m.canDrop&&!m.canDrop(g))return e({source:u,target:m.element.parentElement,input:d,result:p});var v=null!=(i=null==(o=m.getData)?void 0:o.call(m,g))?i:{},y=null!=(s=null==(l=m.getDropEffect)?void 0:l.call(m,g))?s:n,x={data:v,element:m.element,dropEffect:y,isActiveDueToStickiness:!1};return e({source:u,target:m.element.parentElement,input:d,result:[].concat(eO(p),[x])})}({source:t,target:i,input:o});if(l.length>=s.length)return l;for(var u=eQ(s),c=eQ(l),d=[],h=0;h<u.length;h++){var p,f=u[h],m=c[h];if(null!=m){d.push(m);continue}var g=d[h-1],v=u[h-1];if((null==g?void 0:g.element)!==(null==v?void 0:v.element))break;var y=r.get(f.element);if(!y)break;var x={input:o,source:t,element:y.element};if(y.canDrop&&!y.canDrop(x)||!(null!=(p=y.getIsSticky)&&p.call(y,x)))break;d.push(eZ(eZ({},f),{},{isActiveDueToStickiness:!0}))}return eQ(d)},dispatchEvent:function(e){s[e.eventName](e)}}}({typeKey:t,defaultDropEffect:a});function l(e){null==r||r(e),s.dispatchEvent(e),o.dispatchEvent(e),null==i||i(e)}function u(e){eY({event:e.event,dragType:e.dragType,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}return{registerUsage:function(){var e,r;return r=function(e){var t=e.typeKey,n=e.mount,r=eU.get(t);if(r)return r.usageCount++,r;var i={typeKey:t,unmount:n(),usageCount:1};return eU.set(t,i),i}(e={typeKey:t,mount:function(){return n({canStart:eW,start:u})}}),function(){r.usageCount--,r.usageCount>0||(r.unmount(),eU.delete(e.typeKey))}},dropTarget:s.dropTargetForConsumers,monitor:o.monitorForConsumers}}({typeKey:"element",defaultDropEffect:"move",mount:function(e){return eq(e5.bindEvents(),(0,eb.bind)(document,{type:"dragstart",listener:function(t){if(e.canStart(t)&&!t.defaultPrevented&&t.dataTransfer){var n,r,i,a,o,s,l=t.target;if(l instanceof HTMLElement){var u=e4.get(l);if(u){var c=eE(t),d={element:u.element,dragHandle:null!=(n=u.dragHandle)?n:null,input:c};if(u.canDrag&&!u.canDrag(d))return void t.preventDefault();if(u.dragHandle){var h=eC({x:c.clientX,y:c.clientY});if(!u.dragHandle.contains(h))return void t.preventDefault()}var p=null!=(r=null==(i=u.getInitialDataForExternal)?void 0:i.call(u,d))?r:null;if(p)for(var f=0,m=Object.entries(p);f<m.length;f++){var g=e_(m[f],2),v=g[0],y=g[1];t.dataTransfer.setData(v,null!=y?y:"")}!e2()||t.dataTransfer.types.includes(e3)||t.dataTransfer.types.includes("text/uri-list")||t.dataTransfer.setData(e3,"pdnd:android-fallback"),t.dataTransfer.setData("application/vnd.pdnd","");var x={element:u.element,dragHandle:null!=(a=u.dragHandle)?a:null,data:null!=(o=null==(s=u.getInitialData)?void 0:s.call(u,d))?o:{}};e.start({event:t,dragType:{type:"element",payload:x,startedFrom:"internal"}})}}}}}))},dispatchEventToSource:function(e){var t,n,r=e.eventName,i=e.payload;null==(t=e4.get(i.source.element))||null==(n=t[r])||n.call(t,i)},onPostDispatch:e5.getOnPostDispatch()}),e9=e8.dropTarget;function e6(e){return eA(eq(e8.registerUsage(),(e4.set(e.element,e),function(){e4.delete(e.element)}),eX(e.element,{attribute:"draggable",value:"true"})))}e8.monitor;var e7=d(375);let te=(0,e7.createFromIconfontCN)({scriptUrl:"https://at.alicdn.com/t/c/font_5072483_8ex0em5yn29.js"}),tt=e=>{let{type:t,className:n="",style:r={}}=e;return(0,ed.jsx)(te,{type:t,className:n,style:r})};var tn=d(59),tr=d(514),ti=d.n(tr),ta=d(247),to=d.n(ta);let ts=em().div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
5
5
|
align-items: flex-end;
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
font-size: 16px;
|
|
677
677
|
color: var(--ant-color-text-secondary);
|
|
678
678
|
}
|
|
679
|
-
`,tB=e=>{let{}=e,{schema:t,selectedItem:n,setSelectedItem:r,plugins:i,forceUpdate:a}=(0,eh.useContext)(eg),o=(0,eh.useMemo)(()=>(i||[]).reduce((e,t)=>(e[t.key]=t,e),{}),[i]),s=(0,eh.useMemo)(()=>{let e=[],n=t=>{Array.isArray(t)&&t.forEach(t=>{e.push(t),Array.isArray(t.children)?n(t.children):"object"==typeof t.children&&t.children&&Object.keys(t.children).forEach(e=>n(t.children[e]))})};return n((null==t?void 0:t.items)||[]),e},[t]),l=(0,eh.useMemo)(()=>s.reduce((e,t)=>(t.id&&(e[t.id]=t),e),{}),[s]),u=e=>{n&&(r(Object.assign(n,{cascadeIds:e})),a())};return(0,ed.jsxs)(tE,{className:"cascade-panel",children:[(0,ed.jsx)(tM,{title:"联动",extra:(null==n?void 0:n.cascadeIds)?(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Dropdown,{menu:{onClick:e=>{let{key:t}=e,r=[...(null==n?void 0:n.cascadeIds)||[]];r.push(String(t)),u&&u(r)},items:s.map(e=>{var t,n;return{key:e.id,label:(0,ed.jsxs)("a",{children:[(0,ed.jsx)(tt,{type:null==(t=o[e.type])?void 0:t.icon})," ",e.name||(null==(n=o[e.type])?void 0:n.label)," (",e.id,")"]})}})},placement:"bottomLeft",trigger:["click"],children:(0,ed.jsxs)("a",{className:"toolbar",children:[(0,ed.jsx)(e7.PlusOutlined,{}),(0,ed.jsx)(e7.CaretDownOutlined,{style:{fontSize:8,verticalAlign:"sub"}})]})})}):null}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(null==n?void 0:n.cascadeIds)&&(0,ed.jsx)("ul",{children:(n.cascadeIds||[]).map((e,t)=>{var r,i,a,s,c;return(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("div",{children:[(0,ed.jsx)(tt,{type:null==(r=o[null==(i=l[e])?void 0:i.type])?void 0:r.icon})," ",(null==(a=l[e])?void 0:a.name)||(null==(s=o[null==(c=l[e])?void 0:c.type])?void 0:s.label)," (",e,")"]}),(0,ed.jsx)(tn.Popconfirm,{title:"确认删除吗?",okText:"确认",cancelText:"取消",onConfirm:()=>{let e=[...n.cascadeIds||[]];e.splice(t,1),u&&u(e)},children:(0,ed.jsx)("a",{children:(0,ed.jsx)(e7.DeleteOutlined,{})})})]},e)})})})]})};var tH=d(
|
|
679
|
+
`,tB=e=>{let{}=e,{schema:t,selectedItem:n,setSelectedItem:r,plugins:i,forceUpdate:a}=(0,eh.useContext)(eg),o=(0,eh.useMemo)(()=>(i||[]).reduce((e,t)=>(e[t.key]=t,e),{}),[i]),s=(0,eh.useMemo)(()=>{let e=[],n=t=>{Array.isArray(t)&&t.forEach(t=>{e.push(t),Array.isArray(t.children)?n(t.children):"object"==typeof t.children&&t.children&&Object.keys(t.children).forEach(e=>n(t.children[e]))})};return n((null==t?void 0:t.items)||[]),e},[t]),l=(0,eh.useMemo)(()=>s.reduce((e,t)=>(t.id&&(e[t.id]=t),e),{}),[s]),u=e=>{n&&(r(Object.assign(n,{cascadeIds:e})),a())};return(0,ed.jsxs)(tE,{className:"cascade-panel",children:[(0,ed.jsx)(tM,{title:"联动",extra:(null==n?void 0:n.cascadeIds)?(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Dropdown,{menu:{onClick:e=>{let{key:t}=e,r=[...(null==n?void 0:n.cascadeIds)||[]];r.push(String(t)),u&&u(r)},items:s.map(e=>{var t,n;return{key:e.id,label:(0,ed.jsxs)("a",{children:[(0,ed.jsx)(tt,{type:null==(t=o[e.type])?void 0:t.icon})," ",e.name||(null==(n=o[e.type])?void 0:n.label)," (",e.id,")"]})}})},placement:"bottomLeft",trigger:["click"],children:(0,ed.jsxs)("a",{className:"toolbar",children:[(0,ed.jsx)(e7.PlusOutlined,{}),(0,ed.jsx)(e7.CaretDownOutlined,{style:{fontSize:8,verticalAlign:"sub"}})]})})}):null}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(null==n?void 0:n.cascadeIds)&&(0,ed.jsx)("ul",{children:(n.cascadeIds||[]).map((e,t)=>{var r,i,a,s,c;return(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("div",{children:[(0,ed.jsx)(tt,{type:null==(r=o[null==(i=l[e])?void 0:i.type])?void 0:r.icon})," ",(null==(a=l[e])?void 0:a.name)||(null==(s=o[null==(c=l[e])?void 0:c.type])?void 0:s.label)," (",e,")"]}),(0,ed.jsx)(tn.Popconfirm,{title:"确认删除吗?",okText:"确认",cancelText:"取消",onConfirm:()=>{let e=[...n.cascadeIds||[]];e.splice(t,1),u&&u(e)},children:(0,ed.jsx)("a",{children:(0,ed.jsx)(e7.DeleteOutlined,{})})})]},e)})})})]})};var tH=d(585),tV=d.n(tH);let tW=()=>{let{schema:e}=(0,eh.useContext)(eg),t=(0,eh.useMemo)(()=>JSON.stringify(e||{},null,2),[e]);return(0,ed.jsxs)("div",{className:"code-panel",style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ed.jsx)(tM,{title:"代码",extra:(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Tooltip,{title:"复制到剪切板",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{tV()(t||"")&&tn.message.success("复制成功")},children:(0,ed.jsx)(e7.CopyOutlined,{})})})})}),(0,ed.jsx)("div",{className:"body",style:{flex:"1 1 auto",display:"flex"},children:(0,ed.jsx)(to(),{height:"100%",defaultLanguage:"json",value:t,options:{lineNumbers:"off",readOnly:!0,minimap:{enabled:!1}}})})]})},tG=em().div`
|
|
680
680
|
display: flex;
|
|
681
681
|
flex-direction: column;
|
|
682
682
|
height: 100%;
|
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
overflow: hidden;
|
|
719
719
|
font-size: 12px;
|
|
720
720
|
}
|
|
721
|
-
`,
|
|
721
|
+
`,tY=e=>{let{plugin:t}=e,n=(0,eh.useRef)(null);return(0,eh.useEffect)(()=>{let e=n.current;if(!e)return;let r=e6({element:e,getInitialData:()=>{let e={id:td(),type:t.key,name:t.label,...JSON.parse(JSON.stringify(t.defaultOptions||{}))};return{id:e.id,data:e}},canDrag:()=>!0,onDragStart:()=>{},onDrop:()=>{}});return()=>r()},[]),(0,ed.jsxs)("div",{className:"plugin drag-move",ref:n,children:[(0,ed.jsx)(tt,{className:"icon",type:t.icon}),(0,ed.jsx)("div",{className:"label",children:t.label})]})},tU=()=>{let{plugins:e}=(0,eh.useContext)(eg),t=(0,eh.useMemo)(()=>{let t=[];return e.forEach(e=>{let n=t.find(t=>t.group===e.group);n?n.items.push(e):t.push({group:e.group,items:[e]})}),t},[e]);return(0,ed.jsxs)(tG,{className:"component-panel",children:[(0,ed.jsx)(tM,{title:"组件库"}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:t.map(e=>(0,ed.jsxs)("div",{className:"plugin-group",children:[(0,ed.jsx)("div",{className:"group-title",children:e.group}),(0,ed.jsx)("div",{className:"plugin-list",children:e.items.map(e=>(0,ed.jsx)(tY,{plugin:e},e.key))})]},e.group))})]})},tq=em().div`
|
|
722
722
|
display: flex;
|
|
723
723
|
flex-direction: column;
|
|
724
724
|
height: 100%;
|
|
@@ -846,7 +846,7 @@
|
|
|
846
846
|
font-size: 14px;
|
|
847
847
|
padding: 0 50px;
|
|
848
848
|
}
|
|
849
|
-
`,t3=()=>{let{schema:e,setSchema:t}=(0,eh.useContext)(eg),[n,r]=ep().useState(!1),[i,a]=ep().useState(-1),[o]=tn.Form.useForm(),s=(0,eh.useMemo)(()=>e.scripts||[],[e]),l=n=>{t({...e,scripts:n})},u=async()=>{let e=await o.validateFields().catch(()=>null);if(!e)return;let t=[...s];-1===i?t.push({id:Math.random().toString(36).slice(2,10),...e}):t[i]={...t[i],...e},l&&l(t),r(!1),a(-1),o.resetFields()};return(0,ed.jsxs)(t2,{className:"script-panel",children:[(0,ed.jsx)(tM,{title:"脚本",extra:(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{a(-1),o.setFieldsValue({name:"",script:"return {};"}),r(!0)},children:"+"})})}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(0,ed.jsx)("ul",{children:s.map((e,t)=>(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("div",{title:e.name,children:[(0,ed.jsx)(tt,{type:"icon-drag"})," ",e.name]}),(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{a(t),o.setFieldsValue({name:e.name,script:e.script}),r(!0)},children:(0,ed.jsx)(e7.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e=[...s];e.splice(t,1),l&&l(e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})]})]},e.id||t))})}),(0,ed.jsx)(tn.Modal,{title:"添加脚本",open:n,width:600,styles:{body:{maxHeight:"calc(100vh - 250px)",overflow:"auto"}},onCancel:()=>r(!1),footer:(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)(tn.Button,{type:"primary",onClick:u,children:"确定"}),(0,ed.jsx)(tn.Button,{onClick:()=>r(!1),children:"取消"})]}),children:(0,ed.jsxs)(tn.Form,{form:o,layout:"vertical",children:[(0,ed.jsx)(tn.Form.Item,{label:"脚本名称",name:"name",rules:[{required:!0,message:"请输入脚本名称"}],children:(0,ed.jsx)(tn.Input,{})}),(0,ed.jsx)(tn.Form.Item,{label:"脚本语句",name:"script",rules:[{required:!0,message:"请输入脚本语句"}],children:(0,ed.jsxs)("div",{style:{border:"1px solid #d9d9d9"
|
|
849
|
+
`,t3=()=>{let{schema:e,setSchema:t}=(0,eh.useContext)(eg),[n,r]=ep().useState(!1),[i,a]=ep().useState(-1),[o]=tn.Form.useForm(),s=(0,eh.useMemo)(()=>e.scripts||[],[e]),l=n=>{t({...e,scripts:n})},u=async()=>{let e=await o.validateFields().catch(()=>null);if(!e)return;let t=[...s];-1===i?t.push({id:Math.random().toString(36).slice(2,10),...e}):t[i]={...t[i],...e},l&&l(t),r(!1),a(-1),o.resetFields()};return(0,ed.jsxs)(t2,{className:"script-panel",children:[(0,ed.jsx)(tM,{title:"脚本",extra:(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>{a(-1),o.setFieldsValue({name:"",script:"return {};"}),r(!0)},children:"+"})})}),(0,ed.jsx)("div",{className:"body beautified_scrollbar",children:(0,ed.jsx)("ul",{children:s.map((e,t)=>(0,ed.jsxs)("li",{children:[(0,ed.jsxs)("div",{title:e.name,children:[(0,ed.jsx)(tt,{type:"icon-drag"})," ",e.name]}),(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{a(t),o.setFieldsValue({name:e.name,script:e.script}),r(!0)},children:(0,ed.jsx)(e7.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e=[...s];e.splice(t,1),l&&l(e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})]})]},e.id||t))})}),(0,ed.jsx)(tn.Modal,{title:"添加脚本",open:n,width:600,styles:{body:{maxHeight:"calc(100vh - 250px)",overflow:"auto"}},onCancel:()=>r(!1),footer:(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)(tn.Button,{type:"primary",onClick:u,children:"确定"}),(0,ed.jsx)(tn.Button,{onClick:()=>r(!1),children:"取消"})]}),children:(0,ed.jsxs)(tn.Form,{form:o,layout:"vertical",children:[(0,ed.jsx)(tn.Form.Item,{label:"脚本名称",name:"name",rules:[{required:!0,message:"请输入脚本名称"}],children:(0,ed.jsx)(tn.Input,{})}),(0,ed.jsx)(tn.Form.Item,{label:"脚本语句",name:"script",rules:[{required:!0,message:"请输入脚本语句"}],children:(0,ed.jsxs)("div",{style:{border:"1px solid #d9d9d9"},children:[(0,ed.jsxs)("div",{className:"function-wrapper",children:["function fixed(data) ","{"]}),(0,ed.jsx)(to(),{height:"200px",defaultLanguage:"javascript",value:o.getFieldValue("script"),onChange:e=>o.setFieldsValue({script:e||""}),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}}),(0,ed.jsx)("div",{className:"function-wrapper",children:"}"})]})})]})})]})},t4=em().div`
|
|
850
850
|
display: flex;
|
|
851
851
|
flex-direction: column;
|
|
852
852
|
height: 100%;
|
|
@@ -1044,7 +1044,7 @@
|
|
|
1044
1044
|
background: transparent;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
`,nt=e=>{let{open:t,onCancel:n,onOk:r}=e,[i,a]=(0,eh.useState)(JSON.stringify({info:{},datasources:[],scripts:[],variables:[],items:[]}));return(0,ed.jsx)(tn.Modal,{title:"导入页面",open:t,width:800,onCancel:n,onOk:()=>null==r?void 0:r(JSON.parse(i)),okText:"导入",cancelText:"取消",styles:{body:{height:"calc(100vh - 250px)",overflow:"auto"}},children:(0,ed.jsx)("div",{className:"body",style:{flex:"1 1 auto",display:"flex",height:"100%"},children:(0,ed.jsx)(ta.Editor,{height:"100%",defaultLanguage:"json",value:i,options:{minimap:{enabled:!1}},onChange:e=>a(e||"")})})})},nn=ep().forwardRef((e,t)=>{var n;let r,{pageId:i,agentList:a=[],plugins:o=[],headerExtra:s,datasourceEnable:l=!0,scriptEnable:u=!0,datasetPanel:c,datasetSelector:d,datasetAdd:h,fetch:p,onSave:f,loading:m=!1}=e,g=(0,eh.useRef)(null),v=(0,eh.useRef)(null),[y,x]=(0,eh.useState)(1),[_,b]=(0,eh.useState)([]),[w,S]=(0,eh.useState)([]),[C,j]=(0,eh.useState)(!1),[T,k]=(0,eh.useState)("desktop"),[I,M]=(0,eh.useState)("component"),[D,O]=(0,eh.useState)((null==p?void 0:p.ai)?"ai":"props"),[A,z]=(0,eh.useState)(!0),[R,P]=(0,eh.useState)(!0),[N,L]=(0,eh.useState)(null),[F,E]=(0,eh.useState)({info:{},datasources:[],scripts:[],variables:[],items:[]}),[B,H]=(0,eh.useState)(!0),[V,W]=(0,eh.useState)(!1),[Y,G]=(0,eh.useState)(!1),U=(0,eh.useMemo)(()=>{let e=A?"250px":"",t=R?"400px":"";return{gridTemplateColumns:`${e} 1fr ${t}`}},[A,R]),q=(0,eh.useMemo)(()=>({display:A?"flex":"none"}),[A]),X=(0,eh.useMemo)(()=>({display:R?"flex":"none"}),[R]);n=[F],(r=(0,eh.useRef)()).current===JSON.stringify(n)&&r.current||(r.current=JSON.stringify(n),(()=>{C||(b(e=>e.length?[...e,JSON.parse(JSON.stringify(F))].slice(-50):[JSON.parse(JSON.stringify(F))]),S([]))})()),(0,eh.useImperativeHandle)(t,()=>({handleOpen(e){j(!0),$(e.items),E(e),b([JSON.parse(JSON.stringify(e))]),S([]),setTimeout(()=>j(!1),0)}}));let $=(e,t)=>{e&&e.forEach(e=>{e.id||(e.id=t||td()),Array.isArray(e.children)?$(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>{Array.isArray(e.children[t])&&$(e.children[t],td())})})},Z=e=>{var t,n,r;if((null==(t=e.datasets)?void 0:t.length)&&(null==v||null==(n=v.current)?void 0:n.reload)&&v.current.reload(),e.schema){let t=JSON.parse(JSON.stringify(e.schema));$(t.items),E(t)}else if(null==(r=e.pageItems)?void 0:r.length){let t=new Map;e.pageItems.forEach(e=>{t.has(e.targetId)||t.set(e.targetId,[]),t.get(e.targetId).push(e)});let n=JSON.parse(JSON.stringify(F)),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((n,i)=>{t.has(n.id)&&t.get(n.id).forEach(t=>{let{position:r,insertSlot:a,pageItem:s}=t;switch(r){case"before":e.splice(i,0,s);break;case"after":e.splice(i+1,0,s);break;case"replace":Object.keys(n).forEach(e=>{"id"!==e&&delete n[e]}),Object.assign(n,s);break;case"insert":var l,u,c;let d=o.find(e=>e.key===n.type);Array.isArray(null==d||null==(l=d.defaultOptions)?void 0:l.children)?n.children=[...n.children||[],s]:"object"==typeof(null==d||null==(u=d.defaultOptions)?void 0:u.children)&&a&&(n.children={...n.children||{},[a]:[...(null==(c=n.children)?void 0:c[a])||[],s]})}}),Array.isArray(n.children)?r(n.children):"object"==typeof n.children&&n.children&&Object.keys(n.children).forEach(e=>{Array.isArray(n.children[e])&&r(n.children[e])})})};r(n.items),E(n)}},K=(0,eh.useMemo)(()=>"cascade"!==D||(null==N?void 0:N.cascadeIds)?D:"props",[N,D]),J=(0,eh.useMemo)(()=>(o||[]).find(e=>e.key===(null==N?void 0:N.type)),[o,null==N?void 0:N.type]);return(0,ed.jsxs)(ev,{pageId:i,designable:B,plugins:o,schema:F,selectedItem:N,setSchema:E,setSelectedItem:L,datasetSelector:d,datasetAdd:h,fetch:p,children:[(0,ed.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 24px",borderBottom:"solid 1px #e8e8e8"},children:[(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)("span",{style:{fontSize:16,fontWeight:500},children:"创建数据报表"}),(0,ed.jsx)(tn.Divider,{orientation:"vertical"}),(0,ed.jsx)(tn.Tooltip,{title:"保存",children:(0,ed.jsx)(tn.Button,{type:"link",className:"toolbar",onClick:()=>{null==f||f(F)},loading:m,children:(0,ed.jsx)(e7.SaveOutlined,{})})}),(0,ed.jsx)(tn.Divider,{orientation:"vertical"}),(0,ed.jsx)(tn.Tooltip,{title:"撤销",children:(0,ed.jsx)("a",{className:`toolbar ${_.length>1?"active":""}`,onClick:()=>{b(e=>{if(e.length<=1)return e;j(!0);let t=e[e.length-2];return S(e=>[...e,JSON.parse(JSON.stringify(F))]),E(t),L(null),setTimeout(()=>j(!1),0),e.slice(0,-1)})},children:(0,ed.jsx)(e7.UndoOutlined,{})})}),(0,ed.jsx)(tn.Tooltip,{title:"重做",children:(0,ed.jsx)("a",{className:`toolbar ${w.length>0?"active":""}`,onClick:()=>{S(e=>e.length?(j(!0),b(e=>[...e,JSON.parse(JSON.stringify(F))]),E(e[e.length-1]),L(null),setTimeout(()=>j(!1),0),e.slice(0,-1)):e)},children:(0,ed.jsx)(e7.RedoOutlined,{})})}),(0,ed.jsx)(tn.Divider,{orientation:"vertical"}),(0,ed.jsx)(tn.Tooltip,{title:"导入JSON",children:(0,ed.jsx)("a",{className:`toolbar ${w.length>0?"active":""}`,onClick:()=>{W(!0)},children:(0,ed.jsx)(e7.ImportOutlined,{})})})]}),(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)(tn.Tooltip,{title:"缩小",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(parseFloat(Math.max(y-.1,.5).toFixed(1))),children:(0,ed.jsx)(e7.ZoomOutOutlined,{})})}),(0,ed.jsxs)("div",{style:{fontSize:12,color:"#999",userSelect:"none"},children:[(100*y).toFixed(0),"%"]}),(0,ed.jsx)(tn.Tooltip,{title:"放大",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(parseFloat(Math.min(y+.1,2).toFixed(1))),children:(0,ed.jsx)(e7.ZoomInOutlined,{})})}),(0,ed.jsx)(tn.Tooltip,{title:"重置缩放",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(1),children:(0,ed.jsx)(tt,{type:"icon-zoom-reset"})})}),(0,ed.jsx)(tn.Divider,{orientation:"vertical"}),(0,ed.jsx)(tn.Tooltip,{title:"切换左侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${A?"active":""}`,onClick:()=>{z(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tt,{type:"icon-sider-l"})})}),(0,ed.jsx)(tn.Tooltip,{title:"切换右侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${R?"active":""}`,onClick:()=>{P(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tt,{type:"icon-sider-r"})})}),s]})]}),(0,ed.jsxs)(ne,{style:U,children:[(0,ed.jsxs)("div",{className:"left",style:q,children:[(0,ed.jsx)("div",{style:{padding:"22px 1px 22px 0",borderRight:"solid 1px #e8e8e8"},children:(0,ed.jsxs)(tn.Radio.Group,{value:I,onChange:e=>M(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"left-pane-tabs",children:[(0,ed.jsx)(tn.Tooltip,{title:"组件",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"component",children:(0,ed.jsx)(tt,{type:"icon-puzzle"})})}),(0,ed.jsx)(tn.Tooltip,{title:"图层",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"layer",children:(0,ed.jsx)(tt,{type:"icon-outline"})})}),!!c&&(0,ed.jsx)(tn.Tooltip,{title:"数据集",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"dataset",children:(0,ed.jsx)(tt,{type:"icon-dataset"})})}),l&&(0,ed.jsx)(tn.Tooltip,{title:"数据源",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"datasource",title:"数据源",children:(0,ed.jsx)(tt,{type:"icon-datasource"})})}),u&&(0,ed.jsx)(tn.Tooltip,{title:"脚本",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"script",children:(0,ed.jsx)(tt,{type:"icon-js"})})}),(0,ed.jsx)(tn.Tooltip,{title:"环境变量",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"env",children:(0,ed.jsx)(tt,{type:"icon-variable"})})}),(0,ed.jsx)(tn.Tooltip,{title:"源码",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"code",children:(0,ed.jsx)(tt,{type:"icon-json"})})})]})}),(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:["component"===I&&(0,ed.jsx)(tU,{}),"layer"===I&&(0,ed.jsx)(tK,{}),l&&"datasource"===I&&(0,ed.jsx)(tX,{}),u&&"script"===I&&(0,ed.jsx)(t3,{}),"env"===I&&(0,ed.jsx)(t5,{}),"code"===I&&(0,ed.jsx)(tW,{}),!!c&&"dataset"===I&&(0,ed.jsx)(t9,{ref:v,renderNode:c})]})]}),(0,ed.jsxs)("div",{className:"center",style:{flex:"1 1 auto"},children:[(0,ed.jsx)(tM,{title:"页面",extra:(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)(tn.Button,{size:"small",type:B?"default":"primary",icon:B?(0,ed.jsx)(e7.EyeInvisibleOutlined,{}):(0,ed.jsx)(e7.EyeOutlined,{}),onClick:()=>H(!B)}),(0,ed.jsxs)(tn.Radio.Group,{value:T,onChange:e=>k(e.target.value),size:"small",buttonStyle:"outline",children:[(0,ed.jsx)(tn.Radio.Button,{value:"desktop",title:"桌面",children:(0,ed.jsx)(e7.DesktopOutlined,{})}),(0,ed.jsx)(tn.Radio.Button,{value:"mobile",title:"移动设备",children:(0,ed.jsx)(e7.MobileOutlined,{})}),(0,ed.jsx)(tn.Radio.Button,{value:"tablet",title:"平板设备",children:(0,ed.jsx)(e7.TabletOutlined,{})})]})]})}),(0,ed.jsx)("div",{className:["body beautified_scrollbar always",T].join(" "),children:(0,ed.jsx)("div",{style:{transform:`scale(${y})`,transformOrigin:"top center"},children:(0,ed.jsx)(ty,{ref:g,device:T})})})]}),(0,ed.jsxs)("div",{className:"right",style:X,children:[(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:[(0,ed.jsx)(tz,{agentList:a,onEffect:Z,style:{display:"ai"===K&&(null==p?void 0:p.ai)?void 0:"none"}}),"props"===K&&(0,ed.jsx)(t1,{datasourceEnable:l}),"cascade"===K&&(null==N?void 0:N.cascadeIds)&&(0,ed.jsx)(tB,{}),"events"===K&&(null==J?void 0:J.events)&&(0,ed.jsx)(t7,{})]}),(0,ed.jsx)("div",{style:{padding:"22px 0",borderLeft:"solid 1px #e8e8e8",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},children:(0,ed.jsxs)(tn.Radio.Group,{value:K,onChange:e=>O(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"right-pane-tabs",children:[(null==p?void 0:p.ai)&&(0,ed.jsx)(tn.Tooltip,{title:"智能助理",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"ai",children:(0,ed.jsx)(tt,{type:"icon-assistant"})})}),(0,ed.jsx)(tn.Tooltip,{title:"属性",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"props",children:(0,ed.jsx)(tt,{type:"icon-info"})})}),(null==N?void 0:N.cascadeIds)&&(0,ed.jsx)(tn.Tooltip,{title:"联动",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"cascade",children:(0,ed.jsx)(tt,{type:"icon-cascade"})})}),(null==J?void 0:J.events)&&(0,ed.jsx)(tn.Tooltip,{title:"事件",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"events",children:(0,ed.jsx)(tt,{type:"icon-thunderbolt"})})})]})})]})]})]}),(0,ed.jsx)(nt,{open:V,onOk:e=>{W(!1),E(e)},onCancel:()=>W(!1)}),(0,ed.jsx)(tn.Drawer,{open:Y,size:400,mask:!1,title:null,closable:!1,styles:{body:{padding:0}},onClose:()=>G(!1),children:(0,ed.jsx)(tz,{agentList:a,headExtra:(0,ed.jsx)(tn.Button,{type:"link",icon:(0,ed.jsx)(e7.CloseOutlined,{}),onClick:()=>G(!1)}),onEffect:Z})})]})});var nr=((g={}).STRING="STRING",g.NUMBER="NUMBER",g.BOOLEAN="BOOLEAN",g.OBJECT="OBJECT",g.ARRAY="ARRAY",g);let ni=em()(e7.InfoCircleOutlined)`
|
|
1047
|
+
`,nt=e=>{let{open:t,onCancel:n,onOk:r}=e,[i,a]=(0,eh.useState)(JSON.stringify({info:{},datasources:[],scripts:[],variables:[],items:[]}));return(0,ed.jsx)(tn.Modal,{title:"导入页面",open:t,width:800,onCancel:n,onOk:()=>null==r?void 0:r(JSON.parse(i)),okText:"导入",cancelText:"取消",styles:{body:{height:"calc(100vh - 250px)",overflow:"auto"}},children:(0,ed.jsx)("div",{className:"body",style:{flex:"1 1 auto",display:"flex",height:"100%"},children:(0,ed.jsx)(ta.Editor,{height:"100%",defaultLanguage:"json",value:i,options:{minimap:{enabled:!1}},onChange:e=>a(e||"")})})})},nn=ep().forwardRef((e,t)=>{var n;let r,{pageId:i,agentList:a=[],plugins:o=[],headerExtra:s,datasourceEnable:l=!0,scriptEnable:u=!0,datasetPanel:c,datasetSelector:d,datasetAdd:h,fetch:p,onSave:f,loading:m=!1}=e,g=(0,eh.useRef)(null),v=(0,eh.useRef)(null),[y,x]=(0,eh.useState)(1),[_,b]=(0,eh.useState)([]),[w,S]=(0,eh.useState)([]),[C,j]=(0,eh.useState)(!1),[T,k]=(0,eh.useState)("desktop"),[I,M]=(0,eh.useState)("component"),[D,O]=(0,eh.useState)((null==p?void 0:p.ai)?"ai":"props"),[A,z]=(0,eh.useState)(!0),[R,P]=(0,eh.useState)(!0),[N,L]=(0,eh.useState)(null),[F,E]=(0,eh.useState)({info:{},datasources:[],scripts:[],variables:[],items:[]}),[B,H]=(0,eh.useState)(!0),[V,W]=(0,eh.useState)(!1),[G,Y]=(0,eh.useState)(!1),U=(0,eh.useMemo)(()=>{let e=A?"250px":"",t=R?"400px":"";return{gridTemplateColumns:`${e} 1fr ${t}`}},[A,R]),q=(0,eh.useMemo)(()=>({display:A?"flex":"none"}),[A]),X=(0,eh.useMemo)(()=>({display:R?"flex":"none"}),[R]);n=[F],(r=(0,eh.useRef)()).current===JSON.stringify(n)&&r.current||(r.current=JSON.stringify(n),(()=>{C||(b(e=>e.length?[...e,JSON.parse(JSON.stringify(F))].slice(-50):[JSON.parse(JSON.stringify(F))]),S([]))})()),(0,eh.useImperativeHandle)(t,()=>({handleOpen(e){j(!0),$(e.items),E(e),b([JSON.parse(JSON.stringify(e))]),S([]),setTimeout(()=>j(!1),0)}}));let $=(e,t)=>{e&&e.forEach(e=>{e.id||(e.id=t||td()),Array.isArray(e.children)?$(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>{Array.isArray(e.children[t])&&$(e.children[t],td())})})},Z=e=>{var t,n,r;if((null==(t=e.datasets)?void 0:t.length)&&(null==v||null==(n=v.current)?void 0:n.reload)&&v.current.reload(),e.schema){let t=JSON.parse(JSON.stringify(e.schema));$(t.items),E(t)}else if(null==(r=e.pageItems)?void 0:r.length){let t=new Map;e.pageItems.forEach(e=>{t.has(e.targetId)||t.set(e.targetId,[]),t.get(e.targetId).push(e)});let n=JSON.parse(JSON.stringify(F)),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((n,i)=>{t.has(n.id)&&t.get(n.id).forEach(t=>{let{position:r,insertSlot:a,pageItem:s}=t;switch(r){case"before":e.splice(i,0,s);break;case"after":e.splice(i+1,0,s);break;case"replace":Object.keys(n).forEach(e=>{"id"!==e&&delete n[e]}),Object.assign(n,s);break;case"insert":var l,u,c;let d=o.find(e=>e.key===n.type);Array.isArray(null==d||null==(l=d.defaultOptions)?void 0:l.children)?n.children=[...n.children||[],s]:"object"==typeof(null==d||null==(u=d.defaultOptions)?void 0:u.children)&&a&&(n.children={...n.children||{},[a]:[...(null==(c=n.children)?void 0:c[a])||[],s]})}}),Array.isArray(n.children)?r(n.children):"object"==typeof n.children&&n.children&&Object.keys(n.children).forEach(e=>{Array.isArray(n.children[e])&&r(n.children[e])})})};r(n.items),E(n)}},K=(0,eh.useMemo)(()=>"cascade"!==D||(null==N?void 0:N.cascadeIds)?D:"props",[N,D]),J=(0,eh.useMemo)(()=>(o||[]).find(e=>e.key===(null==N?void 0:N.type)),[o,null==N?void 0:N.type]);return(0,ed.jsxs)(ev,{pageId:i,designable:B,plugins:o,schema:F,selectedItem:N,setSchema:E,setSelectedItem:L,datasetSelector:d,datasetAdd:h,fetch:p,children:[(0,ed.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 24px",borderBottom:"solid 1px #e8e8e8"},children:[(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)("span",{style:{fontSize:16,fontWeight:500},children:"创建数据报表"}),(0,ed.jsx)(tn.Divider,{orientation:"vertical"}),(0,ed.jsx)(tn.Tooltip,{title:"保存",children:(0,ed.jsx)(tn.Button,{type:"link",className:"toolbar",onClick:()=>{null==f||f(F)},loading:m,children:(0,ed.jsx)(e7.SaveOutlined,{})})}),(0,ed.jsx)(tn.Divider,{orientation:"vertical"}),(0,ed.jsx)(tn.Tooltip,{title:"撤销",children:(0,ed.jsx)("a",{className:`toolbar ${_.length>1?"active":""}`,onClick:()=>{b(e=>{if(e.length<=1)return e;j(!0);let t=e[e.length-2];return S(e=>[...e,JSON.parse(JSON.stringify(F))]),E(t),L(null),setTimeout(()=>j(!1),0),e.slice(0,-1)})},children:(0,ed.jsx)(e7.UndoOutlined,{})})}),(0,ed.jsx)(tn.Tooltip,{title:"重做",children:(0,ed.jsx)("a",{className:`toolbar ${w.length>0?"active":""}`,onClick:()=>{S(e=>e.length?(j(!0),b(e=>[...e,JSON.parse(JSON.stringify(F))]),E(e[e.length-1]),L(null),setTimeout(()=>j(!1),0),e.slice(0,-1)):e)},children:(0,ed.jsx)(e7.RedoOutlined,{})})}),(0,ed.jsx)(tn.Divider,{orientation:"vertical"}),(0,ed.jsx)(tn.Tooltip,{title:"导入JSON",children:(0,ed.jsx)("a",{className:`toolbar ${w.length>0?"active":""}`,onClick:()=>{W(!0)},children:(0,ed.jsx)(e7.ImportOutlined,{})})})]}),(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)(tn.Tooltip,{title:"缩小",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(parseFloat(Math.max(y-.1,.5).toFixed(1))),children:(0,ed.jsx)(e7.ZoomOutOutlined,{})})}),(0,ed.jsxs)("div",{style:{fontSize:12,color:"#999",userSelect:"none"},children:[(100*y).toFixed(0),"%"]}),(0,ed.jsx)(tn.Tooltip,{title:"放大",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(parseFloat(Math.min(y+.1,2).toFixed(1))),children:(0,ed.jsx)(e7.ZoomInOutlined,{})})}),(0,ed.jsx)(tn.Tooltip,{title:"重置缩放",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>x(1),children:(0,ed.jsx)(tt,{type:"icon-zoom-reset"})})}),(0,ed.jsx)(tn.Divider,{orientation:"vertical"}),(0,ed.jsx)(tn.Tooltip,{title:"切换左侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${A?"active":""}`,onClick:()=>{z(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tt,{type:"icon-sider-l"})})}),(0,ed.jsx)(tn.Tooltip,{title:"切换右侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${R?"active":""}`,onClick:()=>{P(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tt,{type:"icon-sider-r"})})}),s]})]}),(0,ed.jsxs)(ne,{style:U,children:[(0,ed.jsxs)("div",{className:"left",style:q,children:[(0,ed.jsx)("div",{style:{padding:"22px 1px 22px 0",borderRight:"solid 1px #e8e8e8"},children:(0,ed.jsxs)(tn.Radio.Group,{value:I,onChange:e=>M(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"left-pane-tabs",children:[(0,ed.jsx)(tn.Tooltip,{title:"组件",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"component",children:(0,ed.jsx)(tt,{type:"icon-puzzle"})})}),(0,ed.jsx)(tn.Tooltip,{title:"图层",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"layer",children:(0,ed.jsx)(tt,{type:"icon-outline"})})}),!!c&&(0,ed.jsx)(tn.Tooltip,{title:"数据集",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"dataset",children:(0,ed.jsx)(tt,{type:"icon-dataset"})})}),l&&(0,ed.jsx)(tn.Tooltip,{title:"数据源",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"datasource",title:"数据源",children:(0,ed.jsx)(tt,{type:"icon-datasource"})})}),u&&(0,ed.jsx)(tn.Tooltip,{title:"脚本",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"script",children:(0,ed.jsx)(tt,{type:"icon-js"})})}),(0,ed.jsx)(tn.Tooltip,{title:"环境变量",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"env",children:(0,ed.jsx)(tt,{type:"icon-variable"})})}),(0,ed.jsx)(tn.Tooltip,{title:"源码",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"code",children:(0,ed.jsx)(tt,{type:"icon-json"})})})]})}),(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:["component"===I&&(0,ed.jsx)(tU,{}),"layer"===I&&(0,ed.jsx)(tK,{}),l&&"datasource"===I&&(0,ed.jsx)(tX,{}),u&&"script"===I&&(0,ed.jsx)(t3,{}),"env"===I&&(0,ed.jsx)(t5,{}),"code"===I&&(0,ed.jsx)(tW,{}),!!c&&"dataset"===I&&(0,ed.jsx)(t9,{ref:v,renderNode:c})]})]}),(0,ed.jsxs)("div",{className:"center",style:{flex:"1 1 auto"},children:[(0,ed.jsx)(tM,{title:"页面",extra:(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)(tn.Button,{size:"small",type:B?"default":"primary",icon:B?(0,ed.jsx)(e7.EyeInvisibleOutlined,{}):(0,ed.jsx)(e7.EyeOutlined,{}),onClick:()=>H(!B)}),(0,ed.jsxs)(tn.Radio.Group,{value:T,onChange:e=>k(e.target.value),size:"small",buttonStyle:"outline",children:[(0,ed.jsx)(tn.Radio.Button,{value:"desktop",title:"桌面",children:(0,ed.jsx)(e7.DesktopOutlined,{})}),(0,ed.jsx)(tn.Radio.Button,{value:"mobile",title:"移动设备",children:(0,ed.jsx)(e7.MobileOutlined,{})}),(0,ed.jsx)(tn.Radio.Button,{value:"tablet",title:"平板设备",children:(0,ed.jsx)(e7.TabletOutlined,{})})]})]})}),(0,ed.jsx)("div",{className:["body beautified_scrollbar always",T].join(" "),children:(0,ed.jsx)("div",{style:{transform:`scale(${y})`,transformOrigin:"top center"},children:(0,ed.jsx)(ty,{ref:g,device:T})})})]}),(0,ed.jsxs)("div",{className:"right",style:X,children:[(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:[(0,ed.jsx)(tz,{agentList:a,onEffect:Z,style:{display:"ai"===K&&(null==p?void 0:p.ai)?void 0:"none"}}),"props"===K&&(0,ed.jsx)(t1,{datasourceEnable:l}),"cascade"===K&&(null==N?void 0:N.cascadeIds)&&(0,ed.jsx)(tB,{}),"events"===K&&(null==J?void 0:J.events)&&(0,ed.jsx)(t7,{})]}),(0,ed.jsx)("div",{style:{padding:"22px 0",borderLeft:"solid 1px #e8e8e8",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},children:(0,ed.jsxs)(tn.Radio.Group,{value:K,onChange:e=>O(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"right-pane-tabs",children:[(null==p?void 0:p.ai)&&(0,ed.jsx)(tn.Tooltip,{title:"智能助理",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"ai",children:(0,ed.jsx)(tt,{type:"icon-assistant"})})}),(0,ed.jsx)(tn.Tooltip,{title:"属性",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"props",children:(0,ed.jsx)(tt,{type:"icon-info"})})}),(null==N?void 0:N.cascadeIds)&&(0,ed.jsx)(tn.Tooltip,{title:"联动",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"cascade",children:(0,ed.jsx)(tt,{type:"icon-cascade"})})}),(null==J?void 0:J.events)&&(0,ed.jsx)(tn.Tooltip,{title:"事件",placement:"right",children:(0,ed.jsx)(tn.Radio.Button,{value:"events",children:(0,ed.jsx)(tt,{type:"icon-thunderbolt"})})})]})})]})]})]}),(0,ed.jsx)(nt,{open:V,onOk:e=>{W(!1),E(e)},onCancel:()=>W(!1)}),(0,ed.jsx)(tn.Drawer,{open:G,size:400,mask:!1,title:null,closable:!1,styles:{body:{padding:0}},onClose:()=>Y(!1),children:(0,ed.jsx)(tz,{agentList:a,headExtra:(0,ed.jsx)(tn.Button,{type:"link",icon:(0,ed.jsx)(e7.CloseOutlined,{}),onClick:()=>Y(!1)}),onEffect:Z})})]})});var nr=((g={}).STRING="STRING",g.NUMBER="NUMBER",g.BOOLEAN="BOOLEAN",g.OBJECT="OBJECT",g.ARRAY="ARRAY",g);let ni=em()(e7.InfoCircleOutlined)`
|
|
1048
1048
|
vertical-align: middle;
|
|
1049
1049
|
margin-left: 2px;
|
|
1050
1050
|
color: var(--ant-color-text-description);
|
|
@@ -1143,7 +1143,7 @@
|
|
|
1143
1143
|
margin-top: 16px;
|
|
1144
1144
|
text-align: right;
|
|
1145
1145
|
padding: ${e=>e.$bordered?"0 24px 24px":"0"};
|
|
1146
|
-
`;let ng=e=>{let{item:t,split:n,padding:r}=e;return(0,ed.jsx)(nc,{$split:n,$padding:r,children:(0,ed.jsxs)(nd,{children:[t.avatar&&(0,ed.jsx)(nh,{children:(0,ed.jsx)(tn.Avatar,{src:t.avatar})}),(0,ed.jsxs)(np,{children:[t.title&&(0,ed.jsx)(nf,{children:t.href?(0,ed.jsx)("a",{href:t.href,children:t.title}):t.title}),t.description&&(0,ed.jsx)(nm,{children:t.description})]})]})})},nv=e=>{let{list:t=[],split:n,bordered:r,size:i,itemLayout:a,style:o,className:s}=e,l=(0,eh.useMemo)(()=>"small"===i?"8px 16px":r?"12px 24px":"12px 0",[i,r]);return(0,ed.jsx)(nu,{$bordered:r,$split:n,$size:i,style:o,$itemLayout:a,className:s,children:t.map((e,t)=>(0,ed.jsx)(ng,{item:e,split:n,padding:l},String(t)))})};var ny=d(190),nx=function(e,t){return(nx=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])})(e,t)};function n_(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nx(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var nb=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},nw=new function(){this.browser=new nb,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(nw.wxa=!0,nw.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?nw.worker=!0:!nw.hasGlobalWindow||"Deno"in window?(nw.node=!0,nw.svgSupported=!0):(e=navigator.userAgent,n=(t=nw).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),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="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document,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 nS="12px sans-serif",nC=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),nj={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!v){var n=nj.createCanvas();v=n&&n.getContext("2d")}if(v)return y!==t&&(y=v.font=t||nS),v.measureText(e);e=e||"",t=t||nS;var r=/((?:\d+)?\.?\d*)px/.exec(t),i=r&&+r[1]||12,a=0;if(t.indexOf("mono")>=0)a=i*e.length;else for(var o=0;o<e.length;o++){var s=nC[e[o]];a+=null==s?i:s*i}return{width:a}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},nT=nX(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),nk=nX(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nI=Object.prototype.toString,nM=Array.prototype,nD=nM.forEach,nO=nM.filter,nA=nM.slice,nz=nM.map,nR=(function(){}).constructor,nP=nR?nR.prototype:null,nN="__proto__",nL=2311;function nF(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function nE(e){if(null==e||"object"!=typeof e)return e;var t=e,n=nI.call(e);if("[object Array]"===n){if(!e[ri]){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=nE(e[r])}}else if(nk[n]){if(!e[ri]){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(!nT[n]&&!e[ri]&&!n8(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==nN&&(t[o]=nE(e[o]));return t}function nB(e,t,n){if(!n3(t)||!n3(e))return n?nE(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==nN){var i=e[r],a=t[r];!(n3(a)&&n3(i))||nQ(a)||nQ(i)||n8(a)||n8(i)||n4(a)||n4(i)||a[ri]||i[ri]?!n&&r in e||(e[r]=nE(t[r])):nB(i,a,n)}return e}function nH(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==nN&&(e[n]=t[n]);return e}function nV(e,t,n){for(var r=nZ(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function nW(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 nY(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];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else nV(e,t,n)}function nG(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function nU(e,t,n){if(e&&t)if(e.forEach&&e.forEach===nD)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 nq(e,t,n){if(!e)return[];if(!t)return re(e);if(e.map&&e.map===nz)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 nX(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 n$(e,t,n){if(!e)return[];if(!t)return re(e);if(e.filter&&e.filter===nO)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 nZ(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}nj.createCanvas;var nK=nP&&n1(nP.bind)?nP.call.bind(nP.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(nA.call(arguments)))}};function nJ(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(nA.call(arguments)))}}function nQ(e){return Array.isArray?Array.isArray(e):"[object Array]"===nI.call(e)}function n1(e){return"function"==typeof e}function n0(e){return"string"==typeof e}function n2(e){return"number"==typeof e}function n3(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function n4(e){return!!nT[nI.call(e)]}function n5(e){return!!nk[nI.call(e)]}function n8(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function n9(e){return null!=e.colorStops}function n6(e,t){return null!=e?e:t}function n7(e,t,n){return null!=e?e:null!=t?t:n}function re(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nA.apply(e,t)}function rt(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function rn(e,t){if(!e)throw Error(t)}function rr(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ri="__ec_primitive__",ra=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 nZ(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ro="function"==typeof Map,rs=function(){function e(t){var n=nQ(t);this.data=ro?new Map:new ra;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&nU(t,i)}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 ro?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function rl(e){return new rs(e)}function ru(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&nH(n,t),n}function rc(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function rd(e,t){return e.hasOwnProperty(t)}function rh(){}var rp=180/Math.PI,rf=function(e,t){return(rf=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])})(e,t)};function rm(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function rg(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function rv(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ry(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function rx(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var r_=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function rb(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 rw(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 rS(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function rC(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var rj=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},rT=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 rj(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 rj(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 rj(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new rj(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rj(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new rj(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),rk=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&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},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,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]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(a){case 0:u.h.call(o);break;case 1:u.h.call(o,t[0]);break;case 2:u.h.call(o,t[0],t[1]);break;default:u.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),rI=Math.log(2);function rM(e,t,n,r,i,a){var o=r+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/rI);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;!(f&i)&&(d+=(p%2?-1:1)*e[n][h]*rM(e,t-1,c,u,i|f,a),p++)}return a[o]=d,d}function rD(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=rM(n,8,0,0,0,r);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*rM(n,7,+(0===o),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 rO="___zrEVENTSAVED";function rA(e){return"CANVAS"===e.nodeName.toUpperCase()}var rz=/([&<>"'])/g,rR={"&":"&","<":"<",">":">",'"':""","'":"'"};function rP(e){return null==e?"":(e+"").replace(rz,function(e,t){return rR[t]})}var rN=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rL=[],rF=nw.browser.firefox&&39>+nw.browser.version.split(".")[0];function rE(e,t,n,r){return n=n||{},r?rB(e,t,n):rF&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):rB(e,t,n),n}function rB(e,t,n){if(nw.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(rA(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(function(e,t,n,r,i){if(t.getBoundingClientRect&&nw.domSupported&&!rA(t)){var a=t[rO]||(t[rO]={}),o=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;o.push(h,p),l=l&&a&&h===a[d]&&p===a[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?rD(s,o):rD(o,s))}(function(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,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),a,void 0);if(o)return o(e,n,r),!0}return!1}(rL,e,r,i)){n.zrX=rL[0],n.zrY=rL[1];return}}n.zrX=n.zrY=0}function rH(e){return e||window.event}function rV(e,t,n){if(null!=(t=rH(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&rE(e,i,t,n)}else{rE(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return null==n||null==r?t:3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&rN.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}var rW=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},rY=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],l=rE(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in rU)if(rU.hasOwnProperty(t)){var n=rU[t](this._track,e);if(n)return n}},e}();function rG(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var rU={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=rG(r)/rG(i);isFinite(a)||(a=1),t.pinchScale=a;var o=[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function rq(){return[1,0,0,1,0,0]}function rX(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],l=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]=l,e}function r$(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 rZ(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}var rK=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}(),rJ=Math.min,rQ=Math.max,r1=new rK,r0=new rK,r2=new rK,r3=new rK,r4=new rK,r5=new rK,r8=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=rJ(e.x,this.x),n=rJ(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rQ(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=rQ(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,n,r,i=e.width/this.width,a=e.height/this.height,o=rq();return r$(o,o,[-this.x,-this.y]),n=(t=[i,a])[0],r=t[1],o[0]=o[0]*n,o[1]=o[1]*r,o[2]=o[2]*n,o[3]=o[3]*r,o[4]=o[4]*n,o[5]=o[5]*r,r$(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this.x,i=this.x+this.width,a=this.y,o=this.y+this.height,s=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height,d=!(i<s||l<r||o<u||c<a);if(n){var h=1/0,p=0,f=Math.abs(i-s),m=Math.abs(l-r),g=Math.abs(o-u),v=Math.abs(c-a),y=Math.min(f,m),x=Math.min(g,v);i<s||l<r?y>p&&(p=y,f<m?rK.set(r5,-f,0):rK.set(r5,m,0)):y<h&&(h=y,f<m?rK.set(r4,f,0):rK.set(r4,-m,0)),o<u||c<a?x>p&&(p=x,g<v?rK.set(r5,0,-g):rK.set(r5,0,v)):y<h&&(h=y,g<v?rK.set(r4,0,g):rK.set(r4,0,-v))}return n&&rK.copy(n,d?r4:r5),d},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},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}r1.x=r2.x=n.x,r1.y=r3.y=n.y,r0.x=r3.x=n.x+n.width,r0.y=r2.y=n.y+n.height,r1.transform(r),r3.transform(r),r0.transform(r),r2.transform(r),t.x=rJ(r1.x,r0.x,r2.x,r3.x),t.y=rJ(r1.y,r0.y,r2.y,r3.y);var l=rQ(r1.x,r0.x,r2.x,r3.x),u=rQ(r1.y,r0.y,r2.y,r3.y);t.width=l-t.x,t.height=u-t.y},e}(),r9="silent";function r6(){rW(this.event)}var r7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return rm(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(rk),ie=function(e,t){this.x=e,this.y=t},it=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ir=new r8(0,0,0,0),ii=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new ie(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new r7,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new rT(o),o}return rm(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(nU(it,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=io(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new ie(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.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;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ie(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){var r=(e=e||{}).target;if(!r||!r.silent){for(var i,a="on"+t,o={type:t,event:n,target:(i=e).target,topTarget:i.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:r6};r&&(r[a]&&(o.cancelBubble=!!r[a].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new ie(e,t);if(ia(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new r8(e-s,t-s,o,o),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(ir.copy(c.getBoundingRect()),c.transform&&ir.applyTransform(c.transform),ir.intersect(l)&&a.push(c))}if(a.length){for(var d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<h;f+=d)if(ia(a,i,e+p*Math.cos(f),t+p*Math.sin(f),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new rY);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new ie;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(rk);function ia(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=function(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),r=r.__hostTarget||r.parent}return!i||r9}return!1}(o,n,r))&&(t.topTarget||(t.topTarget=o),s!==r9)){t.target=o;break}}}function io(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}function is(e,t,n,r){var i=t+1;if(i===n)return 1;if(0>r(e[i++],e[t])){for(;i<n&&0>r(e[i],e[i-1]);)i++;var a=e,o=t,s=i;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function il(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,l=r;s<l;)0>i(o,e[a=s+l>>>1])?l=a:s=a+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=o}}function iu(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){for(s=r-i;l<s&&a(e,t[n+i+l])>0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&0>=a(e,t[n+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[n+c])>0?o=c+1:l=c}return l}function ic(e,t,n,r,i,a){var o=0,s=0,l=1;if(0>a(e,t[n+i])){for(s=i+1;l<s&&0>a(e,t[n+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l<s&&a(e,t[n+i+l])>=0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);0>a(e,t[n+c])?l=c:o=c+1}return l}function id(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<32){a=is(e,n,r,t),il(e,n,r,n+a,t);return}var o=function(e,t){var n,r,i=7,a=0,o=[];function s(s){var l=n[s],u=r[s],c=n[s+1],d=r[s+1];r[s]=u+d,s===a-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),a--;var h=ic(e[c],e,l,u,0,t);l+=h,0==(u-=h)||0!==(d=iu(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,r,a,s){var l,u,c,d=0;for(d=0;d<r;d++)o[d]=e[n+d];var h=0,p=a,f=n;if(e[f++]=e[p++],0==--s){for(d=0;d<r;d++)e[f+d]=o[h+d];return}if(1===r){for(d=0;d<s;d++)e[f+d]=e[p+d];e[f+s]=o[h];return}for(var m=i;;){l=0,u=0,c=!1;do if(0>t(e[p],o[h])){if(e[f++]=e[p++],u++,l=0,0==--s){c=!0;break}}else if(e[f++]=o[h++],l++,u=0,1==--r){c=!0;break}while((l|u)<m);if(c)break;do{if(0!==(l=ic(e[p],o,h,r,0,t))){for(d=0;d<l;d++)e[f+d]=o[h+d];if(f+=l,h+=l,(r-=l)<=1){c=!0;break}}if(e[f++]=e[p++],0==--s){c=!0;break}if(0!==(u=iu(o[h],e,p,s,0,t))){for(d=0;d<u;d++)e[f+d]=e[p+d];if(f+=u,p+=u,0==(s-=u)){c=!0;break}}if(e[f++]=o[h++],1==--r){c=!0;break}m--}while(l>=7||u>=7);if(c)break;m<0&&(m=0),m+=2}if((i=m)<1&&(i=1),1===r){for(d=0;d<s;d++)e[f+d]=e[p+d];e[f+s]=o[h]}else if(0===r)throw Error();else for(d=0;d<r;d++)e[f+d]=o[h+d]}(l,u,c,d):function(n,r,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var u=n+r-1,c=s-1,d=a+s-1,h=0,p=0;if(e[d--]=e[u--],0==--r){for(l=0,h=d-(s-1);l<s;l++)e[h+l]=o[l];return}if(1===s){for(d-=r,u-=r,p=d+1,h=u+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=o[c];return}for(var f=i;;){var m=0,g=0,v=!1;do if(0>t(o[c],e[u])){if(e[d--]=e[u--],m++,g=0,0==--r){v=!0;break}}else if(e[d--]=o[c--],g++,m=0,1==--s){v=!0;break}while((m|g)<f);if(v)break;do{if(0!=(m=r-ic(o[c],e,n,r,r-1,t))){for(d-=m,u-=m,r-=m,p=d+1,h=u+1,l=m-1;l>=0;l--)e[p+l]=e[h+l];if(0===r){v=!0;break}}if(e[d--]=o[c--],1==--s){v=!0;break}if(0!=(g=s-iu(e[u],o,0,s,s-1,t))){for(d-=g,c-=g,s-=g,p=d+1,h=c+1,l=0;l<g;l++)e[p+l]=o[h+l];if(s<=1){v=!0;break}}if(e[d--]=e[u--],0==--r){v=!0;break}f--}while(m>=7||g>=7);if(v)break;f<0&&(f=0),f+=2}if((i=f)<1&&(i=1),1===s){for(d-=r,u-=r,p=d+1,h=u+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=o[c]}else if(0===s)throw Error();else for(l=0,h=d-(s-1);l<s;l++)e[h+l]=o[l]}(l,u,c,d))}return n=[],r=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,r[a]=t,a+=1}}}(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((a=is(e,n,r,t))<s){var l=i;l>s&&(l=s),il(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(0!==i);o.forceMergeRuns()}}nU(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){ii.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=io(this,i,a);if("mouseup"===e&&o||(r=(n=this.findHover(i,a)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||rx(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var ih=!1;function ip(){ih||(ih=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function im(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ig=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=im}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=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,id(n,im)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else t&&t.length?e.__clipPaths=t:e.__clipPaths&&e.__clipPaths.length>0&&(e.__clipPaths=[]),isNaN(e.z)&&(ip(),e.z=0),isNaN(e.z2)&&(ip(),e.z2=0),isNaN(e.zlevel)&&(ip(),e.zlevel=0),this._displayList[this._displayListLen++]=e;var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,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=nW(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}();I=nw.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var iv={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1)?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):n*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-iv.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?.5*iv.bounceIn(2*e):.5*iv.bounceOut(2*e-1)+.5}},iy=Math.pow,ix=Math.sqrt,i_=ix(3),ib=1/3,iw=rg(),iS=rg(),iC=rg();function ij(e){return e>-1e-8&&e<1e-8}function iT(e){return e>1e-8||e<-1e-8}function ik(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 iI(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function iM(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,d=s*l-9*o*u,h=l*l-3*s*u,p=0;if(ij(c)&&ij(d))if(ij(s))a[0]=0;else{var f=-l/s;f>=0&&f<=1&&(a[p++]=f)}else{var m=d*d-4*c*h;if(ij(m)){var g=d/c,f=-s/o+g,v=-g/2;f>=0&&f<=1&&(a[p++]=f),v>=0&&v<=1&&(a[p++]=v)}else if(m>0){var y=ix(m),x=c*s+1.5*o*(-d+y),_=c*s+1.5*o*(-d-y),f=(-s-((x=x<0?-iy(-x,ib):iy(x,ib))+(_=_<0?-iy(-_,ib):iy(_,ib))))/(3*o);f>=0&&f<=1&&(a[p++]=f)}else{var b=Math.acos((2*c*s-3*o*d)/(2*ix(c*c*c)))/3,w=ix(c),S=Math.cos(b),f=(-s-2*w*S)/(3*o),v=(-s+w*(S+i_*Math.sin(b)))/(3*o),C=(-s+w*(S-i_*Math.sin(b)))/(3*o);f>=0&&f<=1&&(a[p++]=f),v>=0&&v<=1&&(a[p++]=v),C>=0&&C<=1&&(a[p++]=C)}}return p}function iD(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,l=0;if(ij(o)){if(iT(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ij(c))i[0]=-a/(2*o);else if(c>0){var d=ix(c),u=(-a+d)/(2*o),h=(-a-d)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function iO(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-o)*i+o,c=(l-s)*i+s,d=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=r}function iA(e,t,n,r,i,a,o,s,l,u,c){var d,h,p,f,m,g=.005,v=1/0;iw[0]=l,iw[1]=u;for(var y=0;y<1;y+=.05)iS[0]=ik(e,n,i,o,y),iS[1]=ik(t,r,a,s,y),(f=r_(iw,iS))<v&&(d=y,v=f);v=1/0;for(var x=0;x<32&&!(g<1e-4);x++)h=d-g,p=d+g,iS[0]=ik(e,n,i,o,h),iS[1]=ik(t,r,a,s,h),f=r_(iS,iw),h>=0&&f<v?(d=h,v=f):(iC[0]=ik(e,n,i,o,p),iC[1]=ik(t,r,a,s,p),m=r_(iC,iw),p<=1&&m<v?(d=p,v=m):g*=.5);return c&&(c[0]=ik(e,n,i,o,d),c[1]=ik(t,r,a,s,d)),ix(v)}function iz(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function iR(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function iP(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function iN(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 iL(e,t,n,r,i,a,o,s,l){var u,c=.005,d=1/0;iw[0]=o,iw[1]=s;for(var h=0;h<1;h+=.05){iS[0]=iz(e,n,i,h),iS[1]=iz(t,r,a,h);var p=r_(iw,iS);p<d&&(u=h,d=p)}d=1/0;for(var f=0;f<32&&!(c<1e-4);f++){var m=u-c,g=u+c;iS[0]=iz(e,n,i,m),iS[1]=iz(t,r,a,m);var p=r_(iS,iw);if(m>=0&&p<d)u=m,d=p;else{iC[0]=iz(e,n,i,g),iC[1]=iz(t,r,a,g);var v=r_(iC,iw);g<=1&&v<d?(u=g,d=v):c*=.5}}return l&&(l[0]=iz(e,n,i,u),l[1]=iz(t,r,a,u)),ix(d)}var iF=/cubic-bezier\(([0-9,\.e ]+)\)/;function iE(e){var t=e&&iF.exec(e);if(t){var n=t[1].split(","),r=+rr(n[0]),i=+rr(n[1]),a=+rr(n[2]),o=+rr(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:iM(0,r,a,1,e,s)&&ik(0,i,o,1,s[0])}}}var iB=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||rh,this.ondestroy=e.ondestroy||rh,this.onrestart=e.onrestart||rh,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!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),1===i)if(!this.loop)return!0;else this._startTime=e-r%n,this._pausedTime=0,this.onrestart();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=n1(e)?e:iv[e]||iE(e)},e}(),iH=function(e){this.value=e},iV=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new iH(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}(),iW=function(){function e(e){this._list=new iV,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(null==r[e]){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 iH(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(null!=t)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}(),iY={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 iG(e){return(e=Math.round(e))<0?0:e>255?255:e}function iU(e){return e<0?0:e>1?1:e}function iq(e){return e.length&&"%"===e.charAt(e.length-1)?iG(parseFloat(e)/100*255):iG(parseInt(e,10))}function iX(e){return e.length&&"%"===e.charAt(e.length-1)?iU(parseFloat(e)/100):iU(parseFloat(e))}function i$(e,t,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function iZ(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function iK(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var iJ=new iW(20),iQ=null;function i1(e,t){iQ&&iK(iQ,t),iQ=iJ.put(e,iQ||t.slice())}function i0(e,t){if(e){t=t||[];var n=iJ.get(e);if(n)return iK(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in iY)return iK(t,iY[r]),i1(e,t),t;var i=r.length;if("#"===r.charAt(0)){if(4===i||5===i){var a=parseInt(r.slice(1,4),16);return a>=0&&a<=4095?(iZ(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===i?parseInt(r.slice(4),16)/15:1),i1(e,t),t):void iZ(t,0,0,0,1)}if(7===i||9===i){var a=parseInt(r.slice(1,7),16);return a>=0&&a<=0xffffff?(iZ(t,(0xff0000&a)>>16,(65280&a)>>8,255&a,9===i?parseInt(r.slice(7),16)/255:1),i1(e,t),t):void iZ(t,0,0,0,1)}return}var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===i){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?iZ(t,+u[0],+u[1],+u[2],1):iZ(t,0,0,0,1);c=iX(u.pop());case"rgb":if(u.length>=3)return iZ(t,iq(u[0]),iq(u[1]),iq(u[2]),3===u.length?c:iX(u[3])),i1(e,t),t;return void iZ(t,0,0,0,1);case"hsla":if(4!==u.length)return void iZ(t,0,0,0,1);return u[3]=iX(u[3]),i2(u,t),i1(e,t),t;case"hsl":if(3!==u.length)return void iZ(t,0,0,0,1);return i2(u,t),i1(e,t),t;default:return}}iZ(t,0,0,0,1)}}function i2(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=iX(e[1]),i=iX(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return iZ(t=t||[],iG(255*i$(o,a,n+1/3)),iG(255*i$(o,a,n)),iG(255*i$(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function i3(e,t){var n=i0(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 i4(n,4===n.length?"rgba":"rgb")}}function i4(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(n+=","+e[3]),t+"("+n+")"}}function i5(e,t){var n=i0(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var i8=new iW(100);function i9(e){if(n0(e)){var t=i8.get(e);return t||(t=i3(e,-.1),i8.put(e,t)),t}if(n9(e)){var n=nH({},e);return n.colorStops=nq(e.colorStops,function(e){return{offset:e.offset,color:i3(e.color,-.1)}}),n}return e}nw.hasGlobalWindow&&n1(window.btoa);var i6=Array.prototype.slice;function i7(e,t,n,r){for(var i,a=t.length,o=0;o<a;o++)e[o]=(i=t[o],(n[o]-i)*r+i);return e}function ae(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function at(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 an(e){if(nG(e)){var t=e.length;if(nG(e[0])){for(var n=[],r=0;r<t;r++)n.push(i6.call(e[r]));return n}return i6.call(e)}return e}function ar(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function ai(e){return 4===e||5===e}function aa(e){return 1===e||2===e}var ao=[0,0,0,0],as=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=6,s=t;if(nG(t)){var l=nG(t&&t[0])?2:1;o=l,(1!==l||n2(t[0]))&&(2!==l||n2(t[0][0]))||(a=!0)}else if(n2(t)&&t==t)o=0;else if(n0(t))if(isNaN(+t)){var u=i0(t);u&&(s=u,o=3)}else o=0;else if(n9(t)){var c=nH({},s);(c.colorStops=nq(t.colorStops,function(e){return{offset:e.offset,color:i0(e.color)}}),"linear"===t.type)?o=4:"radial"===t.type&&(o=5),s=c}0===i?this.valType=o:(o!==this.valType||6===o)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=n1(n)?n:iv[n]||iE(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=aa(r),l=ai(r),u=0;u<i;u++){var c=n[u],d=c.value,h=a.value;c.percent=c.time/e,!o&&(s&&u!==i-1?function(e,t,n){if(e.push&&t.push){var r=e.length,i=t.length;if(r!==i)if(r>i)e.length=i;else for(var a=r;a<i;a++)e.push(1===n?t[a]:i6.call(t[a]));for(var o=e[0]&&e[0].length,a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}}(d,h,r):l&&function(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()})}(d.colorStops,h.colorStops))}if(!o&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=ae([],n[u].value,p,-1):aa(r)&&(n[u].additiveValue=1===r?ae([],n[u].value,p,-1):at([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,o=a?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,h=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(h+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,u-2)}else{for(n=h;n<u&&!(l[n].percent>t);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,m=0===f?1:p((t-r.percent)/f,1);i.easingFunc&&(m=i.easingFunc(m));var g=a?this._additiveValue:d?ao:e[c];if((aa(s)||d)&&!g&&(g=this._additiveValue=[]),this.discrete)e[c]=m<1?r.rawValue:i.rawValue;else if(aa(s))1===s?i7(g,r[o],i[o],m):function(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,l=0;l<a;l++)e[o][l]=(s=t[o][l],(n[o][l]-s)*r+s)}}(g,r[o],i[o],m);else if(ai(s)){var v,y,x,_,b,w=r[o],S=i[o],C=4===s;(e[c]={type:C?"linear":"radial",x:(v=w.x,(S.x-v)*m+v),y:(y=w.y,(S.y-y)*m+y),colorStops:nq(w.colorStops,function(e,t){var n,r=S.colorStops[t];return{offset:(n=e.offset,(r.offset-n)*m+n),color:ar(i7([],e.color,r.color,m))}}),global:S.global},C)?(e[c].x2=(x=w.x2,(S.x2-x)*m+x),e[c].y2=(_=w.y2,(S.y2-_)*m+_)):e[c].r=(b=w.r,(S.r-b)*m+b)}else if(d)i7(g,r[o],i[o],m),a||(e[c]=ar(g));else{var j,T=(j=r[o],(i[o]-j)*m+j);a?this._additiveValue=T:e[c]=T}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(i0(e[n],ao),ae(ao,ao,r,1),e[n]=ar(ao)):1===t?ae(e[n],e[n],r,1):2===t&&at(e[n],e[n],r,1)},e}(),al=function(){function e(e,t,n,r){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r)?nF("Can' use additive animation on looped animation."):(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,nZ(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 as(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=ar(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,an(l),r),this._trackKeys.push(o)}s.addKeyframe(e,an(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),l=o.keyframes,u=l.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var c=l[u-1];c&&(t._target[o.propName]=c.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new iB({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=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(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 nq(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):1===this._started&&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=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]=an(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||nZ(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 au(){return new Date().getTime()}var ac=function(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,n.stage=(t=t||{}).stage||{},n}return rm(t,e),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=au()-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}this._time=t,!e&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,I(function t(){e._running&&(I(t),e._paused||e.update())})},t.prototype.start=function(){this._running||(this._time=au(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=au(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=au()-this._pauseStart,this._paused=!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 null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new al(e,t.loop);return this.addAnimator(n),n},t}(rk),ad=nw.domSupported,ah=(_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},b=nq(x=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(e){var t=e.replace("mouse","pointer");return _.hasOwnProperty(t)?t:e}),{mouse:x,touch:["touchstart","touchend","touchmove"],pointer:b}),ap=["mousemove","mouseup"],af=["pointermove","pointerup"],am=!1;function ag(e){var t=e.pointerType;return"pen"===t||"touch"===t}function av(e){e&&(e.zrByTouch=!0)}function ay(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ax=function(e,t){this.stopPropagation=rh,this.stopImmediatePropagation=rh,this.preventDefault=rh,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},a_={mousedown:function(e){e=rV(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=rV(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=rV(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){ay(this,(e=rV(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){am=!0,e=rV(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){am||(e=rV(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){av(e=rV(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),a_.mousemove.call(this,e),a_.mousedown.call(this,e)},touchmove:function(e){av(e=rV(this.dom,e)),this.handler.processGesture(e,"change"),a_.mousemove.call(this,e)},touchend:function(e){av(e=rV(this.dom,e)),this.handler.processGesture(e,"end"),a_.mouseup.call(this,e),new Date-this.__lastTouchMoment<300&&a_.click.call(this,e)},pointerdown:function(e){a_.mousedown.call(this,e)},pointermove:function(e){ag(e)||a_.mousemove.call(this,e)},pointerup:function(e){a_.mouseup.call(this,e)},pointerout:function(e){ag(e)||a_.mouseout.call(this,e)}};nU(["click","dblclick","contextmenu"],function(e){a_[e]=function(t){t=rV(this.dom,t),this.trigger(e,t)}});var ab={pointermove:function(e){ag(e)||ab.mousemove.call(this,e)},pointerup:function(e){ab.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 aw(e,t,n,r){var i;e.mounted[t]=n,e.listenerOpts[t]=r,i=e.domTarget,i.addEventListener(t,n,r)}function aS(e){var t,n,r,i=e.mounted;for(var a in i)i.hasOwnProperty(a)&&(t=e.domTarget,n=i[a],r=e.listenerOpts[a],t.removeEventListener(a,n,r));e.mounted={}}var aC=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},aj=function(e){function t(t,n){var r,i,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new aC(t,a_),ad&&(a._globalHandlerScope=new aC(document,ab)),i=(r=a._localHandlerScope).domHandlers,nw.pointerEventsSupported?nU(ah.pointer,function(e){aw(r,e,function(t){i[e].call(a,t)})}):(nw.touchEventsSupported&&nU(ah.touch,function(e){aw(r,e,function(t){i[e].call(a,t),r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),nU(ah.mouse,function(e){aw(r,e,function(t){t=rH(t),r.touching||i[e].call(a,t)})})),a}return rm(t,e),t.prototype.dispose=function(){aS(this._localHandlerScope),ad&&aS(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,ad&&this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){nw.pointerEventsSupported?nU(af,n):nw.touchEventsSupported||nU(ap,n);function n(n){aw(t,n,function(r){if(!ay(e,(r=rH(r)).target)){var i;i=r,r=rV(e.dom,new ax(e,i),!0),t.domHandlers[n].call(e,r)}},{capture:!0})}}(this,t):aS(t)}},t}(rk),aT=1;nw.hasGlobalWindow&&(aT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ak=aT,aI="#333",aM="#ccc",aD=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e};function aO(e){return e>5e-5||e<-5e-5}var aA=[],az=[],aR=rq(),aP=Math.abs,aN=function(){var e;function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return aO(this.rotation)||aO(this.x)||aO(this.y)||aO(this.scaleX-1)||aO(this.scaleY-1)||aO(this.skewX)||aO(this.skewY)},t.prototype.updateTransform=function(){var e,t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(aD(r),this.invTransform=null);return}r=r||rq(),n?this.getLocalTransform(r):aD(r),t&&(n?rX(r,t,r):((e=r)[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5])),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(aA);var n=aA[0]<0?-1:1,r=aA[1]<0?-1:1,i=((aA[0]-n)*t+n)/aA[0]||0,a=((aA[1]-r)*t+r)/aA[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||rq(),rZ(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},t.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}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||rq(),rX(az,e.invTransform,t),t=az);var n=this.originX,r=this.originY;(n||r)&&(aR[4]=n,aR[5]=r,rX(az,t,aR),az[4]-=n,az[5]-=r,t=az),this.setLocalTransform(t)}},t.prototype.getGlobalScale=function(e){var t=this.transform;return(e=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[0]=1,e[1]=1),e},t.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&rw(n,n,r),n},t.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&rw(n,n,r),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&aP(e[0]-1)>1e-10&&aP(e[3]-1)>1e-10?Math.sqrt(aP(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){for(var t=this,n=e,r=0;r<aL.length;r++){var i=aL[r];t[i]=n[i]}},t.getLocalTransform=function(e,t){t=t||[];var n,r,i,a,o,s,l,u,c,d,h,p=e.originX||0,f=e.originY||0,m=e.scaleX,g=e.scaleY,v=e.anchorX,y=e.anchorY,x=e.rotation||0,_=e.x,b=e.y,w=e.skewX?Math.tan(e.skewX):0,S=e.skewY?Math.tan(-e.skewY):0;if(p||f||v||y){var C=p+v,j=f+y;t[4]=-C*m-w*j*g,t[5]=-j*g-S*C*m}else t[4]=t[5]=0;return t[0]=m,t[3]=g,t[1]=S*m,t[2]=w*g,x&&(n=t,void 0===i&&(i=[0,0]),a=(r=t)[0],o=r[2],s=r[4],l=r[1],u=r[3],c=r[5],d=Math.sin(x),h=Math.cos(x),n[0]=a*h+l*d,n[1]=-a*d+l*h,n[2]=o*h+u*d,n[3]=-o*d+h*u,n[4]=h*(s-i[0])+d*(c-i[1])+i[0],n[5]=h*(c-i[1])-d*(s-i[0])+i[1]),t[4]+=p+_,t[5]+=f+b,t},t.initDefaultProps=void((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0),t}(),aL=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],aF={};function aE(e,t){var n=aF[t=t||nS];n||(n=aF[t]=new iW(500));var r=n.get(e);return null==r&&(r=nj.measureText(e,t).width,n.put(e,r)),r}function aB(e,t,n,r){var i=aE(e,t),a=aW(t);return new r8(aH(0,i,n),aV(0,a,r),i,a)}function aH(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function aV(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function aW(e){return aE("国",e)}function aY(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function aG(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=aY(r[0],n.width),u+=aY(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+o,u+=s,d="middle";break;case"top":l+=o/2,u-=i,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=o-i,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var aU="__zr_normal__",aq=aL.concat(["ignore"]),aX=nX(aL,function(e,t){return e[t]=!0,e},{ignore:!1}),a$={},aZ=new r8(0,0,0,0),aK=function(){function e(e){this.id=nL++,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}var r=this.transform;r||(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||(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 l=!1;if(i.copyTransform(t),null!=n.position){n.layoutRect?aZ.copy(n.layoutRect):aZ.copy(this.getBoundingRect()),r||aZ.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(a$,n,aZ):aG(a$,n,aZ),i.x=a$.x,i.y=a$.y,a=a$.align,o=a$.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var c=void 0,d=void 0;"center"===u?(c=.5*aZ.width,d=.5*aZ.height):(c=aY(u[0],aZ.width),d=aY(u[1],aZ.height)),l=!0,i.originX=-i.x+c+(r?0:aZ.x),i.originY=-i.y+d+(r?0:aZ.y)}}null!=n.rotation&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],l||(i.originX=-h[0],i.originY=-h[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,g=void 0,v=void 0;p&&this.canBeInsideText()?(m=n.insideFill,g=n.insideStroke,(null==m||"auto"===m)&&(m=this.getInsideTextFill()),(null==g||"auto"===g)&&(g=this.getInsideTextStroke(m),v=!0)):(m=n.outsideFill,g=n.outsideStroke,(null==m||"auto"===m)&&(m=this.getOutsideFill()),(null==g||"auto"===g)&&(g=this.getOutsideStroke(m),v=!0)),((m=m||"#000")!==f.fill||g!==f.stroke||v!==f.autoStroke||a!==f.align||o!==f.verticalAlign)&&(s=!0,f.fill=m,f.stroke=g,f.autoStroke=v,f.align=a,f.verticalAlign=o,t.setDefaultTextStyle(f)),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()?aM:aI},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&i0(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+255*!i*(1-r);return n[3]=1,i4(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},nH(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("string"==typeof e)this.attrKV(e,t);else if(n3(e))for(var n=nZ(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===aU)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,aq)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||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(aU,!1,e)},e.prototype.useState=function(e,t,n,r){var i,a=e===aU;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!(nW(o,e)>=0)||!t&&1!==o.length){if(this.stateProxy&&!a&&(i=this.stateProxy(e)),i||(i=this.states&&this.states[e]),!i&&!a)return void nF("State "+e+" not exists.");a||this.saveCurrentToNormalState(i);var l=!!(i&&i.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,i,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),i}}},e.prototype.useStates=function(e,t,n){if(e.length){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){for(var s=0;s<a;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[a-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},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=nW(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=nW(r,e),a=nW(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];nH(n,i),i.textConfig&&nH(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=nH({},r?this.textConfig:n.textConfig),nH(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<aq.length;u++){var c=aq[u],d=i&&aX[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:o&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&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 aN,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),nH(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 al(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=nW(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?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){aJ(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){aJ(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=aJ(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;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){return this[n]||a(this,this[n]=[]),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}})}}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function aJ(e,t,n,r,i){var a=[];!function e(t,n,r,i,a,o,s,l){for(var u=nZ(i),c=a.duration,d=a.delay,h=a.additive,p=a.setToFinal,f=!n3(o),m=t.animators,g=[],v=0;v<u.length;v++){var y=u[v],x=i[y];if(null!=x&&null!=r[y]&&(f||o[y]))if(!n3(x)||nG(x)||n9(x))g.push(y);else{if(n){l||(r[y]=x,t.updateDuringAnimation(n));continue}e(t,y,r[y],x,a,o&&o[y],s,l)}else l||(r[y]=x,t.updateDuringAnimation(n),g.push(y))}var _=g.length;if(!h&&_)for(var b=0;b<m.length;b++){var w=m[b];if(w.targetName===n&&w.stopTracks(g)){var S=nW(m,w);m.splice(S,1)}}if(a.force||(_=(g=n$(g,function(e){var t,n;return!((t=i[e])===(n=r[e])||nG(t)&&nG(n)&&function(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}(t,n))})).length),_>0||a.force&&!s.length){var C=void 0,j=void 0,T=void 0;if(l){j={},p&&(C={});for(var b=0;b<_;b++){var y=g[b];j[y]=r[y],p?C[y]=i[y]:r[y]=i[y]}}else if(p){T={};for(var b=0;b<_;b++){var y=g[b];T[y]=an(r[y]),function(e,t,n){if(nG(t[n]))if(nG(e[n])||(e[n]=[]),n5(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),aQ(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(nG(i[0]))for(var s=i[0].length,l=0;l<o;l++)a[l]?aQ(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else aQ(a,i,o);a.length=i.length}else e[n]=t[n]}(r,i,y)}}var w=new al(r,!1,!1,h?n$(m,function(e){return e.targetName===n}):null);w.targetName=n,a.scope&&(w.scope=a.scope),p&&C&&w.whenWithKeys(0,C,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==c?500:c,l?j:i,g).delay(d||0),t.addAnimator(w,n),s.push(w)}}(e,"",e,t,n=n||{},r,a,i);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},d=function(){--o<=0&&(s?l&&l():u&&u())};!o&&l&&l(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var h=0;h<a.length;h++){var p=a[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function aQ(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}nY(aK,rk),nY(aK,aN);var a1=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return rm(t,e),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=nW(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=nW(n,e);return r<0||(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 r8(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(),l=o.getLocalTransform(r);l?(r8.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(aK);a1.prototype.type="group";var a0={},a2={},a3=function(){function e(e,t,n){var r,i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new ig,o=n.renderer||"canvas";a0[o]||(o=nZ(a0)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new a0[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=nw.node||nw.worker||l?null:new aj(s.getViewportRoot(),s.root),c=n.useCoarsePointer;(null==c||"auto"===c?nw.touchEventsSupported:!!c)&&(r=n6(n.pointerSize,44)),this.handler=new ii(a,s,u,s.root,r),this.animation=new ac({stage:{update:l?null:function(){return i._flush(!0)}}}),l||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=function(e){if(!e)return!1;if("string"==typeof e)return .4>i5(e,1);if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=i5(t[i].color,1);return(n/=r)<.4}return!1}(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=au();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=au();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&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=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 a1&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){if(!this._disposed){var e;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,e=this.id,delete a2[e]}},e}();function a4(e,t){var n=new a3(nL++,e,t);return a2[n.id]=n,n}function a5(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return n0(e)?e.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function a8(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function a9(e){if(isNaN(e*=1))return 0;if(e>1e-14){for(var t,n,r,i,a,o=1,s=0;s<15;s++,o*=10)if(Math.round(e*o)/o===e)return s}return r=(n=(t=e.toString().toLowerCase()).indexOf("e"))>0?+t.slice(n+1):0,i=n>0?n:t.length,Math.max(0,((a=t.indexOf("."))<0?0:i-1-a)-r)}var a6=/^(?:(\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 a7(e){if(e instanceof Date)return e;if(n0(e)){var t=a6.exec(e);if(!t)return new Date(NaN);if(!t[8])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);var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(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))}return null==e?new Date(NaN):new Date(Math.round(e))}function oe(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function ot(e,t){var n=oe(e),r=Math.pow(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 on(e){var t=parseFloat(e);return t==e&&(0!==t||!n0(e)||0>=e.indexOf("x"))?t:NaN}function or(){return Math.round(9*Math.random())}function oi(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}var oa="series\0";function oo(e){return e instanceof Array?e:null==e?[]:[e]}function os(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 ol=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function ou(e){return!n3(e)||nQ(e)||e instanceof Date?e:e.value}function oc(e,t,n){var r=oh(t[e],null),i=oh(n[e],null);return null!=r&&null!=i&&r===i}function od(e){return oh(e,"")}function oh(e,t){return null==e?t:n0(e)?e:n2(e)||"[object String]"===nI.call(e)?e+"":t}function op(e){var t=e.name;return!!(t&&t.indexOf(oa))}function of(e){return e&&null!=e.id&&0===od(e.id).indexOf("\0_ec_\0")}function om(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?nQ(t.dataIndex)?nq(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?nQ(t.name)?nq(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function og(){var e="__ec_inner_"+ov++;return function(t){return t[e]||(t[e]={})}}var ov=or();function oy(e,t,n){var r=ox(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=ob(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[r+"Models"]=i.models,o[r+"Model"]=i.models[0]}),o}function ox(e,t){if(n0(e)){var n,r={};r[e+"Index"]=0,n=r}else n=e;var i=rl(),a={},o=!1;return nU(n,function(e,n){if("dataIndex"===n||"dataIndexInside"===n){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&0>nW(t.includeMainTypes,s)||(o=o||!!s,(i.get(s)||i.set(s,{}))[l]=e)}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var o_={useDefault:!0,enableAll:!1,enableNone:!1};function ob(e,t,n,r){r=r||o_;var i=n.index,a=n.id,o=n.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(rn(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[]):("all"===i&&(rn(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o})),s}var ow="___EC__COMPONENT__CONTAINER___",oS="___EC__EXTENDED_CLASS___";function oC(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function oj(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;if(n1(t=r)&&/^class\s/.test(Function.prototype.toString.call(t)))n=function(e){function t(){return e.apply(this,arguments)||this}return n_(t,e),t}(r);else{var i=n=function(){(e.$constructor||r).apply(this,arguments)},a=i.prototype;function o(){}for(var s in o.prototype=this.prototype,i.prototype=new o,a)a.hasOwnProperty(s)&&(i.prototype[s]=a[s]);i.prototype.constructor=i,i.superClass=this}return nH(n.prototype,e),n[oS]=!0,n.extend=this.extend,n.superCall=oI,n.superApply=oM,n.superClass=r,n}}function oT(e,t){e.extend=t.extend}var ok=Math.round(10*Math.random());function oI(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function oM(e,t,n){return this.superClass.prototype[t].apply(e,n)}function oD(e){var t={};e.registerClass=function(e){var n=e.type||e.prototype.type;if(n){rn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=n;var r,i,a=oC(n);a.sub?a.sub!==ow&&(((i=t[(r=a).main])&&i[ow]||((i=t[r.main]={})[ow]=!0),i)[a.sub]=e):t[a.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ow]&&(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=oC(e),r=[],i=t[n.main];return i&&i[ow]?nU(i,function(e,t){t!==ow&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[oC(e).main]},e.getAllClassMainTypes=function(){var e=[];return nU(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[oC(e).main];return n&&n[ow]}}function oO(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&nW(r,s)>=0||i&&0>nW(i,s))){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var oA=oO([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oz=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return oA(this,e,t)},e}(),oR=og(),oP=function(e,t,n,r){if(r){var i=oR(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=oR(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}},oN="__zr_style_"+Math.round(10*Math.random()),oL={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oF={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oL[oN]=!0;var oE=["z","z2","invisible"],oB=["invisible"],oH=function(e){var t;function n(t){return e.call(this,t)||this}return rm(n,e),n.prototype._init=function(t){for(var n=nZ(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(e,t,n,r){var i,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,a=e,o=t,oV.copy(i.getBoundingRect()),i.transform&&oV.applyTransform(i.transform),oW.width=a,oW.height=o,!oV.intersect(oW))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(r&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(e,t){return this.rectContain(e,t)},n.prototype.traverse=function(e,t){e.call(t,this)},n.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},n.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||(this._paintRect=new r8(0,0,0,0)),t?r8.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+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+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},n.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new r8(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(e){return this.animate("style",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:nH(this.style,e),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(e){return ru(oL,e)},n.prototype.useStyle=function(e){e[oN]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},n.prototype.isStyleObject=function(e){return e[oN]},n.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,oE)},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=nZ(u),d=0;d<c.length;d++){var h=c[d];h in s&&(s[h]=s[h],this.style[h]=u[h])}for(var p=nZ(s),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?oB:oE,d=0;d<f.length;d++){var h=f[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=r[h]&&(this[h]=r[h])}},n.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},n.prototype._mergeStyle=function(e,t){return nH(e,t),e},n.prototype.getAnimationStyleProps=function(){return oF},n.initDefaultProps=void((t=n.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=3),n}(aK),oV=new r8(0,0,0,0),oW=new r8(0,0,0,0),oY=Math.min,oG=Math.max,oU=Math.sin,oq=Math.cos,oX=2*Math.PI,o$=rg(),oZ=rg(),oK=rg();function oJ(e,t,n,r,i,a){i[0]=oY(e,n),i[1]=oY(t,r),a[0]=oG(e,n),a[1]=oG(t,r)}var oQ=[],o1=[],o0={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o2=[],o3=[],o4=[],o5=[],o8=[],o9=[],o6=Math.min,o7=Math.max,se=Math.cos,st=Math.sin,sn=Math.abs,sr=Math.PI,si=2*sr,sa="undefined"!=typeof Float32Array,so=[];function ss(e){return Math.round(e/sr*1e8)/1e8%2*sr}var sl=function(){var e;function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=sn(n/ak/e)||0,this._uy=sn(n/ak/t)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(o0.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},t.prototype.lineTo=function(e,t){var n=sn(e-this._xi),r=sn(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(o0.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},t.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(o0.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},t.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(o0.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),so[0]=r,so[1]=i,(o=ss(so[0]))<0&&(o+=si),s=o-so[0],l=so[1]+s,!a&&l-o>=si?l=o+si:a&&o-l>=si?l=o-si:!a&&o>l?l=o+(si-ss(o-l)):a&&o<l&&(l=o-(si-ss(l-o))),so[0]=o,so[1]=l,r=so[0];var o,s,l,u=(i=so[1])-r;return this.addData(o0.A,e,t,n,n,r,u,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=se(i)*n+e,this._yi=st(i)*n+t,this},t.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},t.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(o0.R,e,t,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(o0.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&sa&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();sa&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},t.prototype.addData=function(e,t,n,r,i,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sa&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){o4[0]=o4[1]=o8[0]=o8[1]=Number.MAX_VALUE,o5[0]=o5[1]=o9[0]=o9[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(n=t[e],r=t[e+1],i=n,a=r),o){case o0.M:n=i=t[e++],r=a=t[e++],o8[0]=i,o8[1]=a,o9[0]=i,o9[1]=a;break;case o0.L:oJ(n,r,t[e],t[e+1],o8,o9),n=t[e++],r=t[e++];break;case o0.C:!function(e,t,n,r,i,a,o,s,l,u){var c=iD(e,n,i,o,oQ);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<c;d++){var h=ik(e,n,i,o,oQ[d]);l[0]=oY(h,l[0]),u[0]=oG(h,u[0])}c=iD(t,r,a,s,o1);for(var d=0;d<c;d++){var p=ik(t,r,a,s,o1[d]);l[1]=oY(p,l[1]),u[1]=oG(p,u[1])}l[0]=oY(e,l[0]),u[0]=oG(e,u[0]),l[0]=oY(o,l[0]),u[0]=oG(o,u[0]),l[1]=oY(t,l[1]),u[1]=oG(t,u[1]),l[1]=oY(s,l[1]),u[1]=oG(s,u[1])}(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],o8,o9),n=t[e++],r=t[e++];break;case o0.Q:!function(e,t,n,r,i,a,o,s){var l=oG(oY(iP(e,n,i),1),0),u=oG(oY(iP(t,r,a),1),0),c=iz(e,n,i,l),d=iz(t,r,a,u);o[0]=oY(e,i,c),o[1]=oY(t,a,d),s[0]=oG(e,i,c),s[1]=oG(t,a,d)}(n,r,t[e++],t[e++],t[e],t[e+1],o8,o9),n=t[e++],r=t[e++];break;case o0.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(i=se(h)*c+l,a=st(h)*d+u),function(e,t,n,r,i,a,o,s,l){var u=Math.abs(i-a);if(u%oX<1e-4&&u>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(o$[0]=oq(i)*n+e,o$[1]=oU(i)*r+t,oZ[0]=oq(a)*n+e,oZ[1]=oU(a)*r+t,rS(s,o$,oZ),rC(l,o$,oZ),(i%=oX)<0&&(i+=oX),(a%=oX)<0&&(a+=oX),i>a&&!o?a+=oX:i<a&&o&&(i+=oX),o){var c=a;a=i,i=c}for(var d=0;d<a;d+=Math.PI/2)d>i&&(oK[0]=oq(d)*n+e,oK[1]=oU(d)*r+t,rS(s,oK,s),rC(l,oK,l))}(l,u,c,d,h,p,f,o8,o9),n=se(p)*c+l,r=st(p)*d+u;break;case o0.R:oJ(i=n=t[e++],a=r=t[e++],i+t[e++],a+t[e++],o8,o9);break;case o0.Z:n=i,r=a}rS(o4,o4,o8),rC(o5,o5,o9)}return 0===e&&(o4[0]=o4[1]=o5[0]=o5[1]=0),new r8(o4[0],o4[1],o5[0]-o4[0],o5[1]-o4[1])},t.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||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(i=e[d],a=e[d+1],o=i,s=a);var f=-1;switch(h){case o0.M:i=o=e[d++],a=s=e[d++];break;case o0.L:var m=e[d++],g=e[d++],v=m-i,y=g-a;(sn(v)>n||sn(y)>r||d===t-1)&&(f=Math.sqrt(v*v+y*y),i=m,a=g);break;case o0.C:var x=e[d++],_=e[d++],m=e[d++],g=e[d++],b=e[d++],w=e[d++];f=function(e,t,n,r,i,a,o,s,l){for(var u=e,c=t,d=0,h=1;h<=10;h++){var p=.1*h,f=ik(e,n,i,o,p),m=ik(t,r,a,s,p),g=f-u,v=m-c;d+=Math.sqrt(g*g+v*v),u=f,c=m}return d}(i,a,x,_,m,g,b,w,0),i=b,a=w;break;case o0.Q:var x=e[d++],_=e[d++],m=e[d++],g=e[d++];f=function(e,t,n,r,i,a,o){for(var s=e,l=t,u=0,c=1;c<=10;c++){var d=.1*c,h=iz(e,n,i,d),p=iz(t,r,a,d),f=h-s,m=p-l;u+=Math.sqrt(f*f+m*m),s=h,l=p}return u}(i,a,x,_,m,g,0),i=m,a=g;break;case o0.A:var S=e[d++],C=e[d++],j=e[d++],T=e[d++],k=e[d++],I=e[d++],M=I+k;d+=1,p&&(o=se(k)*j+S,s=st(k)*T+C),f=o7(j,T)*o6(si,Math.abs(I)),i=se(M)*j+S,a=st(M)*T+C;break;case o0.R:o=i=e[d++],s=a=e[d++],f=2*e[d++]+2*e[d++];break;case o0.Z:var v=o-i,y=s-a;f=Math.sqrt(v*v+y*y),i=o,a=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,l,u,c,d,h=this.data,p=this._ux,f=this._uy,m=this._len,g=t<1,v=0,y=0,x=0;if(!g||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var _=0;_<m;){var b=h[_++],w=1===_;switch(w&&(i=h[_],a=h[_+1],n=i,r=a),b!==o0.L&&x>0&&(e.lineTo(c,d),x=0),b){case o0.M:n=i=h[_++],r=a=h[_++],e.moveTo(i,a);break;case o0.L:o=h[_++],s=h[_++];var S=sn(o-i),C=sn(s-a);if(S>p||C>f){if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;e.lineTo(i*(1-T)+o*T,a*(1-T)+s*T);break e}v+=j}e.lineTo(o,s),i=o,a=s,x=0}else{var k=S*S+C*C;k>x&&(c=o,d=s,x=k)}break;case o0.C:var I=h[_++],M=h[_++],D=h[_++],O=h[_++],A=h[_++],z=h[_++];if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;iO(i,I,D,A,T,o2),iO(a,M,O,z,T,o3),e.bezierCurveTo(o2[1],o3[1],o2[2],o3[2],o2[3],o3[3]);break e}v+=j}e.bezierCurveTo(I,M,D,O,A,z),i=A,a=z;break;case o0.Q:var I=h[_++],M=h[_++],D=h[_++],O=h[_++];if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;iN(i,I,D,T,o2),iN(a,M,O,T,o3),e.quadraticCurveTo(o2[1],o3[1],o2[2],o3[2]);break e}v+=j}e.quadraticCurveTo(I,M,D,O),i=D,a=O;break;case o0.A:var R=h[_++],P=h[_++],N=h[_++],L=h[_++],F=h[_++],E=h[_++],B=h[_++],H=!h[_++],V=N>L?N:L,W=sn(N-L)>.001,Y=F+E,G=!1;if(g){var j=l[y++];v+j>u&&(Y=F+E*(u-v)/j,G=!0),v+=j}if(W&&e.ellipse?e.ellipse(R,P,N,L,B,F,Y,H):e.arc(R,P,V,F,Y,H),G)break e;w&&(n=se(F)*N+R,r=st(F)*L+P),i=se(Y)*N+R,a=st(Y)*L+P;break;case o0.R:n=i=h[_],r=a=h[_+1],o=h[_++],s=h[_++];var U=h[_++],q=h[_++];if(g){var j=l[y++];if(v+j>u){var X=u-v;e.moveTo(o,s),e.lineTo(o+o6(X,U),s),(X-=U)>0&&e.lineTo(o+U,s+o6(X,q)),(X-=q)>0&&e.lineTo(o+o7(U-X,0),s+q),(X-=U)>0&&e.lineTo(o,s+o7(q-X,0));break e}v+=j}e.rect(o,s,U,q);break;case o0.Z:if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;e.lineTo(i*(1-T)+n*T,a*(1-T)+r*T);break e}v+=j}e.closePath(),i=n,a=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=o0,t.initDefaultProps=void((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0),t}();function su(e,t,n,r,i,a,o){if(0===i)return!1;var s=0,l=e;if(o>t+i&&o>r+i||o<t-i&&o<r-i||a>e+i&&a>n+i||a<e-i&&a<n-i)return!1;if(e===n)return Math.abs(a-e)<=i/2;s=(t-r)/(e-n);var u=s*a-o+(l=(e*r-n*t)/(e-n));return u*u/(s*s+1)<=i/2*i/2}var sc=2*Math.PI;function sd(e){return(e%=sc)<0&&(e+=sc),e}var sh=2*Math.PI;function sp(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;(1===o||0===o)&&(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}var sf=sl.CMD,sm=2*Math.PI,sg=[-1,-1,-1],sv=[-1,-1];function sy(e,t,n,r,i){for(var a,o,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,p=0,f=0;f<l;){var m,g,v,y,x,_,b,w,S,C,j,T,k,I,M=s[f++],D=1===f;switch(M===sf.M&&f>1&&!n&&(u+=sp(c,d,h,p,r,i)),D&&(c=s[f],d=s[f+1],h=c,p=d),M){case sf.M:h=s[f++],p=s[f++],c=h,d=p;break;case sf.L:if(n){if(su(c,d,s[f],s[f+1],t,r,i))return!0}else u+=sp(c,d,s[f],s[f+1],r,i)||0;c=s[f++],d=s[f++];break;case sf.C:if(n){if(m=c,g=d,v=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f],w=s[f+1],0!==t&&(!(i>g+t)||!(i>y+t)||!(i>_+t)||!(i>w+t))&&(!(i<g-t)||!(i<y-t)||!(i<_-t)||!(i<w-t))&&(!(r>m+t)||!(r>v+t)||!(r>x+t)||!(r>b+t))&&(!(r<m-t)||!(r<v-t)||!(r<x-t)||!(r<b-t))&&iA(m,g,v,y,x,_,b,w,r,i,null)<=t/2)return!0}else u+=function(e,t,n,r,i,a,o,s,l,u){if(u>t&&u>r&&u>a&&u>s||u<t&&u<r&&u<a&&u<s)return 0;var c=iM(t,r,a,s,u,sg);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,m=0;m<c;m++){var g=sg[m],v=0===g||1===g?.5:1;ik(e,n,i,o,g)<l||(h<0&&(h=iD(t,r,a,s,sv),sv[1]<sv[0]&&h>1&&function(){var e=sv[0];sv[0]=sv[1],sv[1]=e}(),p=ik(t,r,a,s,sv[0]),h>1&&(f=ik(t,r,a,s,sv[1]))),2===h?g<sv[0]?d+=p<t?v:-v:g<sv[1]?d+=f<p?v:-v:d+=s<f?v:-v:g<sv[0]?d+=p<t?v:-v:d+=s<p?v:-v)}return d}(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;c=s[f++],d=s[f++];break;case sf.Q:if(n){if(S=c,C=d,j=s[f++],T=s[f++],k=s[f],I=s[f+1],0!==t&&(!(i>C+t)||!(i>T+t)||!(i>I+t))&&(!(i<C-t)||!(i<T-t)||!(i<I-t))&&(!(r>S+t)||!(r>j+t)||!(r>k+t))&&(!(r<S-t)||!(r<j-t)||!(r<k-t))&&iL(S,C,j,T,k,I,r,i,null)<=t/2)return!0}else u+=function(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=function(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(ij(a)){if(iT(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ij(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var d=ix(c),u=(-o+d)/(2*a),h=(-o-d)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}(t,r,a,s,sg);if(0===l)return 0;var u=iP(t,r,a);if(u>=0&&u<=1){for(var c=0,d=iz(t,r,a,u),h=0;h<l;h++){var p=0===sg[h]||1===sg[h]?.5:1,f=iz(e,n,i,sg[h]);f<o||(sg[h]<u?c+=d<t?p:-p:c+=a<d?p:-p)}return c}var p=0===sg[0]||1===sg[0]?.5:1,f=iz(e,n,i,sg[0]);return f<o?0:a<t?p:-p}(c,d,s[f++],s[f++],s[f],s[f+1],r,i)||0;c=s[f++],d=s[f++];break;case sf.A:var O=s[f++],A=s[f++],z=s[f++],R=s[f++],P=s[f++],N=s[f++];f+=1;var L=!!(1-s[f++]);a=Math.cos(P)*z+O,o=Math.sin(P)*R+A,D?(h=a,p=o):u+=sp(c,d,a,o,r,i);var F=(r-O)*R/z+O;if(n){if(function(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var u=Math.sqrt((s-=e)*s+(l-=t)*l);if(u-o>n||u+o<n)return!1;if(Math.abs(r-i)%sh<1e-4)return!0;if(a){var c=r;r=sd(i),i=sd(c)}else r=sd(r),i=sd(i);r>i&&(i+=sh);var d=Math.atan2(l,s);return d<0&&(d+=sh),d>=r&&d<=i||d+sh>=r&&d+sh<=i}(O,A,R,P,P+N,L,t,F,i))return!0}else u+=function(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);sg[0]=-l,sg[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=sm-1e-4){r=0,i=sm;var c=a?1:-1;return o>=sg[0]+e&&o<=sg[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=sm,i+=sm);for(var h=0,p=0;p<2;p++){var f=sg[p];if(f+e>o){var m=Math.atan2(s,f),c=a?1:-1;m<0&&(m=sm+m),(m>=r&&m<=i||m+sm>=r&&m+sm<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}(O,A,R,P,P+N,L,F,i);c=Math.cos(P+N)*z+O,d=Math.sin(P+N)*R+A;break;case sf.R:h=c=s[f++],p=d=s[f++];var E=s[f++],B=s[f++];if(a=h+E,o=p+B,n){if(su(h,p,a,p,t,r,i)||su(a,p,a,o,t,r,i)||su(a,o,h,o,t,r,i)||su(h,o,h,p,t,r,i))return!0}else u+=sp(a,p,a,o,r,i),u+=sp(h,o,h,p,r,i);break;case sf.Z:if(n){if(su(c,d,h,p,t,r,i))return!0}else u+=sp(c,d,h,p,r,i);c=h,d=p}}return n||1e-4>Math.abs(d-p)||(u+=sp(c,d,h,p,r,i)||0),0!==u}var sx=nV({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oL),s_={style:nV({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oF.style)},sb=aL.concat(["invisible","culling","z","z2","zlevel","parent"]),sw=function(e){var t;function n(t){return e.call(this,t)||this}return rm(n,e),n.prototype.update=function(){var t=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.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<sb.length;++s)i[sb[s]]=this[sb[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(t){var n=nZ(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];"style"===a?this.style?nH(this.style,o):this.useStyle(o):"shape"===a?nH(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(n0(e)){var t=i5(e,0);return t>.5?aI:t>.2?"#eee":aM}else if(e)return aM}return aI},n.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(n0(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>i5(e,0))return t}},n.prototype.buildPath=function(e,t,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},n.prototype.createPathProxy=function(){this.path=new sl(!1)},n.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},n.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},n.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||4&this.__dirty)&&(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||(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 l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}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},n.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)),sy(a,o/s,!0,e,t)))return!0}if(this.hasFill())return sy(a,0,!1,e,t)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(e){return this.animate("shape",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},n.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:nH(n,e),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(e){return ru(sx,e)},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=nH({},this.shape))},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=nH({},r.shape),nH(s,n.shape)):(s=nH({},i?this.shape:r.shape),nH(s,n.shape)):l&&(s=r.shape),s)if(a){this.shape=nH({},this.shape);for(var u={},c=nZ(s),d=0;d<c.length;d++){var h=c[d];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},o)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},n.prototype.getAnimationStyleProps=function(){return s_},n.prototype.isZeroArea=function(){return!1},n.extend=function(e){var t=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return rm(n,t),n.prototype.getDefaultStyle=function(){return nE(e.style)},n.prototype.getDefaultShape=function(){return nE(e.shape)},n}(n);for(var r in e)"function"==typeof e[r]&&(t.prototype[r]=e[r]);return t},n.initDefaultProps=void((t=n.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=7),n}(oH),sS=1,sC={},sj=og(),sT=og(),sk=["emphasis","blur","select"],sI=["normal","emphasis","blur","select"],sM="highlight",sD="downplay",sO="select",sA="unselect",sz="toggleSelect";function sR(e){return null!=e&&"none"!==e}function sP(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function sN(e){sP(e,"emphasis",2)}function sL(e){2===e.hoverState&&sP(e,"normal",0)}function sF(e){sP(e,"blur",1)}function sE(e){1===e.hoverState&&sP(e,"normal",0)}function sB(e){e.selected=!0}function sH(e){e.selected=!1}function sV(e,t,n){t(e,n),e.isGroup&&e.traverse(function(e){t(e,n)})}function sW(e,t){var n,r,i,a,o,s=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&nW(n,"select")>=0,a=!1;if(e instanceof sw){var o=sj(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(sR(s)||sR(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(a=!0,r=nH({},r),(u=nH({},u)).fill=s):!sR(u.fill)&&sR(s)?(a=!0,r=nH({},r),(u=nH({},u)).fill=i9(s)):!sR(u.stroke)&&sR(l)&&(a||(r=nH({},r),u=nH({},u)),u.stroke=i9(l)),r.style=u}}if(r&&null==r.z2){a||(r=nH({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,s);else if("blur"===e)return n=s,r=nW(this.currentStates,e)>=0,i=this.style.opacity,a=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(a,t)}return a}(this,["opacity"],e,{opacity:1}),null==(o=(n=n||{}).style||{}).opacity&&(n=nH({},n),o=nH({opacity:r?i:.1*a.opacity},o),n.style=o),n;else if("select"===e){var l=s;if(l&&null==l.z2){l=nH({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function sY(e){e.stateProxy=sW;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=sW),n&&(n.stateProxy=sW)}function sG(e,t){s$(e,t)||e.__highByOuter||sV(e,sN)}function sU(e,t){s$(e,t)||e.__highByOuter||sV(e,sL)}function sq(e,t){e.__highByOuter|=1<<(t||0),sV(e,sN)}function sX(e,t){(e.__highByOuter&=~(1<<(t||0)))||sV(e,sL)}function s$(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function sZ(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=sT(i),o="series"===t,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);o||r.push(s),a.isBlured&&(s.group.traverse(function(e){sE(e)}),o&&n.push(i)),a.isBlured=!1}),nU(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function sK(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&sV(r,sE)}}if((n=n||"coordinateSystem",null!=e)&&t&&"none"!==t){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=o===e,u=e.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!c||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||sF(e)}),nG(t))a(e.getData(),t);else if(n3(t))for(var d=nZ(t),h=0;h<d.length;h++)a(e.getData(d[h]),t[d[h]]);l.push(e),sT(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function sJ(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){sT(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){sF(e)})}}}function sQ(e,t,n,r){var i,a={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return a;var o=r.getModel().getComponent(e,t);if(!o)return a;var s=r.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===oR(l[u]).focus){i=!0;break}return{focusSelf:i,dispatchers:l}}function s1(e){nU(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?sV(t,sB):sV(t,sH)})})}function s0(e,t,n){var r,i,a,o,s,l;i=false,(r=e).highDownSilentOnTouch&&(r.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!i||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!i),sV(e,sY),a=e,o=t,s=n,l=oR(a),null!=o?(l.focus=o,l.blurScope=s):l.focus&&(l.focus=null)}function s2(e){return!!(e&&e.__highDownDispatcher)}function s3(e){var t=e.type;return t===sO||t===sA||t===sz}function s4(e){var t=e.type;return t===sM||t===sD}function s5(e,t,n,r,i,a,o){var s,l=!1;n1(i)?(o=a,a=i,i=null):n3(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,r,i){if(t&&t.ecModel){var a,o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(!s)return null;var u=void 0,c=void 0,d=void 0;return r?(u=n6(r.duration,200),c=n6(r.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(d=a.delay)),n1(d)&&(d=d(n,i)),n1(u)&&(u=u(n)),{duration:u||0,delay:d,easing:c}}(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),l||t.attr(n),o&&o(1),a&&a()}function s8(e,t,n,r,i,a){s5("update",e,t,n,r,i,a)}function s9(e,t,n,r,i,a){s5("enter",e,t,n,r,i,a)}function s6(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}og();var s7={},le=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lt=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ln=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lr(e,t,n,r,i,a,o,s){n=!i&&n||s7;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=n6(t.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===c||"auto"===c)&&(c=l||null),a||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=n6(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=n6(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=n6(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=d||s||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),i||a||null!=e.fill||!r.inheritColor||(e.fill=r.inheritColor);for(var m=0;m<le.length;m++){var g=le[m],v=n6(t.getShallow(g),n[g]);null!=v&&(e[g]=v)}for(var m=0;m<lt.length;m++){var g=lt[m],v=t.getShallow(g);null!=v&&(e[g]=v)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!o||!r.disableBox){for(var m=0;m<ln.length;m++){var g=ln[m],v=t.getShallow(g);null!=v&&(e[g]=v)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),("auto"===e.backgroundColor||"inherit"===e.backgroundColor)&&l&&(e.backgroundColor=l),("auto"===e.borderColor||"inherit"===e.borderColor)&&l&&(e.borderColor=l)}}var li=og(),la=new iW(50);function lo(e,t,n,r,i){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!n)return t;var a=la.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?ll(t=a.image)||a.pending.push(o):((t=nj.loadImage(e,ls,ls)).__zrImageSrc=e,la.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}function ls(){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 ll(e){return e&&e.width&&e.height}var lu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lc(e,t,n,r){var i=nH({},r=r||{});i.font=t,n=n6(n,"..."),i.maxIterations=n6(r.maxIterations,2);var a=i.minChar=n6(r.minChar,0);i.cnCharWidth=aE("国",t);var o=i.ascCharWidth=aE("a",t);i.placeholder=n6(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=aE(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function ld(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var o=aE(t,i);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?function(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;o=aE(t=t.substr(0,l),i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}var lh=function(){},lp=function(e){this.tokens=[],e&&(this.tokens=e)},lf=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function lm(e,t,n,r,i){var a,o,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=aY(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(a=t.split("\n"),d=!0),r.accumWidth=f}else{var m=lv(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+p,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var g=0;g<a.length;g++){var v=a[g],y=new lh;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=o?o[g]:aE(v,c),g||d)u.push(new lp([y]));else{var x=(u[u.length-1]||(u[0]=new lp)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(v||!_||s)&&x.push(y)}}}var lg=nX(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function lv(e,t,n,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"===h){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=aE(h,t),f=!r&&!function(e){var t;return(!((t=e.charCodeAt(0))>=32)||!(t<=591))&&(!(t>=880)||!(t<=4351))&&(!(t>=4608)||!(t<=5119))&&(!(t>=7680)||!(t<=8303))||!!lg[e]}(h);if(a.length?c+p>n:i+c+p>n){c?(s||l)&&(f?(s||(s=l,l="",c=u=0),a.push(s),o.push(c-u),l+=h,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=p)):f?(a.push(l),o.push(u),l=h,u=p):(a.push(h),o.push(p));continue}c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h)}return a.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),1===a.length&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var ly=nV({strokeFirst:!0,font:nS,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},sx),lx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rm(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return ru(ly,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=function(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return aB(i[0],t,n,r);for(var a=new r8(0,0,0,0),o=0;o<i.length;o++){var s=aB(i[o],t,n,r);0===o?a.copy(s):a.union(s)}return a}(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(oH);lx.prototype.type="tspan";var l_=nV({x:0,y:0},oL),lb={style:nV({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oF.style)},lw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rm(t,e),t.prototype.createStyle=function(e){return ru(l_,e)},t.prototype._getSize=function(e){var t,n=this.style,r=n[e];if(null!=r)return r;var i=(t=n.image)&&"string"!=typeof t&&t.width&&t.height?n.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=n[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lb},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new r8(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oH);lw.prototype.type="image";var lS=Math.round;function lC(e,t,n){if(!t)return e;var r=lS(2*e);return(r+lS(t))%2==0?r/2:(r+(n?1:-1))/2}var lj=function(){this.x=0,this.y=0,this.width=0,this.height=0},lT={},lk=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultShape=function(){return new lj},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,r,i,a,o,s,l,u,c,d,h,p,f,m,g,v=function(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=lC(r,s,!0),e.y=lC(i,s,!0),e.width=Math.max(lC(r+a,s,!1)-e.x,+(0!==a)),e.height=Math.max(lC(i+o,s,!1)-e.y,+(0!==o))),e}}(lT,t,this.style);p=v.x,f=v.y,m=v.width,g=v.height,v.r=t.r,t=v}else p=t.x,f=t.y,m=t.width,g=t.height;t.r?(l=(n=t).x,u=n.y,c=n.width,d=n.height,h=n.r,c<0&&(l+=c,c=-c),d<0&&(u+=d,d=-d),"number"==typeof h?r=i=a=o=h:h instanceof Array?1===h.length?r=i=a=o=h[0]:2===h.length?(r=a=h[0],i=o=h[1]):3===h.length?(r=h[0],i=o=h[1],a=h[2]):(r=h[0],i=h[1],a=h[2],o=h[3]):r=i=a=o=0,r+i>c&&(s=r+i,r*=c/s,i*=c/s),a+o>c&&(s=a+o,a*=c/s,o*=c/s),i+a>d&&(s=i+a,i*=d/s,a*=d/s),r+o>d&&(s=r+o,r*=d/s,o*=d/s),e.moveTo(l+r,u),e.lineTo(l+c-i,u),0!==i&&e.arc(l+c-i,u+i,i,-Math.PI/2,0),e.lineTo(l+c,u+d-a),0!==a&&e.arc(l+c-a,u+d-a,a,0,Math.PI/2),e.lineTo(l+o,u+d),0!==o&&e.arc(l+o,u+d-o,o,Math.PI/2,Math.PI),e.lineTo(l,u+r),0!==r&&e.arc(l+r,u+r,r,Math.PI,1.5*Math.PI)):e.rect(p,f,m,g)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(sw);lk.prototype.type="rect";var lI={fill:"#000"},lM={style:nV({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},oF.style)},lD=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=lI,n.attr(t),n}return rm(t,e),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(){var e;this._childCursor=0,lP(e=this.style),nU(e.rich,lP),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 r8(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=r||e.clone()).union(e)):(r=r||o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||lI},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return nH(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=nZ(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},nH(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return lM},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||nS,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,a=t.font,o=aW(a),s=n6(t.lineHeight,o),l=!!t.backgroundColor,u="truncate"===t.lineOverflow,c=!1,d=t.width,h=(n=null!=d&&("break"===r||"breakAll"===r)?e?lv(e,t.font,d,"breakAll"===r,0).lines:[]:e?e.split("\n"):[]).length*s,p=n6(t.height,h);if(h>p&&u){var f=Math.floor(p/s);c=c||n.length>f,n=n.slice(0,f)}if(e&&"truncate"===r&&null!=d)for(var m=lc(d,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g={},v=0;v<n.length;v++)ld(g,n[v],m),n[v]=g.textLine,c=c||g.isTruncated;for(var y=p,x=0,v=0;v<n.length;v++)x=Math.max(aE(n[v],a),x);null==d&&(d=x);var _=x;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],d+=i[1]+i[3]),l&&(_=d),{lines:n,height:p,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:h,width:d,isTruncated:c}}(lE(e),e),i=lB(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var h=e.x||0,p=e.y||0,f=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",g=h,v=aV(p,r.contentHeight,m);if(i||n){var y=aH(h,s,f),x=aV(p,o,m);i&&this._renderBackground(e,e,y,x,s,o)}v+=c/2,n&&(g=lF(h,f,n),"top"===m?v+=n[0]:"bottom"===m&&(v-=n[2]));for(var _=0,b=!1,w=lL("fill"in e?e.fill:(b=!0,d.fill)),S=lN("stroke"in e?e.stroke:a||d.autoStroke&&!b?null:(_=2,d.stroke)),C=e.textShadowBlur>0,j=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=r.calculatedLineHeight,k=0;k<u.length;k++){var I=this._getOrCreateChild(lx),M=I.createStyle();I.useStyle(M),M.text=u[k],M.x=g,M.y=v,f&&(M.textAlign=f),M.textBaseline="middle",M.opacity=e.opacity,M.strokeFirst=!0,C&&(M.shadowBlur=e.textShadowBlur||0,M.shadowColor=e.textShadowColor||"transparent",M.shadowOffsetX=e.textShadowOffsetX||0,M.shadowOffsetY=e.textShadowOffsetY||0),M.stroke=S,M.fill=w,S&&(M.lineWidth=e.lineWidth||_,M.lineDash=e.lineDash,M.lineDashOffset=e.lineDashOffset||0),M.font=t,lR(M,e),v+=c,j&&I.setBoundingRect(new r8(aH(M.x,l,M.textAlign),aV(M.y,T,M.textBaseline),l,T))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n,r=new lf;if(null!=e&&(e+=""),!e)return r;for(var i=t.width,a=t.height,o=t.overflow,s=("break"===o||"breakAll"===o)&&null!=i?{width:i,accumWidth:0,breakAll:"breakAll"===o}:null,l=lu.lastIndex=0;null!=(n=lu.exec(e));){var u=n.index;u>l&&lm(r,e.substring(l,u),t,s),lm(r,n[2],t,s,n[1]),l=lu.lastIndex}l<e.length&&lm(r,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===o,m="truncate"===t.lineOverflow,g={};function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}t:for(var y=0;y<r.lines.length;y++){for(var x=r.lines[y],_=0,b=0,w=0;w<x.tokens.length;w++){var S=x.tokens[w],C=S.styleName&&t.rich[S.styleName]||{},j=S.textPadding=C.padding,T=j?j[1]+j[3]:0,k=S.font=C.font||t.font;S.contentHeight=aW(k);var I=n6(C.height,S.contentHeight);if(S.innerHeight=I,j&&(I+=j[0]+j[2]),S.height=I,S.lineHeight=n7(C.lineHeight,t.lineHeight,I),S.align=C&&C.align||t.align,S.verticalAlign=C&&C.verticalAlign||"middle",m&&null!=a&&d+S.lineHeight>a){var M=r.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),v(x,b,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y),r.isTruncated=r.isTruncated||r.lines.length<M;break t}var D=C.width,O=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))S.percentWidth=D,c.push(S),S.contentWidth=aE(S.text,k);else{if(O){var A=C.backgroundColor,z=A&&A.image;z&&ll(z=function(e){if("string"!=typeof e)return e;var t=la.get(e);return t&&t.image}(z))&&(S.width=Math.max(S.width,z.width*I/z.height))}var R=f&&null!=i?i-b:null;null!=R&&R<S.width?!O||R<T?(S.text="",S.width=S.contentWidth=0):(!function(e,t,n,r,i,a){if(!n){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=lc(n,r,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)ld(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}(g,S.text,R-T,k,t.ellipsis,{minChar:t.truncateMinChar}),S.text=g.text,r.isTruncated=r.isTruncated||g.isTruncated,S.width=S.contentWidth=aE(S.text,k)):S.contentWidth=aE(S.text,k)}S.width+=T,b+=S.width,C&&(_=Math.max(_,S.lineHeight))}v(x,b,_)}r.outerWidth=r.width=n6(i,h),r.outerHeight=r.height=n6(a,d),r.contentHeight=d,r.contentWidth=h,p&&(r.outerWidth+=p[1]+p[3],r.outerHeight+=p[0]+p[2]);for(var y=0;y<c.length;y++){var S=c[y],P=S.percentWidth;S.width=parseInt(P,10)/100*r.width}return r}(lE(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var d=aH(o,r,u),h=aV(s,i,c),p=d,f=h;a&&(p+=a[3],f+=a[0]);var m=p+n;lB(e)&&this._renderBackground(e,e,d,h,r,i);for(var g=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],x=y.tokens,_=x.length,b=y.lineHeight,w=y.width,S=0,C=p,j=m,T=_-1,k=void 0;S<_&&(!(k=x[S]).align||"left"===k.align);)this._placeToken(k,e,b,f,C,"left",g),w-=k.width,C+=k.width,S++;for(;T>=0&&"right"===(k=x[T]).align;)this._placeToken(k,e,b,f,j,"right",g),w-=k.width,j-=k.width,T--;for(C+=(n-(C-p)-(m-j)-w)/2;S<=T;)k=x[S],this._placeToken(k,e,b,f,C+k.width/2,"center",g),C+=k.width,S++;f+=b}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&lB(s)&&this._renderBackground(s,t,"right"===a?i-e.width:"center"===a?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(i=lF(i,a,d),u-=e.height/2-d[0]-e.innerHeight/2);var h=this._getOrCreateChild(lx),p=h.createStyle();h.useStyle(p);var f=this._defaultStyle,m=!1,g=0,v=lL("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,f.fill)),y=lN("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||o||f.autoStroke&&!m?null:(g=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=u,x&&(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||nS,p.opacity=n7(s.opacity,t.opacity,1),lR(p,s),y&&(p.lineWidth=n7(s.lineWidth,t.lineWidth,g),p.lineDash=n6(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v);var _=e.contentWidth,b=e.contentHeight;h.setBoundingRect(new r8(aH(p.x,_,p.textAlign),aV(p.y,b,p.textBaseline),_,b))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,p=e.borderRadius,f=this;if(h||e.lineHeight||u&&c){(o=this._getOrCreateChild(lk)).useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=n,m.y=r,m.width=i,m.height=a,m.r=p,o.dirtyShape()}if(h){var g=o.style;g.fill=l||null,g.fillOpacity=n6(e.fillOpacity,1)}else if(d){(s=this._getOrCreateChild(lw)).onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=r,v.width=i,v.height=a}if(u&&c){var g=o.style;g.lineWidth=u,g.stroke=c,g.strokeOpacity=n6(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=n7(e.opacity,t.opacity,1)},t.makeFont=function(e){var t,n,r="";return(null!=(t=e).fontSize||t.fontFamily||t.fontWeight)&&(r=[e.fontStyle,e.fontWeight,"string"==typeof(n=e.fontSize)&&(-1!==n.indexOf("px")||-1!==n.indexOf("rem")||-1!==n.indexOf("em"))?n:isNaN(+n)?"12px":n+"px",e.fontFamily||"sans-serif"].join(" ")),r&&rr(r)||e.textFont||e.font},t}(oH),lO={left:!0,right:1,center:1},lA={top:1,bottom:1,middle:1},lz=["fontStyle","fontWeight","fontSize","fontFamily"];function lR(e,t){for(var n=0;n<lz.length;n++){var r=lz[n],i=t[r];null!=i&&(e[r]=i)}}function lP(e){if(e){e.font=lD.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||lO[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||lA[n]?n:"top",e.padding&&(e.padding=rt(e.padding))}}function lN(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function lL(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function lF(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function lE(e){var t=e.text;return null!=t&&(t+=""),t}function lB(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var lH=["textStyle","color"],lV=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lW=new lD,lY=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(lH):null)},e.prototype.getFont=function(){var e,t,n;return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(t=this.ecModel)&&t.getModel("textStyle"),rr([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(" "))},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lV.length;n++)t[lV[n]]=this.getShallow(lV[n]);return lW.useStyle(t),lW.update(),lW.getBoundingRect()},e}(),lG=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lU=oO(lG),lq=function(){function e(){}return e.prototype.getLineStyle=function(e){return lU(this,e)},e}(),lX=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],l$=oO(lX),lZ=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return l$(this,e,t)},e}(),lK=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){nB(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new this.constructor(nE(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!nw.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else 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]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();oj(lK),w=["__\0is_clz",ok++].join("_"),lK.prototype[w]=!0,lK.isInstance=function(e){return!!(e&&e[w])},nY(lK,lq),nY(lK,lZ),nY(lK,oz),nY(lK,lY);var lJ=Math.round(10*Math.random());function lQ(e){return[e||"",lJ++].join("_")}var l1={},l0={},l2=nw.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function l3(e,t){l0[e=e.toUpperCase()]=new lK(t),l1[e]=t}l3("EN",{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:". "}}}}),l3("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var l4={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},l5="{yyyy}-{MM}-{dd}",l8={year:"{yyyy}",month:"{yyyy}-{MM}",day:l5,hour:l5+" "+l4.hour,minute:l5+" "+l4.minute,second:l5+" "+l4.second,millisecond:l4.none},l9=["year","month","day","hour","minute","second","millisecond"],l6=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function l7(e,t){return e+="","0000".substr(0,t-e.length)+e}function ue(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 ut(e,t,n,r){var i=a7(e),a=i[ui(n)](),o=i[ua(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[uo(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[us(n)](),d=(c-1)%12+1,h=i[ul(n)](),p=i[uu(n)](),f=i[uc(n)](),m=c>=12?"pm":"am",g=m.toUpperCase(),v=(r instanceof lK?r:l0[r||l2]||l0.EN).getModel("time"),y=v.get("month"),x=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,l7(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,l7(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,l7(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,l7(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,l7(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,l7(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,l7(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,l7(f,3)).replace(/{S}/g,f+"")}function un(e,t){var n=a7(e),r=n[ua(t)]()+1,i=n[uo(t)](),a=n[us(t)](),o=n[ul(t)](),s=n[uu(t)](),l=0===n[uc(t)](),u=l&&0===s,c=u&&0===o,d=c&&0===a,h=d&&1===i;if(h&&1===r)return"year";if(h)return"month";if(d)return"day";if(c)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function ur(e,t,n){var r=n2(e)?a7(e):e;switch(t=t||un(e,n)){case"year":return r[ui(n)]();case"half-year":return+(r[ua(n)]()>=6);case"quarter":return Math.floor((r[ua(n)]()+1)/4);case"month":return r[ua(n)]();case"day":return r[uo(n)]();case"half-day":return r[us(n)]()/24;case"hour":return r[us(n)]();case"minute":return r[ul(n)]();case"second":return r[uu(n)]();case"millisecond":return r[uc(n)]()}}function ui(e){return e?"getUTCFullYear":"getFullYear"}function ua(e){return e?"getUTCMonth":"getMonth"}function uo(e){return e?"getUTCDate":"getDate"}function us(e){return e?"getUTCHours":"getHours"}function ul(e){return e?"getUTCMinutes":"getMinutes"}function uu(e){return e?"getUTCSeconds":"getSeconds"}function uc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function ud(e){return e?"setUTCMonth":"setMonth"}function uh(e){return e?"setUTCDate":"setDate"}function up(e){return e?"setUTCHours":"setHours"}function uf(e){return e?"setUTCMinutes":"setMinutes"}function um(e){return e?"setUTCSeconds":"setSeconds"}function ug(e){return e?"setUTCMilliseconds":"setMilliseconds"}var uv=["a","b","c","d","e","f","g"],uy=function(e,t){return"{"+e+(null==t?"":t)+"}"},ux=["left","right","top","bottom","width","height"],u_=[["width","left","right"],["height","top","bottom"]];function ub(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var m=h.width+(f?-f.x+h.x:0);(c=a+m)>r||l.newline?(a=0,c=m,o+=s+n,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(f?-f.y+h.y:0);(d=o+g)>i||l.newline?(a+=s+n,o=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=d+n)})}function uw(e){var t=e.layoutMode||e.constructor.layoutMode;return n3(t)?t:t?{type:t}:null}function uS(e,t,n){var r=n&&n.ignoreSize;nQ(r)||(r=[r,r]);var i=o(u_[0],0),a=o(u_[1],1);function o(n,i){var a={},o=0,u={},c=0;if(nU(n,function(t){u[t]=e[t]}),nU(n,function(e){s(t,e)&&(a[e]=u[e]=t[e]),l(a,e)&&o++,l(u,e)&&c++}),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2===c||!o)return u;if(o>=2)return a;for(var d=0;d<n.length;d++){var h=n[d];if(!s(a,h)&&s(e,h)){a[h]=e[h];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){nU(e,function(e){t[e]=n[e]})}u(u_[0],e,i),u(u_[1],e,a)}nJ(ub,"vertical"),nJ(ub,"horizontal");function uC(e,t){return t&&e&&nU(ux,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var uj=og(),uT=function(e){var t;function n(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=lQ("ec_cpt_model"),i}return n_(n,e),n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=uw(this),r=n?uC({},e):{};nB(e,t.getTheme().get(this.mainType)),nB(e,this.getDefaultOption()),n&&uS(e,r,n)},n.prototype.mergeOption=function(e,t){nB(this.option,e,!0);var n=uw(this);n&&uS(this.option,e,n)},n.prototype.optionUpdated=function(e,t){},n.prototype.getDefaultOption=function(){var e=this.constructor;if(!(e&&e[oS]))return e.defaultOption;var t=uj(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=nB(a,n[o],!0);t.defaultOption=a}return t.defaultOption},n.prototype.getReferringComponents=function(e,t){return ob(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)},t)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(e){this.option.zlevel=e},n.protoInitialize=void((t=n.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0),n}(lK);oT(uT,lK),oD(uT),S={},uT.registerSubTypeDefaulter=function(e,t){S[oC(e).main]=t},uT.determineSubType=function(e,t){var n=t.type;if(!n){var r=oC(e).main;uT.hasSubTypes(e)&&S[r]&&(n=S[r](t))}return n};var uk=function(e){var t=[];return nU(uT.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=nq(t,function(e){return oC(e).main}),"dataset"!==e&&0>=nW(t,"dataset")&&t.unshift("dataset"),t};function uI(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}uT.topologicalTravel=function(e,t,n,r){if(e.length){var i,a,o,s=(a={},o=[],nU(i=t,function(e){var t,n,r,s=uI(a,e),l=(t=s.originalDeps=uk(e),n=i,r=[],nU(t,function(e){nW(n,e)>=0&&r.push(e)}),r);s.entryCount=l.length,0===s.entryCount&&o.push(e),nU(l,function(t){0>nW(s.predecessor,t)&&s.predecessor.push(t);var n=uI(a,t);0>nW(n.successor,t)&&n.successor.push(e)})}),{graph:a,noEntryList:o}),l=s.graph,u=s.noEntryList,c={};for(nU(e,function(e){c[e]=!0});u.length;){var d=u.pop(),h=l[d],p=!!c[d];p&&(n.call(r,d,h.originalDeps.slice()),delete c[d]),nU(h.successor,p?m:f)}nU(c,function(){throw Error("")})}function f(e){l[e].entryCount--,0===l[e].entryCount&&u.push(e)}function m(e){c[e]=!0,f(e)}};var uM="";"undefined"!=typeof navigator&&(uM=navigator.platform||"");var uD="rgba(0, 0, 0, 0.2)";let uO={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:uD,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uD,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uD,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uD,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uD,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uD,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uM.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var uA=rl(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),uz="original",uR="arrayRows",uP="objectRows",uN="keyedColumns",uL="typedArray",uF="unknown",uE="column",uB=og();function uH(e,t){return function(e,t,n,r,i,a){var o,s,l;if(n5(e))return 3;if(r){var u=r[a];n3(u)?(s=u.name,l=u.type):n0(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(t===uR)if("row"===n){for(var c=e[a],d=0;d<(c||[]).length&&d<5;d++)if(null!=(o=m(c[i+d])))return o}else for(var d=0;d<e.length&&d<5;d++){var h=e[i+d];if(h&&null!=(o=m(h[a])))return o}else if(t===uP){if(!s)return 3;for(var d=0;d<e.length&&d<5;d++){var p=e[d];if(p&&null!=(o=m(p[s])))return o}}else if(t===uN){if(!s)return 3;var c=e[s];if(!c||n5(c))return 3;for(var d=0;d<c.length&&d<5;d++)if(null!=(o=m(c[d])))return o}else if(t===uz)for(var d=0;d<e.length&&d<5;d++){var p=e[d],f=ou(p);if(!nQ(f))return 3;if(null!=(o=m(f[a])))return o}function m(e){var t=n0(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?2:3:t&&"-"!==e?1:void 0}return 3}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var uV=rl(),uW=og();og();var uY=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){return function(e,t,n,r,i,a,o){var s=t(a=a||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=o&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;if((c=c||n)&&c.length){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}(this,uW,oo(this.get("color",!0)),this.get("colorLayer",!0),e,t,n)},e.prototype.clearColorPalette=function(){var e,t;e=this,(t=uW)(e).paletteIdx=0,t(e).paletteNameMap={}},e}(),uG="\0_ec_inner",uU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n_(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new lK(r),this._locale=new lK(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=u$(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,u$(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):O(this,i),n=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=r.getMediaOption(this);o.length&&nU(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=rl(),s=t&&t.replaceMergeMainTypeMap;uB(this).datasetMap=rl(),nU(e,function(e,t){null!=e&&(uT.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?nE(e):nB(n[t],e,!0))}),s&&s.each(function(e,t){uT.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),uT.topologicalTravel(a,uT.getAllClassMainTypes(),function(t){var a,o,l,u,c,d,h,p,f,m,g,v,y,x,_,b,w,S,C,j,T=function(e,t,n){var r=uV.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,oo(e[t])),k=r.get(t),I=k?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",D=(y=k,x=T,_="normalMerge"===I,b="replaceMerge"===I,w="replaceAll"===I,y=y||[],x=(x||[]).slice(),S=rl(),nU(x,function(e,t){if(!n3(e)){x[t]=null;return}}),C=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&null!=a.id&&t.set(a.id,i),r.push({existing:"replaceMerge"===n||of(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(y,S,I),(_||b)&&(a=C,o=y,l=S,nU(u=x,function(e,t){if(e&&null!=e.id){var n=od(e.id),r=l.get(n);if(null!=r){var i=a[r];rn(!i.newOption,'Duplicated option on id "'+n+'".'),i.newOption=e,i.existing=o[r],u[t]=null}}})),_&&(c=C,nU(d=x,function(e,t){if(e&&null!=e.name)for(var n=0;n<c.length;n++){var r=c[n].existing;if(!c[n].newOption&&r&&(null==r.id||null==e.id)&&!of(e)&&!of(r)&&oc("name",r,e)){c[n].newOption=e,d[t]=null;return}}})),_||b?(h=C,p=x,f=b,nU(p,function(e){if(e){for(var t,n=0;(t=h[n])&&(t.newOption||of(t.existing)||t.existing&&null!=e.id&&!oc("id",e,t.existing));)n++;t?(t.newOption=e,t.brandNew=f):h.push({newOption:e,brandNew:f,existing:null,keyInfo:null}),n++}})):w&&(m=C,nU(x,function(e){m.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})),g=C,v=rl(),nU(g,function(e){var t=e.existing;t&&v.set(t.id,e)}),nU(g,function(e){var t=e.newOption;rn(!t||null==t.id||!v.get(t.id)||v.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&v.set(t.id,e),e.keyInfo||(e.keyInfo={})}),nU(g,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(n3(r)){if(i.name=null!=r.name?od(r.name):n?n.name:oa+t,n)i.id=od(n.id);else if(null!=r.id)i.id=od(r.id);else{var a=0;do i.id="\0"+i.name+"\0"+a++;while(v.get(i.id))}v.set(i.id,e)}}),C);nU(D,function(e){var n,r,i,a,o=e.newOption;n3(o)&&(e.keyInfo.mainType=t,e.keyInfo.subType=(n=t,r=o,i=e.existing,a=uT,r.type?r.type:i?i.subType:a.determineSubType(n,r)))}),n[t]=null,r.set(t,null),i.set(t,0);var O=[],A=[],z=0;nU(D,function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,o=uT.getClass(t,e.keyInfo.subType,!a);if(!o)return;if("tooltip"===t){if(j)return;j=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=nH({componentIndex:n},e.keyInfo);nH(r=new o(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(O.push(r.option),A.push(r),z++):(O.push(void 0),A.push(void 0))},this),n[t]=O,r.set(t,A),i.set(t,z),"series"===t&&M(this)},this),this._seriesIndices||M(this)},t.prototype.getOption=function(){var e=nE(this.option);return nU(e,function(t,n){if(uT.hasClass(n)){for(var r=oo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!of(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[uG],e},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(null==t){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t,n=e.mainType;if(!n)return[];var r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(n);return o&&o.length?(null!=r?(t=[],nU(oo(r),function(e){o[e]&&t.push(o[e])})):t=null!=i?uq("id",i,o):null!=a?uq("name",a,o):n$(o,function(e){return!!e}),uX(t,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,a,o=e.query,s=e.mainType,l=(t=o,n=s+"Index",r=s+"Id",i=s+"Name",t&&(null!=t[n]||null!=t[r]||null!=t[i])?{mainType:s,index:t[n],id:t[r],name:t[i]}:null);return a=uX(l?this.queryComponents(l):n$(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?n$(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(n1(e))r.each(function(n,r){for(var i=0;n&&i<n.length;i++){var a=n[i];a&&e.call(t,r,a,a.componentIndex)}});else for(var i=n0(e)?r.get(e):n3(e)?this.findComponents(e):null,a=0;i&&a<i.length;a++){var o=i[a];o&&t.call(n,o,o.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=oh(e,null);return n$(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return n$(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return n$(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){D(this),nU(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){nU(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){D(this),nU(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 nU(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return D(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){D(this);var n=[];nU(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=rl(n)},t.prototype.restoreData=function(e){M(this);var t=this._componentsMap,n=[];t.each(function(e,t){uT.hasClass(t)&&n.push(t)}),uT.topologicalTravel(n,uT.getAllClassMainTypes(),function(n){nU(t.get(n),function(t){t&&("series"!==n||!function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e))&&t.restoreData()})})},t.internalField=void(M=function(e){var t=e._seriesIndices=[];nU(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=rl(t)},D=function(e){},O=function(e,t){e.option={},e.option[uG]=1,e._componentsMap=rl({series:[]}),e._componentsCount=rl();var n,r,i,a=t.aria;n3(a)&&null==a.enabled&&(a.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,nU(r,function(e,t){("colorLayer"!==t||!i)&&(uT.hasClass(t)||("object"==typeof e?n[t]=n[t]?nB(n[t],e,!1):nE(e):null==n[t]&&(n[t]=e)))}),nB(t,uO,!1),e._mergeOption(t,null)}),t}(lK);function uq(e,t,n){if(nQ(t)){var r=rl();return nU(t,function(e){null!=e&&null!=oh(e,null)&&r.set(e,!0)}),n$(n,function(t){return t&&r.get(t[e])})}var i=oh(t,null);return n$(n,function(t){return t&&null!=i&&t[e]===i})}function uX(e,t){return t.hasOwnProperty("subType")?n$(e,function(e){return e&&e.subType===t.subType}):e}function u$(e){var t=rl();return e&&nU(oo(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}nY(uU,uY);var uZ=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let uK=function(e){nU(uZ,function(t){this[t]=nK(e[t],e)},this)};var uJ={},uQ=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];nU(uJ,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){nU(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){uJ[e]=t},e.get=function(e){return uJ[e]},e}(),u1=/^(min|max)?(.+)$/,u0=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(nU(oo(e.series),function(e){e&&e.data&&n5(e.data)&&(e.data[ri]=!0)}),nU(oo(e.dataset),function(e){e&&e.source&&n5(e.source)&&(e.source[ri]=!0)})),e=nE(e);var r=this._optionBackup,i=function(e,t,n){var r,i,a=[],o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||o&&o.timeline);function h(e){nU(t,function(t){t(e,n)})}return o?(i=o).timeline||(i.timeline=s):((d||c)&&(e.options=e.media=null),i=e),c&&nQ(u)&&nU(u,function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))}),h(i),nU(l,function(e){return h(e)}),nU(a,function(e){return h(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:a}}(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=[],nE(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=nE(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var u=0,c=a.length;u<c;u++)(function(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return nU(e,function(e,t){var n=t.match(u1);if(n&&n[1]&&n[2]){var a,o,s,l=n[1];a=r[n[2].toLowerCase()],o=e,("min"===(s=l)?a>=o:"max"===s?a<=o:a===o)||(i=!1)}}),i})(a[u].query,r,i)&&s.push(u);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=nq(s,function(e){return nE(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}(),u2=n3,u3=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u4(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=u3.length;n<r;n++){var i=u3[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?nB(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?nB(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function u5(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,nV(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 u8(e){u5(e,"itemStyle"),u5(e,"lineStyle"),u5(e,"areaStyle"),u5(e,"label"),u5(e,"labelLine"),u5(e,"upperLabel"),u5(e,"edgeLabel")}function u9(e,t){var n=u2(e)&&e[t],r=u2(n)&&n.textStyle;if(r)for(var i=0,a=ol.length;i<a;i++){var o=ol[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function u6(e){e&&(u8(e),u9(e,"label"),e.emphasis&&u9(e.emphasis,"label"))}function u7(e){return nQ(e)?e:e?[e]:[]}function ce(e){return(nQ(e)?e[0]:e)||{}}function ct(e){e&&nU(cn,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var cn=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],cr=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ci=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ca(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<ci.length;n++){var r=ci[n][1],i=ci[n][0];null!=t[r]&&(t[i]=t[r])}}function co(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function cs(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function cl(e,t){var n;nU(u7(e.series),function(e){u2(e)&&function(e){if(u2(e)){u4(e),u8(e),u9(e,"label"),u9(e,"upperLabel"),u9(e,"edgeLabel"),e.emphasis&&(u9(e.emphasis,"label"),u9(e.emphasis,"upperLabel"),u9(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(u4(t),u6(t));var n=e.markLine;n&&(u4(n),u6(n));var r=e.markArea;r&&u6(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!n5(a))for(var o=0;o<a.length;o++)u6(a[o]);nU(e.categories,function(e){u8(e)})}if(i&&!n5(i))for(var o=0;o<i.length;o++)u6(i[o]);if((t=e.markPoint)&&t.data)for(var s=t.data,o=0;o<s.length;o++)u6(s[o]);if((n=e.markLine)&&n.data)for(var l=n.data,o=0;o<l.length;o++)nQ(l[o])?(u6(l[o][0]),u6(l[o][1])):u6(l[o]);"gauge"===e.type?(u9(e,"axisLabel"),u9(e,"title"),u9(e,"detail")):"treemap"===e.type?(u5(e.breadcrumb,"itemStyle"),nU(e.levels,function(e){u8(e)})):"tree"===e.type&&u8(e.leaves)}}(e)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),nU(n,function(t){nU(u7(e[t]),function(e){e&&(u9(e,"axisLabel"),u9(e.axisPointer,"label"))})}),nU(u7(e.parallel),function(e){var t=e&&e.parallelAxisDefault;u9(t,"axisLabel"),u9(t&&t.axisPointer,"label")}),nU(u7(e.calendar),function(e){u5(e,"itemStyle"),u9(e,"dayLabel"),u9(e,"monthLabel"),u9(e,"yearLabel")}),nU(u7(e.radar),function(e){u9(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),nU(u7(e.geo),function(e){u2(e)&&(u6(e),nU(u7(e.regions),function(e){u6(e)}))}),nU(u7(e.timeline),function(e){u6(e),u5(e,"label"),u5(e,"itemStyle"),u5(e,"controlStyle",!0);var t=e.data;nQ(t)&&nU(t,function(e){n3(e)&&(u5(e,"label"),u5(e,"itemStyle"))})}),nU(u7(e.toolbox),function(e){u5(e,"iconStyle"),nU(e.feature,function(e){u5(e,"iconStyle")})}),u9(ce(e.axisPointer),"label"),u9(ce(e.tooltip).axisPointer,"label"),e.series=oo(e.series),nU(e.series,function(e){if(n3(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),co(e.label);var n=e.data;if(n&&!n5(n))for(var r=0;r<n.length;r++)co(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},e.emphasis.scaleSize=null)}else if("gauge"===t){var i=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=i&&function(e,t,n,r){for(var i,a=t.split(","),o=e,s=0;s<a.length-1;s++)null==o[i=a[s]]&&(o[i]={}),o=o[i];null==o[a[s]]&&(o[a[s]]=n)}(e,"itemStyle.color",i)}else if("bar"===t){ca(e),ca(e.backgroundStyle),ca(e.emphasis);var n=e.data;if(n&&!n5(n))for(var r=0;r<n.length;r++)"object"==typeof n[r]&&(ca(n[r]),ca(n[r]&&n[r].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),cs(e),function e(t,n){if(t)for(var r=0;r<t.length;r++)n(t[r]),t[r]&&e(t[r].children,n)}(e.data,cs)}else"graph"===t||"sankey"===t?e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency")):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&nV(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),ct(e)}}),e.dataRange&&(e.visualMap=e.dataRange),nU(cr,function(t){var n=e[t];n&&(nQ(n)||(n=[n]),nU(n,function(e){ct(e)}))})}function cu(e){nU(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(a,u,c){var d,h,p=o.get(t.stackedDimension,c);if(isNaN(p))return i;s?h=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var f=NaN,m=n-1;m>=0;m--){var g=e[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,d)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=function(e,t){var n=Math.max(a9(e),a9(t)),r=e+t;return n>20?r:a8(r,n)}(p,v),f=v;break}}}return r[0]=p,r[1]=f,r})})}var cc=function(e){this.data=e.data||(e.sourceFormat===uN?{}:[]),this.sourceFormat=e.sourceFormat||uF,this.seriesLayoutBy=e.seriesLayoutBy||uE,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];null==r.type&&1===uH(this,n)&&(r.type="ordinal")}};function cd(e){return e instanceof cc}function ch(e,t,n){n=n||cf(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){if(!e)return{dimensionsDefine:cm(i),startIndex:o,dimensionsDetectedCount:a};if(t===uR){var a,o;"auto"===r||null==r?cg(function(e){null!=e&&"-"!==e&&(n0(e)?null==o&&(o=1):o=0)},n,e,10):o=n2(r)?r:+!!r,i||1!==o||(i=[],cg(function(e,t){i[t]=null!=e?e+"":""},n,e,1/0)),a=i?i.length:"row"===n?e.length:e[0]?e[0].length:null}else if(t===uP)i||(i=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return nZ(t)}(e));else if(t===uN)i||(i=[],nU(e,function(e,t){i.push(t)}));else if(t===uz){var s=ou(e[0]);a=nQ(s)&&s.length||1}return{startIndex:o,dimensionsDefine:cm(i),dimensionsDetectedCount:a}}(e,n,r,t.sourceHeader,t.dimensions);return new cc({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:nE(t)})}function cp(e){return new cc({data:e,sourceFormat:n5(e)?uL:uz})}function cf(e){var t=uF;if(n5(e))t=uL;else if(nQ(e)){0===e.length&&(t=uR);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(nQ(i)||n5(i)){t=uR;break}else if(n3(i)){t=uP;break}}}}else if(n3(e)){for(var a in e)if(rd(e,a)&&nG(e[a])){t=uN;break}}return t}function cm(e){if(e){var t=rl();return nq(e,function(e,n){var r={name:(e=n3(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function cg(e,t,n,r){if("row"===t)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 cv(e){var t=e.sourceFormat;return t===uP||t===uN}var cy=function(){var e;function t(e,t){var n=cd(e)?e:cp(e);this._source=n;var r=this._data=n.data;n.sourceFormat===uL&&(this._offset=0,this._dimSize=t,this._data=r),N(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,t){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=void((e=t.prototype).pure=!1,e.persistent=!0),t.internalField=function(){N=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,u=a.dimensionsDefine;nH(e,P[cj(o,s)]),o===uL?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=nK(function(e,t){return c_[cj(e,t)]}(o,s),null,i,l,u),e.count=nK(function(e,t){return cw[cj(e,t)]}(o,s),null,i,l,u))};var e,t=function(e,t){e-=this._offset,t=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],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[o],h=0;h<c;h++){var p=i[h*a+o];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[uR+"_"+uE]={pure:!0,appendData:i},e[uR+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[uP]={pure:!0,appendData:i},e[uN]={pure:!0,appendData:function(e){var t=this._data;nU(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[uz]={appendData:i},e[uL]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},P=e}(),t}(),cx=function(e,t,n,r){return e[r]},c_=((A={})[uR+"_"+uE]=function(e,t,n,r){return e[r+t]},A[uR+"_row"]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=0;o<e.length;o++){var s=e[o];a[o]=s?s[r]:null}return a},A[uP]=cx,A[uN]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},A[uz]=cx,A),cb=function(e,t,n){return e.length},cw=((z={})[uR+"_"+uE]=function(e,t,n){return Math.max(0,e.length-t)},z[uR+"_row"]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},z[uP]=cb,z[uN]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},z[uz]=cb,z),cS=function(e,t,n){return e[t]},cC=((R={})[uR]=cS,R[uP]=function(e,t,n){return e[n]},R[uN]=cS,R[uz]=function(e,t,n){var r=ou(e);return r instanceof Array?r[t]:r},R[uL]=cS,R);function cj(e,t){return e===uR?e+"_"+t:e}function cT(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return cC[a](r,o,s)}var l=r;return a===uz&&(l=ou(r)),l}}}var ck=/\{@(.+?)\}/g,cI=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"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,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:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||"normal";var o=this.getData(n),s=this.getDataParams(e,n);return(a&&(s.value=a.interpolatedValue),null!=r&&nQ(s.value)&&(s.value=s.value[r]),i||(i=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),n1(i))?(s.status=t,s.dimensionIndex=r,i(s)):n0(i)?(function(e,t,n){nQ(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=uv[a];e=e.replace(uy(o),uy(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(uy(uv[l],s),u)}return e})(i,s).replace(ck,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=cT(o,e,i);if(a&&nQ(a.interpolatedValue)){var l=o.getDimensionIndex(i);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return cT(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function cM(e){return new cD(e)}var cD=function(){function e(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,n,r,i,a=this._upstream,o=e&&e.skip;if(this._dirty&&a){var s=this.context;s.data=s.outputData=a.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(r=this._plan(this.context));var l=((t=this._modBy)>=1||(t=1),t),u=this._modDataCount||0,c=((n=e&&e.modBy)>=1||(n=1),n),d=e&&e.modDataCount||0;(l!==c||u!==d)&&(r="reset"),(this._dirty||"reset"===r)&&(this._dirty=!1,i=this._doReset(o)),this._modBy=c,this._modDataCount=d;var h=e&&e.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!o&&(i||p<f)){var m=this._progress;if(nQ(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],p,f,c,d);else this._doProgress(m,p,f,c,d)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;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){cO.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:cO.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),nQ(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var t,n,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,this._disposed=!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}(),cO=function(){var e,t,n,r,i,a={reset:function(l,u,c,d){t=l,e=u,n=c,i=Math.ceil((r=d)/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 cA(e){throw Error(e)}function cz(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||n2(e)||null==e||"-"===e||(e=+a7(e)),null==e||""===e?NaN:Number(e))}rl({number:function(e){return parseFloat(e)},time:function(e){return+a7(e)},trim:function(e){return n0(e)?rr(e):e}});var cR={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}};(function(e,t){n2(t)||cA(""),this._opFn=cR[e],this._rvalFloat=on(t)}).prototype.evaluate=function(e){return n2(e)?this._opFn(e,this._rvalFloat):this._opFn(on(e),this._rvalFloat)},(function(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}).prototype.evaluate=function(e,t){var n=n2(e)?e:on(e),r=n2(t)?t:on(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=n0(e),s=n0(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},(function(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=on(t)}).prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(t=on(e)===this._rvalFloat)}return this._isEQ?t:!t};var cP=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 cz(e,t)},e}();function cN(e){return cH(e.sourceFormat)||cA(""),e.data}function cL(e){var t=e.sourceFormat,n=e.data;if(cH(t)||cA(""),t===uR){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===uP){for(var r=[],i=0,a=n.length;i<a;i++)r.push(nH({},n[i]));return r}}function cF(e,t,n){if(null!=n){if(n2(n)||!isNaN(n)&&!rd(t,n))return e[n];else if(rd(t,n))return t[n]}}function cE(e){return nE(e)}var cB=rl();function cH(e){return e===uR||e===uP}var cV="undefined",cW=typeof Uint32Array===cV?Array:Uint32Array,cY=typeof Uint16Array===cV?Array:Uint16Array,cG=typeof Int32Array===cV?Array:Int32Array,cU=typeof Float64Array===cV?Array:Float64Array,cq={float:cU,int:cG,ordinal:Array,number:Array,time:cU};function cX(e){return e>65535?cW:cY}function c$(){return[1/0,-1/0]}function cZ(e,t,n,r,i){var a=cq[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(r)}var cK=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=rl()}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=L[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],cv(r),this._dimensions=nq(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(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new cq[t||"float"](this._rawCount),this._rawExtent[i]=c$(),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;0===a&&(i[e]=c$());for(var s=i[e],l=a;l<o;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,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),l=0;l<i;l++){var u=r[l];cZ(n,l,u.type,s,!0)}for(var c=[],d=o;d<s;d++)for(var h=d-o,p=0;p<i;p++){var u=r[p],f=L.arrayRows.call(this,e[h]||c,u.property,h,p);n[p][d]=f;var m=a[p];f<m[0]&&(m[0]=f),f>m[1]&&(m[1]=f)}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,l=nq(a,function(e){return e.property}),u=0;u<o;u++){var c=a[u];s[u]||(s[u]=c$()),cZ(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],h=e;h<t;h++){d=r.getItem(h,d);for(var p=0;p<o;p++){var f=i[p],m=this._dimValueGetter(d,l[p],h,p);f[h]=m;var g=s[p];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!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(null==t){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 0===r?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(null!=n&&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))return a;i=a-1}}return -1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<a||d===a&&c>=0&&o<0)&&(a=d,o=c,s=0),c===o&&(i[s++]=l))}return i.length=s,i},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=cX(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(cX(n._rawCount))(r),a=[],o=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var d=void 0,h=n.getRawIndex(c);if(0===o)d=t(c);else if(1===o)d=t(u[l][h],c);else{for(var p=0;p<o;p++)a[p]=u[e[p]][h];a[p]=c,d=t.apply(null,a)}d&&(i[s++]=h)}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=nZ(e),i=r.length;if(!i)return this;var a=t.count(),o=new(cX(t._rawCount))(a),s=0,l=r[0],u=e[l][0],c=e[l][1],d=t._chunks,h=!1;if(!t._indices){var p=0;if(1===i){for(var f=d[r[0]],m=0;m<n;m++){var g=f[m];(g>=u&&g<=c||isNaN(g))&&(o[s++]=p),p++}h=!0}else if(2===i){for(var f=d[r[0]],v=d[r[1]],y=e[r[1]][0],x=e[r[1]][1],m=0;m<n;m++){var g=f[m],_=v[m];(g>=u&&g<=c||isNaN(g))&&(_>=y&&_<=x||isNaN(_))&&(o[s++]=p),p++}h=!0}}if(!h)if(1===i)for(var m=0;m<a;m++){var b=t.getRawIndex(m),g=d[r[0]][b];(g>=u&&g<=c||isNaN(g))&&(o[s++]=b)}else for(var m=0;m<a;m++){for(var w=!0,b=t.getRawIndex(m),S=0;S<i;S++){var C=r[S],g=d[C][b];(g<e[C][0]||g>e[C][1])&&(w=!1)}w&&(o[s++]=t.getRawIndex(m))}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=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=c$();for(var c=0;c<o;c++){for(var d=e.getRawIndex(c),h=0;h<a;h++)s[h]=r[t[h]][d];s[a]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(var u=0;u<p.length;u++){var f=t[u],m=p[u],g=l[f],v=r[f];v&&(v[d]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(cX(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));d[l++]=c;for(var h=1;h<s-1;h+=u){for(var p=Math.min(h+u,s-1),f=Math.min(h+2*u,s),m=(f+p)/2,g=0,v=p;v<f;v++){var y=this.getRawIndex(v),x=o[y];isNaN(x)||(g+=x)}g/=f-p;var _=h,b=Math.min(h+u,s),w=h-1,S=o[c];n=-1,i=_;for(var C=-1,j=0,v=_;v<b;v++){var y=this.getRawIndex(v),x=o[y];if(isNaN(x)){j++,C<0&&(C=y);continue}(r=Math.abs((w-m)*(x-S)-(w-v)*(g-S)))>n&&(n=r,i=y)}j>0&&j<b-_&&(d[l++]=Math.min(C,i),i=Math.max(C,i)),d[l++]=i,c=i}return d[l++]=this.getRawIndex(s-1),a._count=l,a._indices=d,a.getRawIndex=this._getRawIdx,a},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(cX(this._rawCount))(2*Math.ceil(o/i)),l=0,u=0;u<o;u+=i){var c=u,d=a[this.getRawIndex(c)],h=u,p=a[this.getRawIndex(h)],f=i;u+i>o&&(f=o-u);for(var m=0;m<f;m++){var g=a[this.getRawIndex(u+m)];g<d&&(d=g,c=u+m),g>p&&(p=g,h=u+m)}var v=this.getRawIndex(c),y=this.getRawIndex(h);c<h?(s[l++]=v,s[l++]=y):(s[l++]=y,s[l++]=v)}return n._count=l,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),l=a[e],u=this.count(),c=i._rawExtent[e]=c$(),d=new(cX(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(o.length=s=u-p);for(var f=0;f<s;f++){var m=this.getRawIndex(p+f);o[f]=l[m]}var g=n(o),v=this.getRawIndex(Math.min(p+r(o,g)||0,u-1));l[v]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),d[h++]=v}return i._count=h,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,l=[];s<n;s++)l[s]=r[e[s]][o];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t,n=this._chunks[e],r=c$();if(!n)return r;var i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(t=this._extent[e])return t.slice();for(var a=(t=r)[0],o=t[1],s=0;s<i;s++){var l=n[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return t=[a,o],this._extent[e]=t,t},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&&nX(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?function(e){var t=e.constructor;return t===Array?e.slice():new t(e)}(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=nE(this._extent),e._rawExtent=nE(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 cz(e[r],this._dimensions[r])}L={arrayRows:e,objectRows:function(e,t,n,r){return cz(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return cz(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),cJ=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,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(c1(n)){var a=void 0,o=void 0,s=void 0;if(i){var l=r[0];l.prepareSource(),a=(s=l.getSource()).data,o=s.sourceFormat,t=[l._getVersionSign()]}else o=n5(a=n.get("data",!0))?uL:uz,t=[];var u=this._getSourceMetaRawOption()||{},c=s&&s.metaRawOption||{},d=n6(u.seriesLayoutBy,c.seriesLayoutBy)||null,h=n6(u.sourceHeader,c.sourceHeader),p=n6(u.dimensions,c.dimensions);e=d!==c.seriesLayoutBy||!!h!=!!c.sourceHeader||p?[ch(a,{seriesLayoutBy:d,sourceHeader:h,dimensions:p},o)]:[]}else if(i){var f=this._applyTransform(r);e=f.sourceList,t=f.upstreamSignList}else e=[ch(n.get("source",!0),this._getSourceMetaRawOption(),null)],t=[];this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n,r=this._sourceHost,i=r.get("transform",!0),a=r.get("fromTransformResult",!0);null!=a&&1!==e.length&&c0("");var o=[],s=[];return(nU(e,function(e){e.prepareSource();var t=e.getSource(a||0);null==a||t||c0(""),o.push(t),s.push(e._getVersionSign())}),i)?n=function(e,t,n){var r=oo(e),i=r.length;i||cA("");for(var a=0;a<i;a++)t=function(e,t,n,r){t.length||cA(""),n3(e)||cA("");var i=e.type,a=cB.get(i);a||cA("");var o=nq(t,function(e){return function(e,t){var n=new cP,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==uE&&cA("");var o=[],s={},l=e.dimensionsDefine;if(l)nU(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),null!=n&&(rd(s,n)&&cA(""),s[n]=r)});else for(var u=0;u<e.dimensionsDetectedCount||0;u++)o.push({index:u});var c=c_[cj(i,uE)];t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,a,o,e)},n.getRawData=nK(cN,null,e)),n.cloneRawData=nK(cL,null,e),n.count=nK(cw[cj(i,uE)],null,r,a,o);var d=cC[i];n.retrieveValue=function(e,t){return h(c(r,a,o,e),t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=nK(cF,null,o,s),n.cloneAllDimensionInfo=nK(cE,null,o),n}(e,a)});return nq(oo(a.transform({upstream:o[0],upstreamList:o,config:nE(e.config)})),function(e,n){n3(e)||cA(""),e.data||cA(""),cH(cf(e.data))||cA("");var r,i=t[0];if(i&&0===n&&!e.dimensions){var a=i.startIndex;a&&(e.data=i.data.slice(0,a).concat(e.data)),r={seriesLayoutBy:uE,sourceHeader:a,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:uE,sourceHeader:0,dimensions:e.dimensions};return ch(e.data,r,null)})}(r[a],t,0,0),a!==i-1&&(t.length=Math.max(t.length,1));return t}(i,o,{datasetIndex:r.componentIndex}):null!=a&&(n=[new cc({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:nE(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},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=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=this._storeList,i=r[0];i||(i=r[0]={});var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];c1(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new cK).initData(new cy(t,e.length),e),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(c1(e)){var t=function(e){if(!e.get("data",!0))return ob(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},o_).models[0]}(e);return t?[t.getSourceManager()]:[]}return nq(e.get("transform",!0)||e.get("fromTransformResult",!0)?ob(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},o_).models:[],function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;return c1(r)?(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)),{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function cQ(e){e.option.transform&&(e.option.transform[ri]=!0)}function c1(e){return"series"===e.mainType}function c0(e){throw Error(e)}function c2(){this.richTextStyles={},this._nextStyleNameId=or()}c2.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},c2.prototype.makeTooltipMarker=function(e,t,n){var r,i,a,o,s,l,u="richText"===n?this._generateStyleName():null,c=(o=(a=n0(r={color:t,type:e,renderMode:n,markerId:u})?{color:r,extraCssText:i}:r||{}).color,s=a.type,i=a.extraCssText,l=a.renderMode||"html",o?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+rP(o)+";"+(i||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+rP(o)+";"+(i||"")+'"></span>':{renderMode:l,content:"{"+(a.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:"");return n0(c)?c:(this.richTextStyles[u]=c.style,c.content)},c2.prototype.wrapRichTextStyle=function(e,t){var n={};nQ(t)?nU(t,function(e){return nH(n,e)}):nH(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"};var c3=og();function c4(e,t){return e.getName(t)||e.getId(t)}var c5=function(e){var t;function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return n_(n,e),n.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=cM({count:c9,reset:c6}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(c3(this).sourceManager=new cJ(this)).prepareSource();var r=this.getInitialData(e,n);de(r,this),this.dataTask.context.data=r,c3(this).dataBeforeProcessed=r,c8(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=uw(this),r=n?uC({},e):{},i=this.subType;uT.hasClass(i)&&(i+="Series"),nB(e,t.getTheme().get(this.subType)),nB(e,this.getDefaultOption()),os(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&uS(e,r,n)},n.prototype.mergeOption=function(e,t){e=nB(this.option,e,!0),this.fillDataTextStyle(e.data);var n=uw(this);n&&uS(this.option,e,n);var r=c3(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);de(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,c3(this).dataBeforeProcessed=i,c8(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(e){if(e&&!n5(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&os(e[n],"label",t)},n.prototype.getInitialData=function(e,t){},n.prototype.appendData=function(e){this.getRawData().appendData(e.data)},n.prototype.getData=function(e){var t=dn(this);if(!t)return c3(this).data;var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n},n.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},n.prototype.setData=function(e){var t=dn(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}c3(this).data=e},n.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return rl(e)},n.prototype.getSourceManager=function(){return c3(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return c3(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},n.prototype.formatTooltip=function(e,t,n){return function(e){var t,n,r,i,a,o,s,l,u=e.series,c=e.dataIndex,d=e.multipleSeries,h=u.getData(),p=h.mapDimensionsAll("defaultedTooltip"),f=p.length,m=u.getRawValue(c),g=nQ(m),v=(n=n||"transparent",n0(t=u.getData().getItemVisual(c,"style")[u.visualDrawType])?t:n3(t)&&t.colorStops&&(t.colorStops[0]||{}).color||n);if(f>1||g&&!f){var y=function(e,t,n,r,i){var a=t.getData(),o=nX(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(e,t){var n,r=a.getDimensionInfo(t);r&&!1!==r.otherDims.tooltip&&(o?u.push(((n={markerType:"subItem",markerColor:i,name:r.displayName,value:e,valueType:r.type}).type="nameValue",n)):(s.push(e),l.push(r.type)))}return r.length?nU(r,function(e){c(cT(a,n,e),e)}):nU(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(m,u,c,p,v);a=y.inlineValues,o=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(f){var x=h.getDimensionInfo(p[0]);l=a=cT(h,c,p[0]),o=x.type}else l=a=g?m[0]:m;var _=op(u),b=_&&u.name||"",w=h.getName(c),S=d?b:w;return(i={header:b,noHeader:d||!_,sortParam:l,blocks:[((r={markerType:"item",markerColor:v,name:S,noName:!rr(S),value:a,valueType:o,dataIndex:c}).type="nameValue",r)].concat(s||[])}).type="section",i}({series:this,dataIndex:e,multipleSeries:t})},n.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(nw.node&&!(e&&e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=uY.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},n.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},n.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=c4(i,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},n.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)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=nZ(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[c4(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},n.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if("series"===a)i.selectedMap="all";else if("multiple"===a){n3(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<o;l++){var u=t[l],c=c4(e,u);s[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(u)}}else if("single"===a||!0===a){var d=t[o-1],c=c4(e,d);(n={})[c]=!0,i.selectedMap=n,this._selectedDataIndicesMap=((r={})[c]=e.getRawIndex(d),r)}}},n.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)}},n.registerClass=function(e){return uT.registerClass(e)},n.protoInitialize=void((t=n.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"),n}(uT);function c8(e){var t,n,r,i=e.name;op(e)||(e.name=(n=(t=e.getRawData()).mapDimensionsAll("seriesName"),r=[],nU(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")||i))}function c9(e){return e.model.getRawData().count()}function c6(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),c7}function c7(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function de(e,t){nU(function(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}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,nJ(dt,t))})}function dt(e,t){var n=dn(e);return n&&n.setOutputEnd((t||this).count()),t}function dn(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}}nY(c5,cI),nY(c5,uY),oT(c5,uT);var dr=function(){function e(){this.group=new a1,this.uid=lQ("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}();oj(dr),oD(dr);var di=sl.CMD,da=[[],[],[]],ds=Math.sqrt,dl=Math.atan2,du=Math.sqrt,dc=Math.sin,dd=Math.cos,dh=Math.PI;function dp(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function df(e,t){return(e[0]*t[0]+e[1]*t[1])/(dp(e)*dp(t))}function dm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(df(e,t))}function dg(e,t,n,r,i,a,o,s,l,u,c){var d=dh/180*l,h=dd(d)*(e-n)/2+dc(d)*(t-r)/2,p=-1*dc(d)*(e-n)/2+dd(d)*(t-r)/2,f=h*h/(o*o)+p*p/(s*s);f>1&&(o*=du(f),s*=du(f));var m=(i===a?-1:1)*du((o*o*(s*s)-o*o*(p*p)-s*s*(h*h))/(o*o*(p*p)+s*s*(h*h)))||0,g=m*o*p/s,v=-(m*s)*h/o,y=(e+n)/2+dd(d)*g-dc(d)*v,x=(t+r)/2+dc(d)*g+dd(d)*v,_=dm([1,0],[(h-g)/o,(p-v)/s]),b=[(h-g)/o,(p-v)/s],w=[(-1*h-g)/o,(-1*p-v)/s],S=dm(b,w);if(-1>=df(b,w)&&(S=dh),df(b,w)>=1&&(S=0),S<0){var C=Math.round(S/dh*1e6)/1e6;S=2*dh+C%2*dh}c.addData(u,y,x,o,s,_,S,d,a)}var dv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,dy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,dx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rm(t,e),t.prototype.applyTransform=function(e){},t}(sw),d_=function(){this.cx=0,this.cy=0,this.r=0},db=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultShape=function(){return new d_},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(sw);db.prototype.type="circle";var dw=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},dS=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultShape=function(){return new dw},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=t.rx,a=t.ry,o=.5522848*i,s=.5522848*a;e.moveTo(n-i,r),e.bezierCurveTo(n-i,r-s,n-o,r-a,n,r-a),e.bezierCurveTo(n+o,r-a,n+i,r-s,n+i,r),e.bezierCurveTo(n+i,r+s,n+o,r+a,n,r+a),e.bezierCurveTo(n-o,r+a,n-i,r+s,n-i,r),e.closePath()},t}(sw);dS.prototype.type="ellipse";var dC=Math.PI,dj=2*dC,dT=Math.sin,dk=Math.cos,dI=Math.acos,dM=Math.atan2,dD=Math.abs,dO=Math.sqrt,dA=Math.max,dz=Math.min;function dR(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/dO(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,m=r+d,g=(h+f)/2,v=(p+m)/2,y=f-h,x=m-p,_=y*y+x*x,b=i-a,w=h*m-f*p,S=(x<0?-1:1)*dO(dA(0,b*b*_-w*w)),C=(w*x-y*S)/_,j=(-w*y-x*S)/_,T=(w*x+y*S)/_,k=(-w*y+x*S)/_,I=C-g,M=j-v,D=T-g,O=k-v;return I*I+M*M>D*D+O*O&&(C=T,j=k),{cx:C,cy:j,x0:-c,y0:-d,x1:C*(i/b-1),y1:j*(i/b-1)}}var dP=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},dN=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultShape=function(){return new dP},t.prototype.buildPath=function(e,t){!function(e,t){var n,r=dA(t.r,0),i=dA(t.r0||0,0),a=r>0,o=i>0;if(a||o){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,h=!!t.clockwise,p=dD(u-l),f=p>dj&&p%dj;if(f>1e-4&&(p=f),r>1e-4)if(p>dj-1e-4)e.moveTo(c+r*dk(l),d+r*dT(l)),e.arc(c,d,r,l,u,!h),i>1e-4&&(e.moveTo(c+i*dk(u),d+i*dT(u)),e.arc(c,d,i,u,l,h));else{var m=void 0,g=void 0,v=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0,j=void 0,T=void 0,k=void 0,I=void 0,M=void 0,D=void 0,O=r*dk(l),A=r*dT(l),z=i*dk(u),R=i*dT(u),P=p>1e-4;if(P){var N=t.cornerRadius;N&&(m=(n=function(e){var t;if(nQ(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(N))[0],g=n[1],v=n[2],y=n[3]);var L=dD(r-i)/2;if(x=dz(L,v),_=dz(L,y),b=dz(L,m),w=dz(L,g),j=S=dA(x,_),T=C=dA(b,w),(S>1e-4||C>1e-4)&&(k=r*dk(u),I=r*dT(u),M=i*dk(l),D=i*dT(l),p<dC)){var F=function(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,d=s-a,h=d*l-c*u;if(!(h*h<1e-4))return h=(c*(t-a)-d*(e-i))/h,[e+h*l,t+h*u]}(O,A,M,D,k,I,z,R);if(F){var E=O-F[0],B=A-F[1],H=k-F[0],V=I-F[1],W=1/dT(dI((E*H+B*V)/(dO(E*E+B*B)*dO(H*H+V*V)))/2),Y=dO(F[0]*F[0]+F[1]*F[1]);j=dz(S,(r-Y)/(W+1)),T=dz(C,(i-Y)/(W-1))}}}if(P)if(j>1e-4){var G=dz(v,j),U=dz(y,j),q=dR(M,D,O,A,r,G,h),X=dR(k,I,z,R,r,U,h);e.moveTo(c+q.cx+q.x0,d+q.cy+q.y0),j<S&&G===U?e.arc(c+q.cx,d+q.cy,j,dM(q.y0,q.x0),dM(X.y0,X.x0),!h):(G>0&&e.arc(c+q.cx,d+q.cy,G,dM(q.y0,q.x0),dM(q.y1,q.x1),!h),e.arc(c,d,r,dM(q.cy+q.y1,q.cx+q.x1),dM(X.cy+X.y1,X.cx+X.x1),!h),U>0&&e.arc(c+X.cx,d+X.cy,U,dM(X.y1,X.x1),dM(X.y0,X.x0),!h))}else e.moveTo(c+O,d+A),e.arc(c,d,r,l,u,!h);else e.moveTo(c+O,d+A);if(i>1e-4&&P)if(T>1e-4){var G=dz(m,T),U=dz(g,T),q=dR(z,R,k,I,i,-U,h),X=dR(O,A,M,D,i,-G,h);e.lineTo(c+q.cx+q.x0,d+q.cy+q.y0),T<C&&G===U?e.arc(c+q.cx,d+q.cy,T,dM(q.y0,q.x0),dM(X.y0,X.x0),!h):(U>0&&e.arc(c+q.cx,d+q.cy,U,dM(q.y0,q.x0),dM(q.y1,q.x1),!h),e.arc(c,d,i,dM(q.cy+q.y1,q.cx+q.x1),dM(X.cy+X.y1,X.cx+X.x1),h),G>0&&e.arc(c+X.cx,d+X.cy,G,dM(X.y1,X.x1),dM(X.y0,X.x0),!h))}else e.lineTo(c+z,d+R),e.arc(c,d,i,u,l,h);else e.lineTo(c+z,d+R)}else e.moveTo(c,d);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(sw);dN.prototype.type="sector";var dL=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},dF=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultShape=function(){return new dL},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;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}(sw);function dE(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=function(e,t,n,r){var i,a,o,s,l=[],u=[],c=[],d=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)rS(o,o,e[h]),rC(s,s,e[h]);rS(o,o,r[0]),rC(s,s,r[1])}for(var h=0,p=e.length;h<p;h++){var f,m,g,v=e[h];if(n)i=e[h?h-1:p-1],a=e[(h+1)%p];else if(0===h||h===p-1){l.push([(f=e[h])[0],f[1]]);continue}else i=e[h-1],a=e[h+1];m=a,g=i,u[0]=m[0]-g[0],u[1]=m[1]-g[1],ry(u,u,t);var y=rx(v,i),x=rx(v,a),_=y+x;0!==_&&(y/=_,x/=_),ry(c,u,-y),ry(d,u,x);var b=rv([],v,c),w=rv([],v,d);r&&(rC(b,b,o),rS(b,b,s),rC(w,w,o),rS(w,w,s)),l.push(b),l.push(w)}return n&&l.push(l.shift()),l}(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 l=a[2*s],u=a[2*s+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}dF.prototype.type="ring";var dB=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},dH=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultShape=function(){return new dB},t.prototype.buildPath=function(e,t){dE(e,t,!0)},t}(sw);dH.prototype.type="polygon";var dV=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},dW=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dV},t.prototype.buildPath=function(e,t){dE(e,t,!1)},t}(sw);dW.prototype.type="polyline";var dY={},dG=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},dU=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dG},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,r,i,a,o=function(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&&(lS(2*r)===lS(2*i)&&(e.x1=e.x2=lC(r,s,!0)),lS(2*a)===lS(2*o)&&(e.y1=e.y2=lC(a,s,!0))),e}}(dY,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;0!==s&&(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}(sw);dU.prototype.type="line";var dq=[],dX=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function d$(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?iI:ik)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?iI:ik)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?iR:iz)(e.x1,e.cpx1,e.x2,t),(n?iR:iz)(e.y1,e.cpy1,e.y2,t)]}var dZ=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dX},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,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(iN(n,o,i,c,dq),o=dq[1],i=dq[2],iN(r,s,a,c,dq),s=dq[1],a=dq[2]),e.quadraticCurveTo(o,s,i,a)):(c<1&&(iO(n,o,l,i,c,dq),o=dq[1],l=dq[2],i=dq[3],iO(r,s,u,a,c,dq),s=dq[1],u=dq[2],a=dq[3]),e.bezierCurveTo(o,s,l,u,i,a)))},t.prototype.pointAt=function(e){return d$(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t,n=d$(this.shape,e,!0),r=Math.sqrt((t=n)[0]*t[0]+t[1]*t[1]);return 0===r?(n[0]=0,n[1]=0):(n[0]=n[0]/r,n[1]=n[1]/r),n},t}(sw);dZ.prototype.type="bezier-curve";var dK=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},dJ=function(e){function t(t){return e.call(this,t)||this}return rm(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dK},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,l=Math.cos(a),u=Math.sin(a);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,a,o,!s)},t}(sw);dJ.prototype.type="arc";var dQ={};function d1(e,t,n,r){var i,a,o=new dx((i=function(e){var t,n=new sl;if(!e)return n;var r=0,i=0,a=0,o=0,s=sl.CMD,l=e.match(dv);if(!l)return n;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(dy)||[],f=p.length,m=0;m<f;m++)p[m]=parseFloat(p[m]);for(var g=0;g<f;){var v=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=r,j=i,T=void 0,k=void 0;switch(d){case"l":r+=p[g++],i+=p[g++],h=s.L,n.addData(h,r,i);break;case"L":r=p[g++],i=p[g++],h=s.L,n.addData(h,r,i);break;case"m":r+=p[g++],i+=p[g++],h=s.M,n.addData(h,r,i),a=r,o=i,d="l";break;case"M":r=p[g++],i=p[g++],h=s.M,n.addData(h,r,i),a=r,o=i,d="L";break;case"h":r+=p[g++],h=s.L,n.addData(h,r,i);break;case"H":r=p[g++],h=s.L,n.addData(h,r,i);break;case"v":i+=p[g++],h=s.L,n.addData(h,r,i);break;case"V":i=p[g++],h=s.L,n.addData(h,r,i);break;case"C":h=s.C,n.addData(h,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),r=p[g-2],i=p[g-1];break;case"c":h=s.C,n.addData(h,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i),r+=p[g-2],i+=p[g-1];break;case"S":v=r,y=i,T=n.len(),k=n.data,t===s.C&&(v+=r-k[T-4],y+=i-k[T-3]),h=s.C,C=p[g++],j=p[g++],r=p[g++],i=p[g++],n.addData(h,v,y,C,j,r,i);break;case"s":v=r,y=i,T=n.len(),k=n.data,t===s.C&&(v+=r-k[T-4],y+=i-k[T-3]),h=s.C,C=r+p[g++],j=i+p[g++],r+=p[g++],i+=p[g++],n.addData(h,v,y,C,j,r,i);break;case"Q":C=p[g++],j=p[g++],r=p[g++],i=p[g++],h=s.Q,n.addData(h,C,j,r,i);break;case"q":C=p[g++]+r,j=p[g++]+i,r+=p[g++],i+=p[g++],h=s.Q,n.addData(h,C,j,r,i);break;case"T":v=r,y=i,T=n.len(),k=n.data,t===s.Q&&(v+=r-k[T-4],y+=i-k[T-3]),r=p[g++],i=p[g++],h=s.Q,n.addData(h,v,y,r,i);break;case"t":v=r,y=i,T=n.len(),k=n.data,t===s.Q&&(v+=r-k[T-4],y+=i-k[T-3]),r+=p[g++],i+=p[g++],h=s.Q,n.addData(h,v,y,r,i);break;case"A":x=p[g++],_=p[g++],b=p[g++],w=p[g++],S=p[g++],C=r,j=i,r=p[g++],dg(C,j,r,i=p[g++],w,S,x,_,b,h=s.A,n);break;case"a":x=p[g++],_=p[g++],b=p[g++],w=p[g++],S=p[g++],C=r,j=i,r+=p[g++],dg(C,j,r,i+=p[g++],w,S,x,_,b,h=s.A,n)}}("z"===d||"Z"===d)&&(h=s.Z,n.addData(h),r=a,i=o),t=h}return n.toStatic(),n}(e),(a=nH({},t)).buildPath=function(e){if(null!=e.setData){e.setData(i.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;i.rebuildPath(t,1)}},a.applyTransform=function(e){!function(e,t){if(t){var n,r,i,a,o,s,l=e.data,u=e.len(),c=di.M,d=di.C,h=di.L,p=di.R,f=di.A,m=di.Q;for(i=0,a=0;i<u;){switch(n=l[i++],a=i,r=0,n){case c:case h:r=1;break;case d:r=3;break;case m:r=2;break;case f:var g=t[4],v=t[5],y=ds(t[0]*t[0]+t[1]*t[1]),x=ds(t[2]*t[2]+t[3]*t[3]),_=dl(-t[1]/x,t[0]/y);l[i]*=y,l[i++]+=g,l[i]*=x,l[i++]+=v,l[i++]*=y,l[i++]*=x,l[i++]+=_,l[i++]+=_,i+=2,a=i;break;case p:s[0]=l[i++],s[1]=l[i++],rw(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[i++],s[1]+=l[i++],rw(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<r;o++){var b=da[o];b[0]=l[i++],b[1]=l[i++],rw(b,b,t),l[a++]=b[0],l[a++]=b[1]}}e.increaseVersion()}}(i,e),this.dirtyShape()},a));return n&&("center"===r&&(n=d0(n,o.getBoundingRect())),function(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}(o,n)),o}function d0(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}function d2(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}dQ.circle=db,dQ.ellipse=dS,dQ.sector=dN,dQ.ring=dF,dQ.polygon=dH,dQ.polyline=dW,dQ.rect=lk,dQ.line=dU,dQ.bezierCurve=dZ,dQ.arc=dJ;var d3=og(),d4=(C=og(),function(e){var t=C(e),n=e.pipelineContext,r=!!t.large,i=!!t.progressiveRender,a=t.large=!!(n&&n.large),o=t.progressiveRender=!!(n&&n.progressiveRender);return(r!==a||i!==o)&&"reset"}),d5=function(){function e(){this.group=new a1,this.uid=lQ("viewChart"),this.renderTask=cM({plan:d6,reset:d7}),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&&d9(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&d9(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){var t=this.group;if(t)if(nQ(t))for(var n=0;n<t.length;n++)d2(t[n],e);else d2(t,e)},e.markUpdateMethod=function(e,t){d3(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function d8(e,t,n){e&&s2(e)&&("emphasis"===t?sq:sX)(e,n)}function d9(e,t,n){var r,i,a=om(e,t),o=t&&null!=t.highlightKey?(null==(i=sC[r=t.highlightKey])&&sS<=32&&(i=sC[r]=sS++),i):null;null!=a?nU(oo(a),function(t){d8(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(e){d8(e,n,o)})}function d6(e){return d4(e.model)}function d7(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&d3(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),he[l]}oj(d5,["dispose"]),oD(d5);var he={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)}}},ht=og(),hn={itemStyle:oO(lX,!0),lineStyle:oO(lG,!0)},hr={lineStyle:"stroke",itemStyle:"fill"};function hi(e,t){var n=e.visualStyleMapper||hn[t];return n||(console.warn("Unknown style type '"+t+"'."),hn.itemStyle)}function ha(e,t){var n=e.visualDrawType||hr[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var ho=new lK,hs=Math.PI,hl=function(){function e(e,t,n,r){this._stageTaskMap=rl(),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,o=null!=a?Math.ceil(a/i):null;return{step:i,modBy:o,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"),o="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=rl();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;nU(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});rn(!(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=r||{};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}nU(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,r.block);h.each(function(e){e.perform(p)}),c.perform(p)&&(i=!0)}else u&&u.each(function(s,l){o(r,s)&&s.dirty();var u=a.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),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){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=rl(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=o.set(s,a&&a.get(s)||cM({plan:hp,reset:hf,count:hv}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||cM({reset:hu});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=rl(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function h(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,cM({reset:hc,onDirty:hh})));n.context={model:e,overallProgress:c},n.agent=a,n.__block=c,i._pipe(e,n)}rn(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,h):u?u(n,r).each(h):(c=!1,nU(n.getSeries(),h)),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 n1(e)&&(e={overallReset:e,seriesType:function(e){F=null;try{e(hy,hx)}catch(e){}return F}(e)}),e.uid=lQ("stageHandler"),t&&(e.visualType=t),e},e}();function hu(e){e.overallReset(e.ecModel,e.api,e.payload)}function hc(e){return e.overallProgress&&hd}function hd(){this.agent.dirty(),this.getDownstream().dirty()}function hh(){this.agent&&this.agent.dirty()}function hp(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function hf(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=oo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?nq(t,function(e,t){return hg(t)}):hm}var hm=hg(0);function hg(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 hv(e){return e.data.count()}var hy={},hx={};function h_(e,t){for(var n in t.prototype)e[n]=rh}h_(hy,uU),h_(hx,uK),hy.eachSeriesByType=hy.eachRawSeriesByType=function(e){F=e},hy.eachComponent=function(e){"series"===e.mainType&&e.subType&&(F=e.subType)};var hb=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],hw="#B9B8CE",hS="#100C2A",hC=function(){return{axisLine:{lineStyle:{color:hw}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},hj=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],hT={darkMode:!0,color:hj,backgroundColor:hS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:hw},pageTextStyle:{color:hw}},textStyle:{color:hw},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:hw}},dataZoom:{borderColor:"#71708A",textStyle:{color:hw},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:hw}},timeline:{lineStyle:{color:hw},label:{color:hw},controlStyle:{color:hw,borderColor:hw}},calendar:{itemStyle:{color:hS},dayLabel:{color:hw},monthLabel:{color:hw},yearLabel:{color:hw}},timeAxis:hC(),logAxis:hC(),valueAxis:hC(),categoryAxis:hC(),line:{symbol:"circle"},graph:{color:hj},gauge:{title:{color:hw},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:hw},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};hT.categoryAxis.splitLine.show=!1;var hk=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(n0(e)){var i=oC(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};nU(e,function(e,i){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.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,l=t.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),hI=["symbol","symbolSize","symbolRotate","symbolOffset"],hM=hI.concat(["symbolKeepAspect"]);function hD(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 l=e.getData(),u=om(l,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:nQ(u)?l.getName(u[0]):l.getName(u),selected:n0(r)?r:nH({},r)})}})}function hO(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var hA=Math.round(9*Math.random()),hz="function"==typeof Object.defineProperty,hR=function(){function e(){this._id="__ec_inner_"+hA++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return hz?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)},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}(),hP=sw.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()}}),hN=sw.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()}}),hL=sw.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),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),h=Math.cos(u),p=.6*o,f=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),hF=sw.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()}}),hE={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}},hB={};nU({line:dU,rect:lk,roundRect:lk,square:lk,circle:db,diamond:hN,pin:hL,arrow:hF,triangle:hP},function(e,t){hB[t]=new e});var hH=sw.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=aG(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=hB[r];i||(i=hB[r="rect"]),hE[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function hV(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function hW(e,t,n,r,i,a,o){var s,l,u,c,d,h=0===e.indexOf("empty");return(h&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),0===e.indexOf("image://"))?(s=e.slice(8),l=new r8(t,n,r,i),u=o?"center":"cover",d=c=new lw({style:{image:s,x:l.x,y:l.y,width:l.width,height:l.height},onload:function(e){if("center"===u){var t={width:e.width,height:e.height};c.setStyle(d0(l,t))}}})):d=0===e.indexOf("path://")?d1(e.slice(7),{},new r8(t,n,r,i),o?"center":"cover"):new hH({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),d.__isEmptyBrush=h,d.setColor=hV,a&&d.setColor(a),d}function hY(e){return isFinite(e)}function hG(e,t,n){for(var r,i,a,o,s,l,u,c,d,h,p="radial"===t.type?(a=Math.min(r=n.width,i=n.height),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r,t.global||(o=o*r+n.x,s=s*i+n.y,l*=a),o=hY(o)?o:.5,s=hY(s)?s:.5,l=l>=0&&hY(l)?l:.5,e.createRadialGradient(o,s,0,o,s,l)):(u=null==t.x?0:t.x,c=null==t.x2?1:t.x2,d=null==t.y?0:t.y,h=null==t.y2?0:t.y2,t.global||(u=u*n.width+n.x,c=c*n.width+n.x,d=d*n.height+n.y,h=h*n.height+n.y),u=hY(u)?u:0,c=hY(c)?c:1,d=hY(d)?d:0,h=hY(h)?h:0,e.createLinearGradient(u,d,c,h)),f=t.colorStops,m=0;m<f.length;m++)p.addColorStop(f[m].offset,f[m].color);return p}function hU(e){return parseInt(e,10)}function hq(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||hU(s[r])||hU(e.style[r]))-(hU(s[a])||0)-(hU(s[o])||0)|0}function hX(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:n2(t)?[t]:nQ(t)?t:null:null),a=r.lineDashOffset;if(i){var o=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(i=nq(i,function(e){return e/o}),a/=o)}return[i,a]}var h$=new sl(!0);function hZ(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function hK(e){return"string"==typeof e&&"none"!==e}function hJ(e){var t=e.fill;return null!=t&&"none"!==t}function hQ(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function h1(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function h0(e,t,n){var r=lo(t.image,t.__image,n);if(ll(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*rp),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}var h2=["shadowBlur","shadowOffsetX","shadowOffsetY"],h3=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function h4(e,t,n,r,i){var a=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){h9(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?oL.opacity:o}(r||t.blend!==n.blend)&&(a||(h9(e,i),a=!0),e.globalCompositeOperation=t.blend||oL.blend);for(var s=0;s<h2.length;s++){var l=h2[s];(r||t[l]!==n[l])&&(a||(h9(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(h9(e,i),a=!0),e.shadowColor=t.shadowColor||oL.shadowColor),a}function h5(e,t,n,r,i){var a=h6(t,i.inHover),o=r?null:n&&h6(n,i.inHover)||{};if(a===o)return!1;var s=h4(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(h9(e,i),s=!0),hK(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(h9(e,i),s=!0),hK(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(h9(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(h9(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<h3.length;u++){var c=h3[u],d=c[0];(r||a[d]!==o[d])&&(s||(h9(e,i),s=!0),e[d]=a[d]||c[1])}return s}function h8(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 h9(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function h6(e,t){return t&&e.__hoverStyle||e.style}function h7(e,t){pe(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function pe(e,t,n,r){var i,a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,s=n.prevElClipPaths,l=!1,u=!1;if(!s||function(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}(o,s)){if(s&&s.length&&(h9(e,n),e.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){h9(e,n),e.save();for(var c=!1,d=0;d<o.length;d++){var h=o[d];c=c||h.isZeroArea(),h8(e,h),e.beginPath(),h.buildPath(e,h.shape),e.clip()}n.allClipped=c,l=!0}n.prevElClipPaths=o}if(n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(u=l=!0);var f=t instanceof sw&&t.autoBatch&&(v=hJ(g=t.style),y=hZ(g),!(g.lineDash||!(v^y)||v&&"string"!=typeof g.fill||y&&"string"!=typeof g.stroke||g.strokePercent<1||g.strokeOpacity<1||g.fillOpacity<1));!l&&(x=p.transform,a&&x?a[0]===x[0]&&a[1]===x[1]&&a[2]===x[2]&&a[3]===x[3]&&a[4]===x[4]&&a[5]===x[5]:+(!a&&!x))?f||h9(e,n):(h9(e,n),h8(e,t));var m=h6(t,n.inHover);if(t instanceof sw)1!==n.lastDrawType&&(u=!0,n.lastDrawType=1),h5(e,t,p,u,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,a,o,s=hZ(n),l=hJ(n),u=n.strokePercent,c=u<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||h$,p=t.__dirty;if(!r){var f=n.fill,m=n.stroke,g=l&&!!f.colorStops,v=s&&!!m.colorStops,y=l&&!!f.image,x=s&&!!m.image,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0;(g||v)&&(C=t.getBoundingRect()),g&&(_=p?hG(e,f,C):t.__canvasFillGradient,t.__canvasFillGradient=_),v&&(b=p?hG(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),y&&(w=p||!t.__canvasFillPattern?h0(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=w),x&&(S=p||!t.__canvasStrokePattern?h0(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),g?e.fillStyle=_:y&&(w?e.fillStyle=w:l=!1),v?e.strokeStyle=b:x&&(S?e.strokeStyle=S:s=!1)}var j=t.getGlobalScale();h.setScale(j[0],j[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(a=(i=hX(t))[0],o=i[1]);var T=!0;(d||4&p)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),T=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),T&&h.rebuildPath(e,c?u:1),a&&(e.setLineDash(a),e.lineDashOffset=o),!r&&(n.strokeFirst?(s&&h1(e,n),l&&hQ(e,n)):(l&&hQ(e,n),s&&h1(e,n))),a&&e.setLineDash([])}(e,t,m,f),f&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"");else if(t instanceof lx){3!==n.lastDrawType&&(u=!0,n.lastDrawType=3),h5(e,t,p,u,n);var g,v,y,x,_,b=m.text;if(null!=b&&(b+=""),b){e.font=m.font||nS,e.textAlign=m.textAlign,e.textBaseline=m.textBaseline;var w=void 0,S=void 0;e.setLineDash&&m.lineDash&&(w=(_=hX(t))[0],S=_[1]),w&&(e.setLineDash(w),e.lineDashOffset=S),m.strokeFirst?(hZ(m)&&e.strokeText(b,m.x,m.y),hJ(m)&&e.fillText(b,m.x,m.y)):(hJ(m)&&e.fillText(b,m.x,m.y),hZ(m)&&e.strokeText(b,m.x,m.y)),w&&e.setLineDash([])}}else t instanceof lw?(2!==n.lastDrawType&&(u=!0,n.lastDrawType=2),i=u,h4(e,h6(t,n.inHover),p&&h6(p,n.inHover),i,n),function(e,t,n){var r=t.__image=lo(n.image,t.__image,t,t.onload);if(r&&ll(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,d=o-u,h=s-c;e.drawImage(r,u,c,d,h,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}(e,t,m)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(u=!0,n.lastDrawType=4),function(e,t,n){var r,i,a=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(r=t.getCursor(),i=a.length;r<i;r++){var l=a[r];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pe(e,l,s,r===i-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=o.length;u<c;u++){var l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pe(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n));f&&r&&h9(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}var pt=new hR,pn=new iW(100),pr=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pi(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&pt.delete(e);var a=pt.get(e);if(a)return a;var o=nV(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});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,a,s=[n],l=!0,u=0;u<pr.length;++u){var c=o[pr[u]];if(null!=c&&!nQ(c)&&!n0(c)&&!n2(c)&&"boolean"!=typeof c){l=!1;break}s.push(c)}if(l){t=s.join(",")+(i?"-svg":"");var d=pn.get(t);d&&(i?e.svgElement=d:e.image=d)}var h=function e(t){if(!t||0===t.length)return[[0,0]];if(n2(t)){var n=Math.ceil(t);return[[n,n]]}for(var r=!0,i=0;i<t.length;++i)if(!n2(t[i])){r=!1;break}if(r)return e([t]);for(var a=[],i=0;i<t.length;++i)if(n2(t[i])){var n=Math.ceil(t[i]);a.push([n,n])}else{var n=nq(t[i],function(e){return Math.ceil(e)});n.length%2==1?a.push(n.concat(n)):a.push(n)}return a}(o.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(n2(e)){var t=Math.ceil(e);return[t,t]}var n=nq(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),f=function e(t){if(!t||0===t.length)return[["rect"]];if(n0(t))return[[t]];for(var n=!0,r=0;r<t.length;++r)if(!n0(t[r])){n=!1;break}if(n)return e([t]);for(var i=[],r=0;r<t.length;++r)n0(t[r])?i.push([t[r]]):i.push(t[r]);return i}(o.symbol),m=nq(h,function(e){return pa(e)}),g=pa(p),v=!i&&nj.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=oi(e,m[t]);for(var r=1,t=0,n=f.length;t<n;++t)r=oi(r,f[t].length);e*=r;var i=g*m.length*f.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}();v&&(v.width=x.width*n,v.height=x.height*n,a=v.getContext("2d")),function(){a&&(a.clearRect(0,0,v.width,v.height),o.backgroundColor&&(a.fillStyle=o.backgroundColor,a.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var s=-g,l=0,u=0,c=0;s<x.height;){if(l%2==0){for(var d=u/2%f.length,m=0,_=0,b=0;m<2*x.width;){for(var w=0,t=0;t<h[c].length;++t)w+=h[c][t];if(w<=0)break;if(_%2==0){var S=(1-o.symbolSize)*.5,C=m+h[c][_]*S,j=s+p[l]*S,T=h[c][_]*o.symbolSize,k=p[l]*o.symbolSize,I=b/2%f[d].length;!function(e,t,s,l,u){var c=i?1:n,d=hW(u,e*c,t*c,s*c,l*c,o.color,o.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(d);h&&y.children.push(h)}else h7(a,d)}(C,j,T,k,f[d][I])}m+=h[c][_],++b,++_===h[c].length&&(_=0)}++c===h.length&&(c=0)}s+=p[l],++u,++l===p.length&&(l=0)}}(),l&&pn.put(t,v||y),e.image=v,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,pt.set(e,s),e.dirty=!1,s}function pa(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var po=new rk,ps={},pl="__flagInMainProcess",pu="__pendingUpdate",pc="__needsUpdateStatus",pd=/^[a-zA-Z0-9_]+$/;function ph(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.isDisposed()?void this.id:pf(this,e,t)}}function pp(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return pf(this,e,t)}}function pf(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),rk.prototype[t].apply(e,n)}var pm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n_(t,e),t}(rk),pg=pm.prototype;pg.on=pp("on"),pg.off=pp("off");var pv=function(e){function t(t,n,r){var i=e.call(this,new hk)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},n0(n)&&(n=pC[n]),i._dom=t,r.ssr;var a=i._zr=a4(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:n6(r.useDirtyRect,!1),useCoarsePointer:n6(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=function(e,t,n){var r,i,a,o,s,l=0,u=0,c=null;function d(){u=new Date().getTime(),c=null,e.apply(a,o||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];r=new Date().getTime(),a=this,o=e;var p=s||t,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):i>=0?d():c=setTimeout(d,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}(nK(a.flush,a),17),(n=nE(n))&&cl(n,!0),i._theme=n,i._locale=function(e){if(!n0(e))return nB(nE(e),nE(l1.EN),!1);var t=l1[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?nE(t):nB(nE(t),nE(l1.EN),!1)}(r.locale||l2),i._coordSysMgr=new uQ;var o=i._api=Q(i);function s(e,t){return e.__prio-t.__prio}return id(pS,s),id(pb,s),i._scheduler=new hl(i,o,pb,pS),i._messageCenter=new pm,i._initEvents(),i.resize=nK(i.resize,i),a.animation.on("frame",i._onframe,i),X(a,i),$(a,i),i[ri]=!0,i}return n_(t,e),t.prototype._onframe=function(){if(!this._disposed){et(this);var e=this._scheduler;if(this[pu]){var t=this[pu].silent;this[pl]=!0;try{E(this),V.update.call(this,null,this[pu].updateParams)}catch(e){throw this[pl]=!1,this[pu]=null,e}this._zr.flush(),this[pl]=!1,this[pu]=null,U.call(this,t),q.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),Y(this,r),e.performVisualTasks(r),J(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[pl]){if(this._disposed)return void this.id;if(n3(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[pl]=!0,!this._model||t){var r,i,a,o=new u0(this._api),s=this._theme,l=this._model=new uU;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},pw);var u={seriesTransition:a,optionChanged:!0};if(n)this[pu]={silent:r,updateParams:u},this[pl]=!1,this.getZr().wakeUp();else{try{E(this),V.update.call(this,null,u)}catch(e){throw this[pu]=null,this[pl]=!1,e}this._ssr||this._zr.flush(),this[pu]=null,this[pl]=!1,U.call(this,r),q.call(this,r)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nw.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(nw.svgSupported){var e=this._zr;return nU(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed)return void this.id;var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;nU(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="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return nU(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed)return void this.id;var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,a=1/0;if(!pk[n])return this.getDataURL(e);var o=a,s=a,l=-a,u=-a,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();nU(pT,function(a,d){if(a.group===n){var h=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(nE(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}}),o*=d,s*=d,l*=d,u*=d;var h=l-o,p=u-s,f=nj.createCanvas(),m=a4(f,{renderer:t?"svg":"canvas"});if(m.resize({width:h,height:p}),!t)return e.connectedBackgroundColor&&m.add(new lk({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),nU(c,function(e){var t=new lw({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});m.add(t)}),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"));var g="";return nU(c,function(e){var t=e.left-o,n=e.top-s;g+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()},t.prototype.convertToPixel=function(e,t){return W(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return W(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;return this._disposed?void this.id:(nU(oy(this._model,e),function(e,r){r.indexOf("Models")>=0&&nU(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}},this)},this),!!n)},t.prototype.getVisual=function(e,t){var n=oy(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(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)}}(r,i,t):function(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)}}(r,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,t,n,r=this;nU(py,function(e){var t=function(t){var n,i=r.getModel(),a=t.target;if("globalout"===e?n={}:a&&hO(a,function(e){var t=oR(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return n=nH({},t.eventData),!0},!0),n){var o=n.componentType,s=n.componentIndex;("markLine"===o||"markPoint"===o||"markArea"===o)&&(o="series",s=n.seriesIndex);var l=o&&null!=s&&i.getComponent(o,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:l,view:u},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),nU(p_,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),nU(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(hD("map","selectchanged",t,r,e),hD("pie","selectchanged",t,r,e)):"select"===e.fromAction?(hD("map","selected",t,r,e),hD("pie","selected",t,r,e)):"unselect"===e.fromAction&&(hD("map","unselected",t,r,e),hD("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&(e=this.getDom(),e.setAttribute?e.setAttribute(pI,""):e[pI]="");var e,t=this._api,n=this._model;nU(this._componentsViews,function(e){e.dispose(n,t)}),nU(this._chartsViews,function(e){e.dispose(n,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete pT[this.id]},t.prototype.resize=function(e){if(!this[pl]){if(this._disposed)return void this.id;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[pu]&&(null==r&&(r=this[pu].silent),n=!0,this[pu]=null),this[pl]=!0;try{n&&E(this),V.update.call(this,{type:"resize",animation:nH({duration:0},e&&e.animation)})}catch(e){throw this[pl]=!1,e}this[pl]=!1,U.call(this,r),q.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)return void this.id;if(n3(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),pj[e]){var n=pj[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=nH({},e);return t.type=p_[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)return void this.id;if((n3(t)||(t={silent:!!t}),px[e.type])&&this._model){if(this[pl])return void this._pendingActions.push(e);var n=t.silent;G.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&nw.browser.weChat&&this._throttledZrFlush(),U.call(this,n),q.call(this,n)}},t.prototype.updateLabelLayout=function(){po.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)return void this.id;var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered(function(e){return function e(t,n,r,i){var a=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(e(s[l],n,r,i),i);else t.z=n,t.zlevel=r,i=Math.max(t.z2,i);if(a&&(a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+2)),o){var u=t.textGuideLineConfig;o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}(e,n,r,-1/0),!0})}}function r(e,t){t.eachRendered(function(e){if(!s6(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(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&&(e.prevStates=null)}})}function i(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis&&!s6(e)){if(e instanceof sw&&((n=sj(e)).normalFill=e.style.fill,n.normalStroke=e.style.stroke,n.selectFill=(r=e.states.select||{}).style&&r.style.fill||null,n.selectStroke=r.style&&r.style.stroke||null),e.__dirty){var n,r,a=e.prevStates;a&&e.useStates(a)}if(i){e.stateTransition=o;var s=e.getTextContent(),l=e.getTextGuideLine();s&&(s.stateTransition=o),l&&(l.stateTransition=o)}e.__dirty&&t(e)}})}E=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),B(e,!0),B(e,!1),t.plan()},B=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,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&a[u];if(!c){var d=oC(e.type);(c=new(t?dr.getClass(d.main,d.sub):d5.getClass(d.sub))).init(n,s),a[u]=c,i.push(c),o.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},t||r.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(var l=0;l<i.length;){var c=i[l];c.__alive?l++:(t||c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),i.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},H=function(e,t,n,r,i){var a,o=e._model;if(o.setUpdatePayload(n),!r)return void nU([].concat(e._componentsViews).concat(e._chartsViews),c);var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var u=n.excludeSeriesId;function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}null!=u&&(a=rl(),nU(oo(u),function(e){var t=oh(e,null);null!=t&&a.set(t,!0)})),o&&o.eachComponent(l,function(t){if(!(a&&null!=a.get(t.id))){if(s4(n))if(t instanceof c5)n.type!==sM||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=om(i,t);a=(nQ(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=oR(o);sK(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&sK(r,c,d,n)}}}(t,n,e._api);else{var r=sQ(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===sM&&i&&!n.notBlur&&sJ(t.mainType,t.componentIndex,e._api),o&&nU(o,function(e){n.type===sM?sq(e):sX(e)})}else if(s3(n)&&t instanceof c5){if(e._api,s3(n)){var s=n.dataType,l=om(t.getData(s),n);nQ(l)||(l=[l]),t[n.type===sz?"toggleSelect":n.type===sO?"select":"unselect"](l,s)}s1(t),ee(e)}}},e),o&&o.eachComponent(l,function(t){a&&null!=a.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)},V={prepareAndUpdate:function(e){E(this),V.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,t),Y(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t),Z(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");a.setBackgroundColor(l),null!=u&&"auto"!==u&&a.setDarkMode(u),po.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent(function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,r,i,t);l&&l.update&&a.push(s)}else a.push(s)}});var o=rl();r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,r,i,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:o}),J(this,r,i,t,{},o),po.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),d5.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Z(this,n,this._api,t,{}),po.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),d5.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),po.trigger("afterupdate",r,this._api))},updateLayout:function(e){V.update.call(this,e)}},W=function(e,t,n,r){if(e._disposed)return void e.id;for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=oy(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&null!=(i=u[t](a,s,r)))return i}},Y=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},G=function(e,t){var n,r=this,i=this.getModel(),a=e.type,o=e.escapeConnect,s=px[a],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),d=null!=u[0]&&oC(u[0]);this[pl]=!0;var h=[e],p=!1;e.batch&&(p=!0,h=nq(e.batch,function(t){return(t=nV(nH({},t),e)).batch=null,t}));var f=[],m=s3(e),g=s4(e);if(g&&sZ(this._api),nU(h,function(t){if((n=(n=s.action(t,r._model,r._api))||nH({},t)).type=l.event||n.type,f.push(n),g){var i=ox(e),a=i.queryOptionMap;H(r,c,t,i.mainTypeSpecified?a.keys()[0]:"series"),ee(r)}else m?(H(r,c,t,"series"),ee(r)):d&&H(r,c,t,d.main,d.sub)}),"none"!==c&&!g&&!m&&!d)try{this[pu]?(E(this),V.update.call(this,e),this[pu]=null):V[c].call(this,e)}catch(e){throw this[pl]=!1,e}if(n=p?{type:l.event||a,escapeConnect:o,batch:f}:f[0],this[pl]=!1,!t){var v=this._messageCenter;if(v.trigger(n.type,n),m){var y,x={type:"selectchanged",escapeConnect:o,selected:(y=[],i.eachSeries(function(e){nU(e.getAllData(),function(t){t.data;var n=t.type,r=e.getSelectedDataIndices();if(r.length>0){var i={dataIndex:r,seriesIndex:e.seriesIndex};null!=n&&(i.dataType=n),y.push(i)}})}),y),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(x.type,x)}}},U=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();G.call(this,n,e)}},q=function(e){e||this.trigger("updated")},X=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[pu]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},$=function(e,t){e.on("mouseover",function(e){var n,r,i,a,o,s=hO(e.target,s2);s&&(n=t._api,a=(i=sQ((r=oR(s)).componentMainType,r.componentIndex,r.componentHighDownName,n)).dispatchers,o=i.focusSelf,a?(o&&sJ(r.componentMainType,r.componentIndex,n),nU(a,function(t){return sG(t,e)})):(sK(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&sJ(r.componentMainType,r.componentIndex,n),sG(s,e)),ee(t))}).on("mouseout",function(e){var n,r,i,a=hO(e.target,s2);a&&(sZ(n=t._api),(i=sQ((r=oR(a)).componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers)?nU(i,function(t){return sU(t,e)}):sU(a,e),ee(t))}).on("click",function(e){var n=hO(e.target,function(e){return null!=oR(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=oR(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Z=function(e,t,n,r,i){!function(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=r||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i,a,o=t.concat(n);id(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),nU(o,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)})}}(t),K(e,t,n,r,i),nU(e._chartsViews,function(e){e.__alive=!1}),J(e,t,n,r,i),nU(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},K=function(e,t,a,o,s,l){nU(l||e._componentsViews,function(e){var s=e.__model;r(s,e),e.render(s,t,a,o),n(s,e),i(s,e)})},J=function(e,t,a,o,s,l){var u,c,d,h,p=e._scheduler;s=nH(s||{},{updatedSeries:t.getSeries()}),po.trigger("series:beforeupdate",t,a,s);var f=!1;t.eachSeries(function(t){var n,i,a,s=e._chartsMap[t.__viewId];s.__alive=!0;var u=s.renderTask;p.updatePayload(u,o),r(t,s),l&&l.get(t.uid)&&u.dirty(),u.perform(p.getPerformArgs(u))&&(f=!0),s.group.silent=!!t.get("silent"),n=t,i=s,a=n.get("blendMode")||null,i.eachRendered(function(e){e.isGroup||(e.style.blend=a)}),s1(t)}),p.unfinished=f||p.unfinished,po.trigger("series:layoutlabels",t,a,s),po.trigger("series:transition",t,a,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),i(t,r)}),u=e,c=t,d=u._zr.storage,h=0,d.traverse(function(e){!e.isGroup&&h++}),!(h>c.get("hoverLayerThreshold"))||nw.node||nw.worker||c.eachSeries(function(e){if(!e.preventUsingHoverLayer){var t=u._chartsMap[e.__viewId];t.__alive&&t.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}}),po.trigger("series:afterupdate",t,a,s)},ee=function(e){e[pc]=!0,e.getZr().wakeUp()},et=function(e){e[pc]&&(e.getZr().storage.traverse(function(e){s6(e)||t(e)}),e[pc]=!1)},Q=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return n_(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){sq(t,n),ee(e)},n.prototype.leaveEmphasis=function(t,n){sX(t,n),ee(e)},n.prototype.enterBlur=function(t){sV(t,sF),ee(e)},n.prototype.leaveBlur=function(t){sV(t,sE),ee(e)},n.prototype.enterSelect=function(t){sV(t,sB),ee(e)},n.prototype.leaveSelect=function(t){sV(t,sH),ee(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}(uK))(e)}}(),t}(rk).prototype;pv.on=ph("on"),pv.off=ph("off"),pv.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var py=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],px={},p_={},pb=[],pw=[],pS=[],pC={},pj={},pT={},pk={},pI="_echarts_instance_";function pM(e){0>nW(pw,e)&&pw.push(e)}function pD(e,t){pN(pb,e,t,2e3)}function pO(e,t){po.on(e,t)}function pA(e,t,n){n1(t)&&(n=t,t="");var r=n3(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),p_[t=e.event]||(rn(pd.test(r)&&pd.test(t)),px[r]||(px[r]={action:n,actionInfo:e}),p_[t]=r)}function pz(e,t){pN(pS,e,t,1e3,"layout")}function pR(e,t){pN(pS,e,t,3e3,"visual")}var pP=[];function pN(e,t,n,r,i){if((n1(t)||n3(t))&&(n=t,t=r),!(nW(pP,n)>=0)){pP.push(n);var a=hl.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function pL(e){return null==e?0:e.length||1}function pF(e){return e}pR(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=hi(e,r)(i),o=i.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=ha(e,r),l=a[s],u=n1(l)?l:null,c="auto"===a.fill||"auto"===a.stroke;if(!a[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||n1(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||n1(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=nH({},a);i[s]=u(r),t.setItemVisual(n,"style",i)}}}}),pR(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=hi(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){ho.option=n[r];var o=i(ho);nH(e.ensureUniqueItemVisual(t,"style"),o),ho.option.decal&&(e.setItemVisual(t,"decal",ho.option.decal),ho.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}}),pR(4500,{performRawSeries:!0,overallReset:function(e){var t=rl();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)),ht(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=ht(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=ha(t,o);i.each(function(e){r[i.getRawIndex(e)]=e}),n.each(function(e){var o=r[e];if(i.getItemVisual(o,"colorFromPalette")){var l=i.ensureUniqueItemVisual(o,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,a,c)}})}})}}),pR(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<hI.length;o++){var s=hI[o],l=e.get(s);n1(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(nH({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=nZ(i);return{dataEach:a?function(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<u.length;o++){var s=u[o];t.setItemVisual(n,s,i[s](r,a))}}:null}}}}}),pR(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<hM.length;r++){var i=hM[r],a=n.getShallow(i,!0);null!=a&&e.setItemVisual(t,i,a)}}:null}}}),pR(7e3,function(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");n&&(r.ensureUniqueItemVisual(e,"style").decal=pi(n,t))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=pi(i,t))}})}),pM(cl),pD(900,function(e){var t=rl();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.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(cu)}),pj.default=function(e,t){nV(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,r=new a1,i=new lk({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var a=new lD({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new lk({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return r.add(o),t.showSpinner&&((n=new dJ({shape:{startAngle:-hs/2,endAngle:-hs/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*hs/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*hs/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&r?10:0)-r)/2-(t.showSpinner&&r?0:5+r/2)+(t.showSpinner?0:r/2)+(r?0:s),u=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r},pA({type:sM,event:sM,update:sM},rh),pA({type:sD,event:sD,update:sD},rh),pA({type:sO,event:sO,update:sO},rh),pA({type:sA,event:sA,update:sA},rh),pA({type:sz,event:sz,update:sz},rh),pC.light={color:hb,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],hb]},pC.dark=hT;var pE=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||pF,this._newKeyGetter=r||pF,this.context=i,this._diffModeMultiple="multiple"===a}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],l=pL(s);if(l>1){var u=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(u,a)}else 1===l?(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],l=n[s],u=r[s],c=pL(l),d=pL(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}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=pL(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else 1===a&&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],l=pL(s);0===l?(t[o]=a,i&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),pB=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._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pH(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}let pV=function(e){this.otherDims={},null!=e&&nH(this,e)};var pW=og(),pY={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pG=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||(this._dimNameMap=pq(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return n6(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=cv(this.source),n=!(e>30),r="",i=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===a)s=t?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=pY[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.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 pU(e){for(var t=rl(),n=0;n<(e||[]).length;n++){var r=e[n],i=n3(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function pq(e){var t=pW(e);return t.dimNameMap||(t.dimNameMap=pU(e.dimensionsDefine))}var pX=n3,p$="undefined"==typeof Int32Array?Array:Int32Array,pZ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pK=["_approximateExtent"],pJ=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;e instanceof pG?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=n0(c)?new pV({name:c}):c instanceof pV?c:new pV(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(h),i[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(o[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=rl();nU(a,function(e){f.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return -1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(n2(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(e)))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(null==t)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,i,a,o,s,l,u,c,d,h,p,f,m,g=this;if(e instanceof cK&&(m=e),!m){var v=this.dimensions,y=cd(e)||nG(e)?new cy(e,v.length):e;m=new cK;var x=nq(v,function(e){return{type:g._dimInfos[e].type,property:e}});m.initData(y,x,n)}this._store=m,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,m.count()),this._dimSummary=(r=this,i=this._schema,o=(a={}).encode={},s=rl(),l=[],u=[],c={},nU(r.dimensions,function(e){var t=r.getDimensionInfo(e),n=t.coordDim;if(n){var i,a=t.coordDimIndex;pH(o,n)[a]=e,t.isExtraCoord||(s.set(n,1),"ordinal"!==(i=t.type)&&"time"!==i&&(l[0]=e),pH(c,n)[a]=r.getDimensionIndex(t.name)),t.defaultTooltip&&u.push(e)}uA.each(function(e,n){var r=pH(o,n),i=t.otherDims[n];null!=i&&!1!==i&&(r[i]=t.name)})}),d=[],h={},s.each(function(e,t){var n=o[t];h[t]=n[0],d=d.concat(n)}),a.dataDimsOnCoord=d,a.dataDimIndicesOnCoord=nq(d,function(e){return r.getDimensionInfo(e).storeDimIndex}),a.encodeFirstDimNotExtra=h,(p=o.label)&&p.length&&(l=p.slice()),(f=o.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),o.defaultedLabel=l,o.defaultedTooltip=u,a.userOutput=new pB(c,i),a),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&&el(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 null==this._idDimIdx&&e.getSource().sourceFormat!==uL&&!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===uz&&!n.pure)for(var a=[],o=e;o<t;o++){var s,l=n.getItem(o,a);if(!(!this.hasItemOption&&n3(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==r[o]&&null!=u&&(r[o]=oh(u,null));var c=l.id;null==i[o]&&null!=c&&(i[o]=oh(c,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)el(this,o);en(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){pX(e)?nH(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=ei(this,this._nameDimIdx,t)),null==n&&(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 er(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 nQ(e)?r.getValues(nq(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 null==r||isNaN(r)?-1:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){n1(e)&&(n=t,t=e,e=[]);var r=n||this,i=nq(ea(e),this._getStoreDimIndex,this);this._store.each(i,r?nK(t,r):t)},e.prototype.filterSelf=function(e,t,n){n1(e)&&(n=t,t=e,e=[]);var r=n||this,i=nq(ea(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?nK(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=nZ(e),i=[];return nU(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){n1(e)&&(n=t,t=e,e=[]),n=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=nq(ea(e),this._getStoreDimIndex,this),o=es(this);return o._store=this._store.map(a,i?nK(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=nq(ea(e),this._getStoreDimIndex,this);this._store.modify(a,i?nK(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=es(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=es(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=es(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 lK(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pE(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return er(e,t)},function(e){return er(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||{},pX(e)?nH(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(nQ(i=this.getVisual(t))?i=i.slice():pX(i)&&(i=nH({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,pX(t)?nH(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){pX(e)?nH(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?nH(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){oP(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){nU(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:nq(this.dimensions,this._getDimInfo,this),this.hostModel)),eo(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];n1(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(re(arguments)))})},e.internalField=void(en=function(e){var t=e._invertedIndicesMap;nU(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new p$(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},ei=function(e,t,n){return oh(e._getCategory(t,n),null)},er=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=ei(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},ea=function(e){return nQ(e)||(e=null!=e?[e]:[]),e},es=function(t){var n=new e(t._schema?t._schema:nq(t.dimensions,t._getDimInfo,t),t.hostModel);return eo(n,t),n},eo=function(e,t){nU(pZ.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,nU(pK,function(n){e[n]=nE(t[n])}),e._calculationInfo=nH({},t._calculationInfo)},el=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=ei(e,i,t)),null==s&&null!=a&&(r[t]=s=ei(e,a,t)),null==s&&null!=o){var l=e._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),r[t]=s}}),e}();function pQ(e,t){return function(e,t){cd(e)||(e=cp(e));var n,r,i,a,o,s=(t=t||{}).coordDimensions||[],l=t.dimensionsDefine||e.dimensionsDefine||[],u=rl(),c=[],d=(n=e,r=s,i=l,a=t.dimensionsCount,o=Math.max(n.dimensionsDetectedCount||1,r.length,i.length,a||0),nU(r,function(e){var t;n3(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))}),o),h=t.canOmitUnusedDimensions&&d>30,p=l===e.dimensionsDefine,f=p?pq(e):pU(l),m=t.encodeDefine;!m&&t.encodeDefaulter&&(m=t.encodeDefaulter(e,d));for(var g=rl(m),v=new cG(d),y=0;y<v.length;y++)v[y]=-1;function x(e){var t=v[e];if(t<0){var n=l[e],r=n3(n)?n:{name:n},i=new pV,a=r.name;null!=a&&null!=f.get(a)&&(i.name=i.displayName=a),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var o=c.length;return v[e]=o,i.storeDimIndex=e,c.push(i),i}return c[t]}if(!h)for(var y=0;y<d;y++)x(y);g.each(function(e,t){var n=oo(e).slice();if(1===n.length&&!n0(n[0])&&n[0]<0)return void g.set(t,!1);var r=g.set(t,[]);nU(n,function(e,n){var i=n0(e)?f.get(e):e;null!=i&&i<d&&(r[n]=i,b(x(i),t,n))})});var _=0;function b(e,t,n){null!=uA.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,u.set(t,!0))}nU(s,function(e){if(n0(e))i=e,r={};else{var t,n,r,i=(r=e).name,a=r.ordinalMeta;r.ordinalMeta=null,(r=nH({},r)).ordinalMeta=a,t=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var o=g.get(i);if(!1!==o){if(!(o=oo(o)).length)for(var s=0;s<(t&&t.length||1);s++){for(;_<d&&null!=x(_).coordDim;)_++;_<d&&o.push(_++)}nU(o,function(e,a){var o=x(e);if(p&&null!=r.type&&(o.type=r.type),b(nV(o,r),i,a),null==o.name&&t){var s=t[a];n3(s)||(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}n&&nV(o.otherDims,n)})}});var w=t.generateCoord,S=t.generateCoordCount,C=null!=S;S=w?S||1:0;var j=w||"value";function T(e){null==e.name&&(e.name=e.coordDim)}if(h)nU(c,function(e){T(e)}),c.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var k=0;k<d;k++){var I=x(k);null==I.coordDim&&(I.coordDim=function(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}(j,u,C),I.coordDimIndex=0,(!w||S<=0)&&(I.isExtraCoord=!0),S--),T(I),null==I.type&&(1===uH(e,k)||I.isExtraCoord&&(null!=I.otherDims.itemName||null!=I.otherDims.seriesName))&&(I.type="ordinal")}return function(e){for(var t=rl(),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)}}(c),new pG({source:e,dimensions:c,fullDimensionCount:d,dimensionOmitted:h})}(e,t).dimensions}var p1=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},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}();oD(p1);var p0=0,p2=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++p0}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&nq(r,p3);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!n0(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=rl(this.categories))},e}();function p3(e){return n3(e)&&null!=e.value?e.value:e+""}function p4(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function p5(e,t){return e>=t[0]&&e<=t[1]}function p8(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function p9(e,t){return e*(t[1]-t[0])+t[0]}var p6=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new p2({})),nQ(r)&&(r=new p2({categories:nq(r,function(e){return n3(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return n_(t,e),t.prototype.parse=function(e){return null==e?NaN:n0(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return p5(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return p8(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(p9(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(null==e){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 l=0;i<a;++i){for(;null!=r[l];)l++;n.push(l),r[l]=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 null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},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}(p1);p1.registerClass(p6);var p7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return n_(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p5(e,this._extent)},t.prototype.normalize=function(e){return p8(e,this._extent)},t.prototype.scale=function(e){return p9(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a9(e)+2},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;n[0]<r[0]&&(e?a.push({value:a8(r[0]-t,i)}):a.push({value:n[0]}));for(var o=r[0];o<=r[1]&&(a.push({value:o}),(o=a8(o+t,i))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:a8(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,l=[],u=(a.value-o.value)/e;s<e-1;){var c=a8(o.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=a9(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=a8(e.value,n,!0);if(isNaN(on(r)))return n0(r)?r:"-";var i=(r+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a,o,s,l,u,c,d=(s=e,u=(l={}).interval=ot((r[1]-r[0])/s,!0),null!=t&&u<t&&(u=l.interval=t),null!=n&&u>n&&(u=l.interval=n),c=l.intervalPrecision=a9(u)+2,a=l.niceTickExtent=[a8(Math.ceil(r[0]/u)*u,c),a8(Math.floor(r[1]/u)*u,c)],o=r,isFinite(a[0])||(a[0]=o[0]),isFinite(a[1])||(a[1]=o[1]),p4(a,0,o),p4(a,1,o),a[0]>a[1]&&(a[0]=a[1]),l);this._intervalPrecision=d.intervalPrecision,this._interval=d.interval,this._niceExtent=d.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;isFinite(t[1]-t[0])||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=a8(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=a8(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(p1);p1.registerClass(p7);var fe=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},ft=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return n_(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return ut(e.value,l8[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(ue(this._minLevelUnit))]||l8.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var a=null;if(n0(n))a=n;else if(n1(n))a=n(e.value,t,{level:e.level});else{var o=nH({},l4);if(e.level>0)for(var s=0;s<l9.length;++s)o[l9[s]]="{primary|"+o[l9[s]]+"}";var l=n?!1===n.inherit?n:nV(n,o):o,u=un(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=l6.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(nQ(a)){var d=null==e.level?0:e.level>=0?e.level:a.length+e.level;d=Math.min(d,a.length-1),a=a[d]}}return ut(new Date(e.value),a,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){for(var i=0,a=[],o=[],s=0,l=0,u=0;u<l6.length&&i++<1e4;++u){var c,d=ue(l6[u]);if((c=l6[u])===ue(c)&&(!function(e,i,a){var o=[],s=!i.length;if(!function(e,t,n,r){var i=a7(t),a=a7(n),o=function(e){return ur(i,e,r)===ur(a,e,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},h=function(){return d()&&o("second")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(ue(e),r[0],r[1],n)){s&&(i=[{value:function(e,t,n){var r=new Date(e);switch(ue(t)){case"year":case"month":r[ud(n)](0);case"day":r[uh(n)](1);case"hour":r[up(n)](0);case"minute":r[uf(n)](0);case"second":r[um(n)](0),r[ug(n)](0)}return r.getTime()}(new Date(r[0]),e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,c=i[l+1].value;if(u!==c){var d,h,p,f=void 0,m=void 0,g=void 0;switch(e){case"year":f=Math.max(1,Math.round(t/864e5/365)),m=ui(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":f=(d=t/2592e6)>6?6:d>3?3:d>2?2:1,m=ua(n),g=ud(n);break;case"week":case"half-week":case"day":f=(h=t/864e5)>16?16:h>7.5?7:h>3.5?4:h>1.5?2:1,m=uo(n),g=uh(n);break;case"half-day":case"quarter-day":case"hour":f=(p=t/36e5)>12?12:p>6?6:p>3.5?4:p>2?2:1,m=us(n),g=up(n);break;case"minute":f=fr(t,!0),m=ul(n),g=uf(n);break;case"second":f=fr(t,!1),m=uu(n),g=um(n);break;case"millisecond":f=ot(t,!0),m=uc(n),g=ug(n)}!function(e,t,n,i,a,o,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}(f,u,c,m,g,0,o),"year"===e&&a.length>1&&0===l&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}(l6[u],a[a.length-1]||[],o),d!==(l6[u+1]?ue(l6[u+1]):null))){if(o.length){l=s,o.sort(function(e,t){return e.value-t.value});for(var h=[],p=0;p<o.length;++p){var f=o[p].value;(0===p||o[p-1].value!==f)&&(h.push(o[p]),f>=r[0]&&f<=r[1]&&s++)}var m=(r[1]-r[0])/t;if(s>1.5*m&&l>m/1.5||(a.push(h),s>m||e===l6[u]))break}o=[]}}for(var g=n$(nq(a,function(e){return n$(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),v=[],y=g.length-1,u=0;u<g.length;++u)for(var x=g[u],_=0;_<x.length;++_)v.push({value:x[_].value,level:y-u});v.sort(function(e,t){return e.value-t.value});for(var b=[],u=0;u<v.length;++u)(0===u||v[u].value!==v[u-1].value)&&b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=864e5,t[1]+=864e5),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]-864e5}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=fn.length,o=Math.min(fe(fn,this._approxInterval,0,a),a-1);this._interval=fn[o][1],this._minLevelUnit=fn[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return n2(e)?e:+a7(e)},t.prototype.contain=function(e){return p5(this.parse(e),this._extent)},t.prototype.normalize=function(e){return p8(this.parse(e),this._extent)},t.prototype.scale=function(e){return p9(e,this._extent)},t.type="time",t}(p7),fn=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function fr(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}p1.registerClass(ft);var fi=p1.prototype,fa=p7.prototype,fo=Math.floor,fs=Math.ceil,fl=Math.pow,fu=Math.log,fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new p7,t._interval=0,t}return n_(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return nq(fa.getTicks.call(this,e),function(e){var t=e.value,i=a8(fl(this.base,t));return i=t===n[0]&&this._fixMin?a8(i,a9(r[0])):i,{value:i=t===n[1]&&this._fixMax?a8(i,a9(r[1])):i}},this)},t.prototype.setExtent=function(e,t){var n=fu(this.base);e=fu(Math.max(0,e))/n,t=fu(Math.max(0,t))/n,fa.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e,t,n=this.base,r=fi.getExtent.call(this);r[0]=fl(n,r[0]),r[1]=fl(n,r[1]);var i=this._originalScale.getExtent();return this._fixMin&&(r[0]=(e=r[0],a8(e,a9(i[0])))),this._fixMax&&(r[1]=(t=r[1],a8(t,a9(i[1])))),r},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=fu(e[0])/fu(t),e[1]=fu(e[1])/fu(t),fi.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(n!==1/0&&!(n<=0)){var r=Math.pow(10,oe(n));for(e/n*r<=.5&&(r*=10);!isNaN(r)&&1>Math.abs(r)&&Math.abs(r)>0;)r*=10;var i=[a8(fs(t[0]/r)*r),a8(fo(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){fa.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p5(e=fu(e)/fu(this.base),this._extent)},t.prototype.normalize=function(e){return p8(e=fu(e)/fu(this.base),this._extent)},t.prototype.scale=function(e){return e=p9(e,this._extent),fl(this.base,e)},t.type="log",t}(p1),fd=fc.prototype;function fh(e,t,n){this._prepareParams(e,t,n)}fd.getMinorTicks=fa.getMinorTicks,fd.getLabel=fa.getLabel,p1.registerClass(fc),fh.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="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var a=this._modelMinRaw=i;n1(a)?this._modelMinNum=fm(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=fm(e,a));var o=this._modelMaxRaw=t.get("max",!0);if(n1(o)?this._modelMaxNum=fm(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=fm(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=nQ(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[aY(l[0],1),aY(l[1],1)]}},fh.prototype.calculate=function(){var e,t,n=this._isOrdinal,r=this._dataMin,i=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=n?null:i-r||Math.abs(r),l="dataMin"===this._modelMinRaw?r:this._modelMinNum,u="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,c=null!=l,d=null!=u;null==l&&(l=n?a?0:NaN:r-o[0]*s),null==u&&(u=n?a?a-1:NaN:i+o[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=u&&isFinite(u)||(u=NaN);var h=(e=l)!=e||(t=u)!=t||n&&!a;this._needCrossZero&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!d&&(u=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(l=p,c=!0),null!=f&&(u=f,d=!0),{min:l,max:u,minFixed:c,maxFixed:d,isBlank:h}},fh.prototype.modifyDataMinMax=function(e,t){this[ff[e]]=t},fh.prototype.setDeterminedMinMax=function(e,t){this[fp[e]]=t},fh.prototype.freeze=function(){this.frozen=!0};var fp={min:"_determinedMin",max:"_determinedMax"},ff={min:"_dataMin",max:"_dataMax"};function fm(e,t){return null==t?null:t!=t?NaN:e.parse(t)}function fg(){}function fv(e,t){var n;return function(e,t,n,r,i){n=n||s7;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||s7).rich;if(n){t=t||{};for(var r=nZ(n),i=0;i<r.length;i++)t[r[i]]=1}e=e.parentModel}return t}(t);if(l){for(var u in a={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);lr(a[u]={},c,s,n,r,i,!1,!0)}}a&&(e.rich=a);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h),lr(e,t,s,n,r,i,!0,!1)}(n={},e,null,"normal"!==(t=t||{}).state,void 0),n}fg.prototype.getNeedCrossZero=function(){return!this.option.scale},fg.prototype.getCoordSysModel=function(){};var fy=[];function fx(){var e=null!==oH&&oH.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}rm(fx,oH),fx.prototype.traverse=function(e,t){e.call(t,this)},fx.prototype.useStyle=function(){this.style={}},fx.prototype.getCursor=function(){return this._cursor},fx.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},fx.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},fx.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},fx.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},fx.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},fx.prototype.getDisplayables=function(){return this._displayables},fx.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},fx.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])},fx.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}},fx.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new r8(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(fy)),e.union(r)}this._rect=e}return this._rect},fx.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};var f_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return rm(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=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),sw.prototype.getBoundingRect.call(this)},t}(sw),fb=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();function fw(e){var t=c5.extend(e);return c5.registerClass(t),t}function fS(e){var t=d5.extend(e);return d5.registerClass(t),t}rm(function(e,t,n,r,i,a){var o=j.call(this,i)||this;return o.x=null==e?0:e,o.y=null==t?0:t,o.x2=null==n?1:n,o.y2=null==r?0:r,o.type="linear",o.global=a||!1,o},j=fb),rm(function(e,t,n,r,i){var a=T.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==t?.5:t,a.r=null==n?.5:n,a.type="radial",a.global=i||!1,a},T=fb);var fC=[],fj={registerPreprocessor:pM,registerProcessor:pD,registerPostInit:function(e){pO("afterinit",e)},registerPostUpdate:function(e){pO("afterupdate",e)},registerUpdateLifecycle:pO,registerAction:pA,registerCoordinateSystem:function(e,t){uQ.register(e,t)},registerLayout:pz,registerVisual:pR,registerTransform:function(e){var t=(e=nE(e)).type;t||cA("");var n=t.split(":");2!==n.length&&cA("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,cB.set(t,e)},registerLoading:function(e,t){pj[e]=t},registerMap:function(e,t,n){var r=ps.registerMap;r&&r(e,t,n)},registerImpl:function(e,t){ps[e]=t},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:uT,ComponentView:dr,SeriesModel:c5,ChartView:d5,registerComponentModel:function(e){uT.registerClass(e)},registerComponentView:function(e){dr.registerClass(e)},registerSeriesModel:function(e){c5.registerClass(e)},registerChartView:function(e){d5.registerClass(e)},registerSubTypeDefaulter:function(e,t){uT.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){a0[e]=t}};function fT(e){nQ(e)?nU(e,function(e){fT(e)}):nW(fC,e)>=0||(fC.push(e),n1(e)&&(e={install:e}),e.install(fj))}var fk=2*Math.PI,fI=sl.CMD,fM=["top","right","bottom","left"];function fD(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=Math.sqrt(l*l+u*u),d=((i-e)*(l/=c)+(a-t)*(u/=c))/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var h=o[0]=e+d*l,p=o[1]=t+d*u;return Math.sqrt((h-i)*(h-i)+(p-a)*(p-a))}function fO(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var fA=[],fz=new rK,fR=new rK,fP=new rK,fN=new rK,fL=new rK;function fF(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||fM,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),d=c&&rZ([],c),h=t.get("length2")||0;u&&fP.copy(u);for(var p=0;p<o.length;p++){!function(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-0),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+0),i.set(0,1);break;case"left":r.set(n.x-0,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+0,n.y+o/2),i.set(1,0)}}(o[p],0,s,fz,fN),rK.scaleAndAdd(fR,fz,fN,h),fR.transform(d);var f=e.getBoundingRect(),m=u?u.distance(fR):e instanceof sw?function(e,t,n){for(var r,i,a=0,o=0,s=0,l=0,u=1/0,c=t.data,d=e.x,h=e.y,p=0;p<c.length;){var f=c[p++];1===p&&(a=c[p],o=c[p+1],s=a,l=o);var m=u;switch(f){case fI.M:s=c[p++],l=c[p++],a=s,o=l;break;case fI.L:m=fD(a,o,c[p],c[p+1],d,h,fA,!0),a=c[p++],o=c[p++];break;case fI.C:m=iA(a,o,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],d,h,fA),a=c[p++],o=c[p++];break;case fI.Q:m=iL(a,o,c[p++],c[p++],c[p],c[p+1],d,h,fA),a=c[p++],o=c[p++];break;case fI.A:var g=c[p++],v=c[p++],y=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);r=Math.cos(_)*y+g,i=Math.sin(_)*x+v,p<=1&&(s=r,l=i);var S=(d-g)*x/y+g;m=function(e,t,n,r,i,a,o,s,l){var u=Math.sqrt((o-=e)*o+(s-=t)*s),c=(o/=u)*n+e,d=(s/=u)*n+t;if(Math.abs(r-i)%fk<1e-4)return l[0]=c,l[1]=d,u-n;if(a){var h=r;r=sd(i),i=sd(h)}else r=sd(r),i=sd(i);r>i&&(i+=fk);var p=Math.atan2(s,o);if(p<0&&(p+=fk),p>=r&&p<=i||p+fk>=r&&p+fk<=i)return l[0]=c,l[1]=d,u-n;var f=n*Math.cos(r)+e,m=n*Math.sin(r)+t,g=n*Math.cos(i)+e,v=n*Math.sin(i)+t,y=(f-o)*(f-o)+(m-s)*(m-s),x=(g-o)*(g-o)+(v-s)*(v-s);return y<x?(l[0]=f,l[1]=m,Math.sqrt(y)):(l[0]=g,l[1]=v,Math.sqrt(x))}(g,v,x,_,_+b,w,S,h,fA),a=Math.cos(_+b)*y+g,o=Math.sin(_+b)*x+v;break;case fI.R:m=fO(s=a=c[p++],l=o=c[p++],c[p++],c[p++],d,h,fA);break;case fI.Z:m=fD(a,o,s,l,d,h,fA,!0),a=s,o=l}m<u&&(u=m,n.set(fA[0],fA[1]))}return u}(fR,e.path,fP):function(e,t,n){var r=fO(t.x,t.y,t.width,t.height,e.x,e.y,fA);return n.set(fA[0],fA[1]),r}(fR,f,fP);m<l&&(l=m,fR.transform(c),fP.transform(c),fP.toArray(a[0]),fR.toArray(a[1]),fz.toArray(a[2]))}(function(e,t){if(t<=180&&t>0){t=t/180*Math.PI,fz.fromArray(e[0]),fR.fromArray(e[1]),fP.fromArray(e[2]),rK.sub(fN,fz,fR),rK.sub(fL,fP,fR);var n=fN.len(),r=fL.len();if(!(n<.001)&&!(r<.001)&&(fN.scale(1/n),fL.scale(1/r),Math.cos(t)<fN.dot(fL))){var i=fD(fR.x,fR.y,fP.x,fP.y,fz.x,fz.y,fE,!1);fB.fromArray(fE),fB.scaleAndAdd(fL,i/Math.tan(Math.PI-t));var a=fP.x!==fR.x?(fB.x-fR.x)/(fP.x-fR.x):(fB.y-fR.y)/(fP.y-fR.y);if(isNaN(a))return;a<0?rK.copy(fB,fR):a>1&&rK.copy(fB,fP),fB.toArray(e[1])}}})(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var fE=[],fB=new rK;function fH(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(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 fV(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=rx(r[0],r[1]),a=rx(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=rb([],r[1],r[0],o/i),l=rb([],r[1],r[2],o/a),u=rb([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}var fW=[0,0],fY=[0,0],fG=new rK,fU=new rK,fq=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new rK;for(var n=0;n<2;n++)this._axes[n]=new rK;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 l=0;l<4;l++)n[l].transform(t);rK.sub(r[0],n[1],n[0]),rK.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return(fG.set(1/0,1/0),fU.set(0,0),!this._intersectCheckOneSide(this,e,fG,fU,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,fG,fU,r,-1)&&(n=!1,r))?n:(r||rK.copy(t,n?fG:fU),n)},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,fW),this._getProjMinMaxOnAxis(s,t._corners,fY),fW[1]<fY[0]||fW[0]>fY[1]){if(o=!1,i)return o;var u=Math.abs(fY[0]-fW[1]),c=Math.abs(fW[0]-fY[1]);Math.min(u,c)>r.len()&&(u<c?rK.scale(r,l,-u*a):rK.scale(r,l,c*a))}else if(n){var u=Math.abs(fY[0]-fW[1]),c=Math.abs(fW[0]-fY[1]);Math.min(u,c)<n.len()&&(u<c?rK.scale(n,l,u*a):rK.scale(n,l,-c*a))}}return o},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,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},e}();function fX(e,t,n,r,i,a){var o,s,l,u=e.length;if(!(u<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var c=0,d=!1,h=[],p=0,f=0;f<u;f++){var m=e[f],g=m.rect;(o=g[t]-c)<0&&(g[t]-=o,m.label[t]-=o,d=!0);var v=Math.max(-o,0);h.push(v),p+=v,c=g[t]+g[n]}p>0&&a&&w(-p/u,0,u);var y=e[0],x=e[u-1];return _(),s<0&&S(-s,.8),l<0&&S(l,.8),_(),b(s,l,1),b(l,s,-1),_(),s<0&&C(-s),l<0&&C(l),d}function _(){s=y.rect[t]-r,l=i-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,u);var i=r+e;i<0&&S(-i*n,1)}else S(-e*n,1)}}function w(n,r,i){0!==n&&(d=!0);for(var a=r;a<i;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function S(r,i){for(var a=[],o=0,s=1;s<u;s++){var l=e[s-1].rect,c=Math.max(e[s].rect[t]-l[t]-l[n],0);a.push(c),o+=c}if(o){var d=Math.min(Math.abs(r)/o,i);if(r>0)for(var s=0;s<u-1;s++){var h=a[s]*d;w(h,0,s+1)}else for(var s=u-1;s>0;s--){var h=a[s-1]*d;w(-h,s,u)}}}function C(e){for(var t=e<0?-1:1,n=Math.ceil((e=Math.abs(e))/(u-1)),r=0;r<u-1;r++)if(t>0?w(n,0,r+1):w(-n,u-r-1,u),(e-=n)<=0)return}}var f$=["align","verticalAlign","width","height","fontSize"],fZ=new aN,fK=og(),fJ=og();function fQ(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var f1=["x","y","rotation"],f0=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,o=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();r8.applyTransform(u,u,l),l?fZ.setLocalTransform(l):(fZ.x=fZ.y=fZ.rotation=fZ.originX=fZ.originY=0,fZ.scaleX=fZ.scaleY=1),fZ.rotation=sd(fZ.rotation);var c=r.__hostTarget;if(c){a=c.getBoundingRect().plain();var d=c.getComputedTransform();r8.applyTransform(a,a,d)}var h=a&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:h,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:a,priority:a?a.width*a.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:h&&h.ignore,x:fZ.x,y:fZ.y,scaleX:fZ.scaleX,scaleY:fZ.scaleY,rotation:fZ.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(n1(r)||nZ(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=oR(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),r=0;r<this._labelList.length;r++){var i=this._labelList[r],a=i.label,o=a.__hostTarget,s=i.defaultAttr,l=void 0;l=(l=n1(i.layoutOption)?i.layoutOption(function(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:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(r&&r.shape.points)}}(i,o)):i.layoutOption)||{},i.computedLayoutOption=l;var u=Math.PI/180;o&&o.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var c=!1;if(null!=l.x?(a.x=a5(l.x,t),a.setStyle("x",0),c=!0):(a.x=s.x,a.setStyle("x",s.style.x)),null!=l.y?(a.y=a5(l.y,n),a.setStyle("y",0),c=!0):(a.y=s.y,a.setStyle("y",s.style.y)),l.labelLinePoints){var d=o.getTextGuideLine();d&&(d.setShape({points:l.labelLinePoints}),c=!1)}fK(a).needsUpdateLabelLine=c,a.rotation=null!=l.rotate?l.rotate*u:s.rotation,a.scaleX=s.scaleX,a.scaleY=s.scaleY;for(var h=0;h<f$.length;h++){var p=f$[h];a.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(a.draggable=!0,a.cursor="move",o){var f=i.seriesModel;null!=i.dataIndex&&(f=i.seriesModel.getData(i.dataType).getItemModel(i.dataIndex)),a.on("drag",function(e,t){return function(){fF(e,t)}}(o,f.getModel("labelLine")))}}else a.off("drag"),a.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new fq(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}(this._labelList),i=n$(r,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=n$(r,function(e){return"shiftY"===e.layoutOption.moveOverlap});fX(i,"x","width",0,t,void 0),fX(a,"y","height",0,n,void 0),function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new r8(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)&&(o&&f.axisAligned||(f.obb||(f.obb=new fq(f.localRect,f.transform)),d||(d=new fq(s,l)),d.intersect(f.obb)))){h=!0;break}}h?(r(u),c&&r(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}(n$(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;nU(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=fK(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=oR(e),i=r.dataIndex;if(n&&null!=i){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style");l&&(s.stroke=l[a.getVisual("drawType")]);var u=o.getModel("labelLine");!function(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,l=0;l<sI.length;l++){var u=sI[l],c=t[u],d="normal"===u;if(c){var h=c.get("show");if((d?s:n6(i.states[u]&&i.states[u].ignore,s))||!n6(h,o)){var p=d?r:r&&r.states[u];p&&(p.ignore=!0),r&&fH(r,!0,u,c);continue}!r&&(r=new dW,e.setTextGuideLine(r),d||!s&&o||fH(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),fH(r,!1,u,c)}}if(r){nV(r.style,n),r.style.fill=null;var f=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=fV}}(e,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<sk.length;r++){var i=sk[r];n[i]=e.getModel([i,t])}return n}(o),s),fF(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!s6(e))){var i=fK(n),a=i.oldLayout,o=oR(e),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(o.dataType);if(a){n.attr(a);var c=e.prevStates;c&&(nW(c,"select")>=0&&n.attr(i.oldLayoutSelect),nW(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),s8(n,l,t,s)}else if(n.attr(l),!li(n).valueAnimation){var d=n6(n.style.opacity,1);n.style.opacity=0,s9(n,{style:{opacity:d}},t,s)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};fQ(h,l,f1),fQ(h,n.states.select,f1)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};fQ(p,l,f1),fQ(p,n.states.emphasis,f1)}var f=li(n);if(f.valueAnimation&&f.prevValue!==f.value){var m=f.defaultInterpolatedText,g=n6(f.interpolatedValue,f.prevValue),v=f.value;n.percent=0,(null==f.prevValue?s9:s8)(n,{percent:1},t,s,null,function(e){var r=function(e,t,n,r,i){var a=null==t||"auto"===t;if(null==r)return r;if(n2(r)){var o,s=(r-(o=n||0))*i+o;return a8(s,a?Math.max(a9(n||0),a9(r)):t)}if(n0(r))return i<1?n:r;for(var l=[],u=Math.max(n?n.length:0,r.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)l[c]=(i<1&&n?n:r)[c];else{var h=n&&n[c]?n[c]:0,p=r[c],s=(p-h)*i+h;l[c]=a8(s,a?Math.max(a9(h),a9(p)):t)}}return l}(u,f.precision,g,v,e);f.interpolatedValue=1===e?null:r,function(e,t){for(var n=0;n<sk.length;n++){var r=sk[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)}(n,function(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=n1(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:r},u=0;u<sk.length;u++){var c=sk[u],d=t[c];l[c]=n6(i?i.getFormattedLabel(a,c,null,o,d&&d.get("formatter")):null,r)}return l}({labelDataIndex:s,labelFetcher:t,defaultText:m?m(r):r+""},f.statesModels,r))})}}if(r&&!r.ignore&&!r.invisible){var i=fJ(r),a=i.oldLayout,y={points:r.shape.points};a?(r.attr({shape:a}),s8(r,{shape:y},t)):(r.setShape(y),r.style.strokePercent=0,s9(r,{style:{strokePercent:1}},t)),i.oldLayout=y}},e}(),f2=og();function f3(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var r=f2(t).labelManager;r||(r=f2(t).labelManager=new f0),r.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var r=f2(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function f4(e,t,n){var r=nj.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}fT(f3);var f5=function(e){function t(t,n,r){var i,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||ak,"string"==typeof t?i=f4(t,n,r):n3(t)&&(t=(i=t).id),a.id=t,a.dom=i;var o=i.style;return o&&(rc(i),i.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=r,a}return rm(t,e),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=f4("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,l=new r8(0,0,0,0);function u(e){if(!(!e.isFinite()||e.isZero()))if(0===a.length){var t=new r8(0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,r=1/0,i=0,u=0;u<a.length;++u){var c=a[u];if(c.intersect(e)){var d=new r8(0,0,0,0);d.copy(c),d.union(e),a[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height-h-p;f<r&&(r=f,i=u)}}if(s&&(a[i].union(e),n=!0),!n){var t=new r8(0,0,0,0);t.copy(e),a.push(t)}s||(s=a.length>=o)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=e[c];if(d){var h=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(1&d.__dirty||!h)?d.getPrevPaintRect():null;p&&u(p);var f=h&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;f&&u(f)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d=t[c],h=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&u(p)}}do{i=!1;for(var c=0;c<a.length;){if(a[c].isZero()){a.splice(c,1);continue}for(var m=c+1;m<a.length;)a[c].intersect(a[m])?(i=!0,a[c].union(a[m]),a.splice(m,1)):m++;c++}}while(i);return this._paintRects=a,a},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,1!==n&&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=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/u,o/u));var d=this.domBack;function h(e,n,r,a){if(i.clearRect(e,n,r,a),t&&"transparent"!==t){var o=void 0;n9(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||hG(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,o=h0(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(d,e,n,r,a),i.restore())}!n||s?h(0,0,a,o):n.length&&nU(n,function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(rk),f8=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||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=nH({},n||{}),this.dpr=n.devicePixelRatio||ak,this._singleCanvas=i,this.root=e,e.style&&(rc(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e.width,l=e.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,e.width=s*this.dpr,e.height=l*this.dpr,this._width=s,this._height=l;var u=new f5(e,this,this.dpr);u.__builtin__=!0,u.initContext(),o[314159]=u,u.zlevel=314159,a.push(314159),this._domRoot=e}else{this._width=hq(e,0,n),this._height=hq(e,1,n);var c,d,h,p=this._domRoot=(c=this._width,d=this._height,(h=document.createElement("div")).style.cssText=["position:relative","width:"+c+"px","height:"+d+"px","padding:0;margin:0;border-width:0"].join(";")+";",h);e.appendChild(p)}}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=0===i?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,n=e.length,r=this._hoverlayer;if(r&&r.clear(),n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<n;a++){var o=e[a];o.__inHover&&(r||(r=this._hoverlayer=this.getLayer(1e5)),t||(t=r.ctx).save(),pe(t,o,i,a===n-1))}t&&t.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){h7(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=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;I(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(314159).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],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,d=this,h=0;h<i.length;h++)!function(o){var s,l=i[o],h=l.ctx,p=a&&l.createRepaintRects(e,t,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,m=!n&&l.incremental&&Date.now,g=m&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,p);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,a,t,n,s===l.__endIndex-1),m&&Date.now()-g>15)break}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b<p.length;++b){var w=p[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)}(h);return nw.wxa&&nU(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},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))&&(pe(o,e,i,a),e.setPrevPaintRect(s))}else pe(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var n=this._layers[e];return n||((n=new f5("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?nB(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&nB(n,this._layerConfig[e-.01],!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]){if(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)){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 l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(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){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n,r,i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0;for(r=0;r<e.length;r++){var a=e[r],l=a.zlevel,u=void 0;n!==l&&(n=l,s=0),a.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,s=1):u=this.getLayer(l+.01*(s>0),this._needsManuallyCompositing),u.__builtin__||nF("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,t(r),o=u),1&a.__dirty&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}t(r),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,nU(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?nB(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];(i===e||i===e+.01)&&nB(this._layers[i],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(nW(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(null!=e&&(r.width=e),null!=t&&(r.height=t),e=hq(i,0,r),t=hq(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(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).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=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new f5("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,l=o.length;s<l;s++)pe(n,o[s],a,s===l-1);return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),f9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return n_(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new cJ(this),cQ(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),cQ(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:uE},t}(uT),f6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return n_(t,e),t.type="dataset",t}(dr);fT([function(e){e.registerPainter("canvas",f8)},function(e){e.registerComponentModel(f9),e.registerComponentView(f6)}]),fT(f3),fw({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(e){return{fill:e.get("color")}},visualDrawType:"fill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new pJ(pQ(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),fS({type:"wordCloud",render:function(e,t,n){var r=this.group;r.removeAll();var i=e.getData(),a=e.get("gridSize");e.layoutInstance.ondraw=function(t,n,o,s){var l=i.getItemModel(o),u=new lD({style:fv(l.getModel("textStyle")),scaleX:1/s.info.mu,scaleY:1/s.info.mu,x:(s.gx+s.info.gw/2)*a,y:(s.gy+s.info.gh/2)*a,rotation:s.rot});u.setStyle({x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*n,text:t,verticalAlign:"middle",fill:i.getItemVisual(o,"style").fill,fontSize:n}),r.add(u),i.setItemGraphicEl(o,u),u.ensureState("emphasis").style=fv(l.getModel(["emphasis","textStyle"]),{state:"emphasis"}),u.ensureState("blur").style=fv(l.getModel(["blur","textStyle"]),{state:"blur"}),s0(u,l.get(["emphasis","focus"]),l.get(["emphasis","blurScope"])),u.stateTransition={duration:e.get("animation")?e.get(["stateAnimation","duration"]):0,easing:e.get(["stateAnimation","easing"])},u.__highDownDispatcher=!0},this._model=e},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(n){if("string"==typeof n.data&&n.data.substr(0,t.length)===t){n.stopImmediatePropagation();var r=parseInt(n.data.substr(t.length),36);e[r]&&(e[r](),e[r]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},function(n){var r=e.length;return e.push(n),window.postMessage(t+r.toString(36),"*"),r}}()||function(e){window.setTimeout(e,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)});var f7=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!!t&&!!t.getImageData&&!!t.fillText&&!!Array.prototype.some&&!!Array.prototype.push}(),me=function(){if(f7){for(var e,t,n=document.createElement("canvas").getContext("2d"),r=20;r;){if(n.font=r.toString(10)+"px sans-serif",n.measureText("W").width===e&&n.measureText("m").width===t)return r+1;e=n.measureText("W").width,t=n.measureText("m").width,r--}return 0}}(),mt=function(e){if(!Array.isArray(e))return[];var t=e.slice();return t.splice(0,2),t},mn=function(e){for(var t,n,r=e.length;r;)t=Math.floor(Math.random()*r),n=e[--r],e[r]=e[t],e[t]=n;return e},mr={},mi=function(e,t){if(f7){var n,r,i,a,o,s,l,u,c,d=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(t,n){if("string"==typeof t){if(e[n]=document.getElementById(t),!e[n])throw Error("The element id specified is not found.")}else if(!t.tagName&&!t.appendChild)throw Error("You must pass valid HTML elements, or ID of the element.")});var h={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var p in t)p in h&&(h[p]=t[p]);if("function"!=typeof h.weightFactor){var f=h.weightFactor;h.weightFactor=function(e){return e*f}}if("function"!=typeof h.shape)switch(h.shape){case"circle":default:h.shape="circle";break;case"cardioid":h.shape=function(e){return 1-Math.sin(e)};break;case"diamond":h.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"square":h.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":h.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":h.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":h.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":h.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}h.gridSize=Math.max(Math.floor(h.gridSize),4);var m=h.gridSize,g=m-h.maskGapWidth,v=Math.abs(h.maxRotation-h.minRotation),y=Math.min(h.maxRotation,h.minRotation),x=h.rotationStep;switch(h.color){case"random-dark":l=function(){return N(10,50)};break;case"random-light":l=function(){return N(50,90)};break;default:"function"==typeof h.color&&(l=h.color)}"function"==typeof h.fontWeight&&(u=h.fontWeight);var _=null;"function"==typeof h.classes&&(_=h.classes);var b=!1,w=[],S=function(e){var t,n,r=e.currentTarget,i=r.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,n=e.touches[0].clientY):(t=e.clientX,n=e.clientY);var a=t-i.left,o=n-i.top,s=Math.floor(a*(r.width/i.width||1)/m),l=Math.floor(o*(r.height/i.height||1)/m);return w[s]?w[s][l]:null},C=function(e){var t=S(e);if(c!==t){if(c=t,!t)return void h.hover(void 0,void 0,e);h.hover(t.item,t.dimension,e)}},j=function(e){var t=S(e);t&&(h.click(t.item,t.dimension,e),e.preventDefault())},T=[],k=function(e){if(T[e])return T[e];var t=8*e,n=t,r=[];for(0===e&&r.push([a[0],a[1],0]);n--;){var i=1;"circle"!==h.shape&&(i=h.shape(n/t*2*Math.PI)),r.push([a[0]+e*i*Math.cos(-n/t*2*Math.PI),a[1]+e*i*Math.sin(-n/t*2*Math.PI)*h.ellipticity,n/t*2*Math.PI])}return T[e]=r,r},I=function(){return h.abortThreshold>0&&new Date().getTime()-s>h.abortThreshold},M=function(e,t,n,r){var i,a,o,s,l=h.weightFactor(t);if(l<=h.minSize)return!1;var c=1;l<me&&(c=function(){for(var e=2;e*l<me;)e+=2;return e}()),i=u?u(e,t,l,r):h.fontWeight;var d=document.createElement("canvas"),p=d.getContext("2d",{willReadFrequently:!0});p.font=i+" "+(l*c).toString(10)+"px "+h.fontFamily;var f=p.measureText(e).width/c,g=Math.max(l*c,p.measureText("m").width,p.measureText("W").width)/c,v=f+2*g,y=3*g,x=Math.ceil(v/m),_=Math.ceil(y/m),b=-f/2,w=-(.4*g),S=Math.ceil(((v=x*m)*Math.abs(Math.sin(n))+(y=_*m)*Math.abs(Math.cos(n)))/m),C=Math.ceil((v*Math.abs(Math.cos(n))+y*Math.abs(Math.sin(n)))/m),j=C*m,T=S*m;d.setAttribute("width",j),d.setAttribute("height",T),p.scale(1/c,1/c),p.translate(j*c/2,T*c/2),p.rotate(-n),p.font=i+" "+(l*c).toString(10)+"px "+h.fontFamily,p.fillStyle="#000",p.textBaseline="middle",p.fillText(e,b*c,(w+.5*l)*c);var k=p.getImageData(0,0,j,T).data;if(I())return!1;for(var M=[],D=C,O=[S/2,C/2,S/2,C/2];D--;)for(a=S;a--;){s=m;n:for(;s--;)for(o=m;o--;)if(k[((a*m+s)*j+(D*m+o))*4+3]){M.push([D,a]),D<O[3]&&(O[3]=D),D>O[1]&&(O[1]=D),a<O[0]&&(O[0]=a),a>O[2]&&(O[2]=a);break n}}return{mu:c,occupied:M,bounds:O,gw:C,gh:S,fillTextOffsetX:b,fillTextOffsetY:w,fillTextWidth:f,fillTextHeight:g,fontSize:l}},D=function(e,t,a,o,s){for(var l=s.length;l--;){var u=e+s[l][0],c=t+s[l][1];if(u>=r||c>=i||u<0||c<0){if(!h.drawOutOfBound)return!1;continue}if(!n[u][c])return!1}return!0},O=function(t,n,r,i,a,o,s,c,d,p){var f,g,v,y=r.fontSize;f=l?l(i,a,y,o,s,p):h.color,g=u?u(i,a,y,p):h.fontWeight,v=_?_(i,a,y,p):h.classes,e.forEach(function(e){if(e.getContext){var a=e.getContext("2d"),o=r.mu;a.save(),a.scale(1/o,1/o),a.font=g+" "+(y*o).toString(10)+"px "+h.fontFamily,a.fillStyle=f,a.translate((t+r.gw/2)*m*o,(n+r.gh/2)*m*o),0!==c&&a.rotate(-c),a.textBaseline="middle",a.fillText(i,r.fillTextOffsetX*o,(r.fillTextOffsetY+.5*y)*o),a.restore()}else{var s=document.createElement("span"),l="";l="rotate("+-c/Math.PI*180+"deg) ",1!==r.mu&&(l+="translateX(-"+r.fillTextWidth/4+"px) scale("+1/r.mu+")");var u={position:"absolute",display:"block",font:g+" "+y*r.mu+"px "+h.fontFamily,left:(t+r.gw/2)*m+r.fillTextOffsetX+"px",top:(n+r.gh/2)*m+r.fillTextOffsetY+"px",width:r.fillTextWidth+"px",height:r.fillTextHeight+"px",lineHeight:y+"px",whiteSpace:"nowrap",transform:l,webkitTransform:l,msTransform:l,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var p in f&&(u.color=f),s.textContent=i,u)s.style[p]=u[p];if(d)for(var x in d)s.setAttribute(x,d[x]);v&&(s.className+=v),e.appendChild(s)}})},A=function(t,a,o,s,l){t>=r||a>=i||t<0||a<0||(n[t][a]=!1,o&&e[0].getContext("2d").fillRect(t*m,a*m,g,g),b&&(w[t][a]={item:l,dimension:s}))},z=function(t,n,a,o,s,l){var u,c,d=s.occupied,p=h.drawMask;if(p&&((u=e[0].getContext("2d")).save(),u.fillStyle=h.maskColor),b){var f=s.bounds;c={x:(t+f[3])*m,y:(n+f[0])*m,w:(f[1]-f[3]+1)*m,h:(f[2]-f[0]+1)*m}}for(var g=d.length;g--;){var v=t+d[g][0],y=n+d[g][1];v>=r||y>=i||v<0||y<0||A(v,y,p,c,l)}p&&u.restore()},R=function e(t,n){if(n>20)return null;Array.isArray(t)?(a=t[0],s=t[1]):(a=t.word,s=t.weight,l=t.attributes);var a,s,l,u=0===h.rotateRatio||Math.random()>h.rotateRatio?0:0===v?y:y+Math.round(Math.random()*v/x)*x,c=mt(t),d=M(a,s,u,c);if(!d||I())return!1;if(!h.drawOutOfBound&&!h.shrinkToFit){var p=d.bounds;if(p[1]-p[3]+1>r||p[2]-p[0]+1>i)return!1}for(var f=o+1;f--;){var m=k(o-f);h.shuffle&&mn(m=[].concat(m));for(var g=0;g<m.length;g++){var _=function(e){var n=Math.floor(e[0]-d.gw/2),r=Math.floor(e[1]-d.gh/2),i=d.gw,h=d.gh;return!!D(n,r,i,h,d.occupied)&&(O(n,r,d,a,s,o-f,e[2],u,l,c),z(n,r,i,h,d,t),{gx:n,gy:r,rot:u,info:d})}(m[g]);if(_)return _}}return h.shrinkToFit?(Array.isArray(t)?t[1]=3*t[1]/4:t.weight=3*t.weight/4,e(t,n+1)):null},P=function(t,n,r){if(n)return!e.some(function(e){var n=new CustomEvent(t,{detail:r||{}});return!e.dispatchEvent(n)},this);e.forEach(function(e){var n=new CustomEvent(t,{detail:r||{}});e.dispatchEvent(n)},this)};!function(){var t,l,u=e[0];if(u.getContext)r=Math.ceil(u.width/m),i=Math.ceil(u.height/m);else{var p=u.getBoundingClientRect();r=Math.ceil(p.width/m),i=Math.ceil(p.height/m)}if(P("wordcloudstart",!0)){if(a=h.origin?[h.origin[0]/m,h.origin[1]/m]:[r/2,i/2],o=Math.floor(Math.sqrt(r*r+i*i)),n=[],!u.getContext||h.clearCanvas)for(e.forEach(function(e){if(e.getContext){var t=e.getContext("2d");t.fillStyle=h.backgroundColor,t.clearRect(0,0,r*(m+1),i*(m+1)),t.fillRect(0,0,r*(m+1),i*(m+1))}else e.textContent="",e.style.backgroundColor=h.backgroundColor,e.style.position="relative"}),f=r;f--;)for(n[f]=[],g=i;g--;)n[f][g]=!0;else{var f,g,v,y,x,_=document.createElement("canvas").getContext("2d");_.fillStyle=h.backgroundColor,_.fillRect(0,0,1,1);var S=_.getImageData(0,0,1,1).data,T=u.getContext("2d").getImageData(0,0,r*m,i*m).data;for(f=r;f--;)for(n[f]=[],g=i;g--;){x=m;n:for(;x--;)for(y=m;y--;)for(v=4;v--;)if(T[((g*m+x)*r*m+(f*m+y))*4+v]!==S[v]){n[f][g]=!1;break n}!1!==n[f][g]&&(n[f][g]=!0)}T=_=S=void 0}if(h.hover||h.click){for(b=!0,f=r+1;f--;)w[f]=[];h.hover&&u.addEventListener("mousemove",C),h.click&&(u.addEventListener("click",j),u.addEventListener("touchstart",j),u.addEventListener("touchend",function(e){e.preventDefault()}),u.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),u.addEventListener("wordcloudstart",function e(){u.removeEventListener("wordcloudstart",e),u.removeEventListener("mousemove",C),u.removeEventListener("click",j),c=void 0})}v=0;var k=!0;h.layoutAnimation?0!==h.wait?(t=window.setTimeout,l=window.clearTimeout):(t=window.setImmediate,l=window.clearImmediate):(t=function(e){e()},l=function(){k=!1});var M=function(t,n){e.forEach(function(e){e.removeEventListener(t,n)},this)},D=function e(){M("wordcloudstart",e),l(mr[d])};!function(t,n){e.forEach(function(e){e.addEventListener(t,n)},this)}("wordcloudstart",D),mr[d]=(h.layoutAnimation?t:setTimeout)(function e(){if(k){if(v>=h.list.length){l(mr[d]),P("wordcloudstop",!1),M("wordcloudstart",D),delete mr[d];return}s=new Date().getTime();var n=R(h.list[v],0),r=!P("wordclouddrawn",!0,{item:h.list[v],drawn:n});if(I()||r){l(mr[d]),h.abort(),P("wordcloudabort",!1),P("wordcloudstop",!1),M("wordcloudstart",D);return}v++,mr[d]=t(e,h.wait)}},h.wait)}}()}function N(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}};if(mi.isSupported=f7,mi.minFontSize=me,!mi.isSupported)throw Error("Sorry your browser not support wordCloud");pz(function(e,t){e.eachSeriesByType("wordCloud",function(n){var r,i,a,o,s=function(e,t,n){n=rt(n||0);var r=t.width,i=t.height,a=a5(e.left,r),o=a5(e.top,i),s=a5(e.right,r),l=a5(e.bottom,i),u=a5(e.width,r),c=a5(e.height,i),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=r-s-h-a),isNaN(c)&&(c=i-l-d-o),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(a)&&(a=r-s-u-h),isNaN(o)&&(o=i-l-c-d),e.left||e.right){case"center":a=r/2-u/2-n[3];break;case"right":a=r-u-h}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-n[0];break;case"bottom":o=i-c-d}a=a||0,o=o||0,isNaN(u)&&(u=r-h-a-(s||0)),isNaN(c)&&(c=i-d-o-(l||0));var f=new r8(a+n[3],o+n[0],u,c);return f.margin=n,f}(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=n.get("keepAspect"),u=n.get("maskImage"),c=u?u.width/u.height:1;l&&(r=s,i=c,a=r.width,a>(o=r.height)*i?(r.x+=(a-o*i)/2,r.width=o*i):(r.y+=(o-a/i)/2,r.height=a/i));var d=n.getData(),h=document.createElement("canvas");h.width=s.width,h.height=s.height;var p=h.getContext("2d");if(u)try{p.drawImage(u,0,0,h.width,h.height),function(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),r=t.createImageData(n),i=0,a=0,o=0;o<n.data.length;o+=4){var s=n.data[o+3];if(s>128){var l=n.data[o]+n.data[o+1]+n.data[o+2];i+=l,++a}}for(var u=i/a,o=0;o<n.data.length;o+=4){var l=n.data[o]+n.data[o+1]+n.data[o+2],s=n.data[o+3];s<128||l>u?(r.data[o]=0,r.data[o+1]=0,r.data[o+2]=0,r.data[o+3]=0):(r.data[o]=255,r.data[o+1]=255,r.data[o+2]=255,r.data[o+3]=255)}t.putImageData(r,0,0)}(h)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var f=n.get("sizeRange"),m=n.get("rotationRange"),g=d.getDataExtent("value"),v=Math.PI/180,y=n.get("gridSize");function x(e){var t=e.detail.item;e.detail.drawn&&n.layoutInstance.ondraw&&(e.detail.drawn.gx+=s.x/y,e.detail.drawn.gy+=s.y/y,n.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}mi(h,{list:d.mapArray("value",function(e,t){var n,r,i,a,o,s,l,u,c,h=d.getItemModel(t);return[d.getName(t),h.get("textStyle.fontSize",!0)||(n=e,r=g,i=f,a=r[0],o=r[1],s=i[0],l=i[1],u=o-a,c=l-s,0===u?0===c?s:(s+l)/2:n===a?s:n===o?l:(n-a)/u*c+s),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:n.get("textStyle.fontFamily")||n.get("emphasis.textStyle.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.fontWeight")||n.get("emphasis.textStyle.fontWeight")||e.get("textStyle.fontWeight"),gridSize:y,ellipticity:s.height/s.width,minRotation:m[0]*v,maxRotation:m[1]*v,clearCanvas:!u,rotateRatio:1,rotationStep:n.get("rotationStep")*v,drawOutOfBound:n.get("drawOutOfBound"),shrinkToFit:n.get("shrinkToFit"),layoutAnimation:n.get("layoutAnimation"),shuffle:!1,shape:n.get("shape")}),h.addEventListener("wordclouddrawn",x),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){h.removeEventListener("wordclouddrawn",x),h.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),pM(function(e){var t=(e||{}).series;nQ(t)||(t=t?[t]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function r(e){e&&nU(n,function(t){e.hasOwnProperty(t)&&(e["text"+(t?t.charAt(0).toUpperCase()+t.substr(1):t)]=e[t])})}nU(t,function(e){if(e&&"wordCloud"===e.type){var t=e.textStyle||{};r(t.normal),r(t.emphasis)}})}),fw({type:"series.liquidFill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new pJ(pQ(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});let ma=(k={type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(e,t){null==t.radiusY&&(t.radiusY=t.radius);for(var n=Math.max(2*Math.ceil(2*t.radius/t.waveLength*4),8);t.phase<-(2*Math.PI);)t.phase+=2*Math.PI;for(;t.phase>0;)t.phase-=2*Math.PI;var r=t.phase/Math.PI/2*t.waveLength,i=t.cx-t.radius+r-2*t.radius;e.moveTo(i,t.waterLevel);for(var a=0,o=0;o<n;++o){var s,l,u,c,d=o%4,h=(s=o*t.waveLength/4,l=d,u=t.waveLength,c=t.amplitude,0===l?[[s+.5*u/Math.PI/2,c/2],[s+.5*u/Math.PI,c],[s+u/4,c]]:1===l?[[s+.5*u/Math.PI/2*(Math.PI-2),c],[s+.5*u/Math.PI/2*(Math.PI-1),c/2],[s+u/4,0]]:2===l?[[s+.5*u/Math.PI/2,-c/2],[s+.5*u/Math.PI,-c],[s+u/4,-c]]:[[s+.5*u/Math.PI/2*(Math.PI-2),-c],[s+.5*u/Math.PI/2*(Math.PI-1),-c/2],[s+u/4,0]]);e.bezierCurveTo(h[0][0]+i,-h[0][1]+t.waterLevel,h[1][0]+i,-h[1][1]+t.waterLevel,h[2][0]+i,-h[2][1]+t.waterLevel),o===n-1&&(a=h[2][0])}t.inverse?(e.lineTo(a+i,t.cy-t.radiusY),e.lineTo(i,t.cy-t.radiusY)):(e.lineTo(a+i,t.cy+t.radiusY),e.lineTo(i,t.cy+t.radiusY)),e.lineTo(i,t.waterLevel),e.closePath()}},sw.extend(k));function mo(e){return e&&0===e.indexOf("path://")}fS({type:"liquidFill",render:function(e,t,n){var r,i,a,o,s,l,u,c,d,h,p,f,m,g,v,y,x,_,b,w,S=this,C=this.group;C.removeAll();var j=e.getData(),T=j.getItemModel(0),k=T.get("center"),I=T.get("radius"),M=n.getWidth(),D=n.getHeight(),O=Math.min(M,D),A=0,z=0,R=e.get("outline.show");R&&(A=e.get("outline.borderDistance"),z=a5(e.get("outline.itemStyle.borderWidth"),O));var P=a5(k[0],M),N=a5(k[1],D),L=!1,F=e.get("shape");"container"===F?(L=!0,b=[(_=[M/2,D/2])[0]-z/2,_[1]-z/2],w=[a5(A,M),a5(A,D)],I=[Math.max(b[0]-w[0],0),Math.max(b[1]-w[1],0)]):I=Math.max((b=(_=a5(I,O)/2)-z/2)-(w=a5(A,O)),0),R&&(G().style.lineWidth=z,C.add(G()));var E=L?0:P-I,B=L?0:N-I,H=null;C.add(((r=Y(I)).setStyle(e.getModel("backgroundStyle").getItemStyle()),r.style.fill=null,r.z2=5,(i=Y(I)).setStyle(e.getModel("backgroundStyle").getItemStyle()),i.style.stroke=null,(a=new a1).add(r),a.add(i),a));var V=this._data,W=[];function Y(e,t){if(F)if(mo(F)){var n=d1(F.slice(7),{}),r=n.getBoundingRect(),i=r.width,a=r.height;i>a?(a=2*e/i*a,i=2*e):(i=2*e/a*i,a=2*e);var o=t?0:P-i/2,s=t?0:N-a/2;return n=d1(F.slice(7),{},new r8(o,s,i,a)),t&&(n.x=-i/2,n.y=-a/2),n}else if(L){var l=t?-e[0]:P-e[0],u=t?-e[1]:N-e[1];return hW("rect",l,u,2*e[0],2*e[1])}else{var l=t?-e:P-e,u=t?-e:N-e;return"pin"===F?u+=e:"arrow"===F&&(u-=e),hW(F,l,u,2*e,2*e)}return new db({shape:{cx:t?0:P,cy:t?0:N,r:e}})}function G(){var t=Y(_);return t.style.fill=null,t.setStyle(e.getModel("outline.itemStyle").getItemStyle()),t}function U(t,n,r){var i=L?I[0]:I,a=L?D/2:I,o=j.getItemModel(t),s=o.getModel("itemStyle"),l=o.get("phase"),u=a5(o.get("amplitude"),2*a),c=a5(o.get("waveLength"),2*i),d=a-j.get("value",t)*a*2;l=r?r.shape.phase:"auto"===l?t*Math.PI/4:l;var h=s.getItemStyle();if(!h.fill){var p=e.get("color"),f=t%p.length;h.fill=p[f]}var m=new ma({shape:{waveLength:c,radius:i,radiusY:a,cx:2*i,cy:0,waterLevel:d,amplitude:u,phase:l,inverse:n},style:h,x:P,y:N});m.shape._waterLevel=d;var g=o.getModel("emphasis.itemStyle").getItemStyle();g.lineWidth=0,m.ensureState("emphasis").style=g,s0(m);var v=Y(I,!0);return v.setStyle({fill:"white"}),m.setClipPath(v),m}function q(e,t,n){var r,i=j.getItemModel(e),a=i.get("period"),o=i.get("direction"),s=j.get("value",e),l=i.get("phase");l=n?n.shape.phase:"auto"===l?e*Math.PI/4:l;var u=0;u="auto"===a?0===(r=j.count())?5e3:5e3*(.2+(r-e)/r*.8):"function"==typeof a?a(s,e):a;var c=0;"right"===o||null==o?c=Math.PI:"left"===o?c=-Math.PI:"none"===o?c=0:console.error("Illegal direction value for liquid fill."),"none"!==o&&i.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:l}).when(u/2,{phase:c+l}).when(u,{phase:2*c+l}).during(function(){H&&H.dirty(!0)}).start()}j.diff(V).add(function(t){var n=U(t,!1),r=n.shape.waterLevel;n.shape.waterLevel=L?D/2:I,s9(n,{shape:{waterLevel:r}},e),n.z2=2,q(t,n,null),C.add(n),j.setItemGraphicEl(t,n),W.push(n)}).update(function(t,n){for(var r=V.getItemGraphicEl(n),i=U(t,!1,r),a={},o=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],s=0;s<o.length;++s){var l=o[s];i.shape.hasOwnProperty(l)&&(a[l]=i.shape[l])}for(var u={},c=["fill","opacity","shadowBlur","shadowColor"],s=0;s<c.length;++s){var l=c[s];i.style.hasOwnProperty(l)&&(u[l]=i.style[l])}L&&(a.radiusY=D/2),s8(r,{shape:a,x:i.x,y:i.y},e),e.isUniversalTransitionEnabled&&e.isUniversalTransitionEnabled()?s8(r,{style:u},e):r.useStyle(u);var d=r.getClipPath(),h=i.getClipPath();r.setClipPath(i.getClipPath()),r.shape.inverse=i.inverse,d&&h&&S._shape===F&&!mo(F)&&s8(h,{shape:d.shape},e,{isFrom:!0}),q(t,r,r),C.add(r),j.setItemGraphicEl(t,r),W.push(r)}).remove(function(e){var t=V.getItemGraphicEl(e);C.remove(t)}).execute(),T.get("label.show")&&C.add((o=W,c=T.getModel("label"),d={z2:10,shape:{x:E,y:B,width:(L?I[0]:I)*2,height:(L?I[1]:I)*2},style:{fill:"transparent"},textConfig:{position:c.get("position")||"inside"},silent:!0},Object.assign((h={style:{text:(s=e.getFormattedLabel(0,"normal"),l=100*j.get("value",0),u=j.getName(0)||e.name,isNaN(l)||(u=l.toFixed(0)+"%"),null==s?u:s),textAlign:c.get("align"),textVerticalAlign:c.get("baseline")}}).style,fv(c)),p=new lk(d),(f=new lk(d)).disableLabelAnimation=!0,p.disableLabelAnimation=!0,m=new lD(h),g=new lD(h),p.setTextContent(m),f.setTextContent(g),v=c.get("insideColor"),g.style.fill=v,(y=new a1).add(p),y.add(f),x=Y(I,!0),(H=new f_({shape:{paths:o},x:P,y:N})).setClipPath(x),f.setClipPath(H),y)),this._shape=F,this._data=j},dispose:function(){}});var ms=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"65","size":"550","name":"新疆维吾尔自治区","cp":[84.9023,42.148],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[96.416,42.7588],[96.416,42.7148],[95.9766,42.4951],[96.0645,42.3193],[96.2402,42.2314],[95.9766,41.9238],[95.2734,41.6162],[95.1855,41.792],[94.5703,41.4844],[94.043,41.0889],[93.8672,40.6934],[93.0762,40.6494],[92.6367,39.6387],[92.373,39.3311],[92.373,39.1113],[92.373,39.0234],[90.1758,38.4961],[90.3516,38.2324],[90.6152,38.3203],[90.5273,37.8369],[91.0547,37.4414],[91.3184,37.0898],[90.7031,36.7822],[90.791,36.6064],[91.0547,36.5186],[91.0547,36.0791],[90.8789,36.0352],[90,36.2549],[89.9121,36.0791],[89.7363,36.0791],[89.209,36.2988],[88.7695,36.3428],[88.5938,36.4746],[87.3633,36.4307],[86.2207,36.167],[86.1328,35.8594],[85.6055,35.6836],[85.0781,35.7275],[84.1992,35.376],[83.1445,35.4199],[82.8809,35.6836],[82.4414,35.7275],[82.002,35.332],[81.6504,35.2441],[80.4199,35.4199],[80.2441,35.2881],[80.332,35.1563],[80.2441,35.2002],[79.8926,34.8047],[79.8047,34.4971],[79.1016,34.4531],[79.0137,34.3213],[78.2227,34.7168],[78.0469,35.2441],[78.0469,35.5078],[77.4316,35.4639],[76.8164,35.6396],[76.5527,35.8594],[76.2012,35.8154],[75.9375,36.0352],[76.0254,36.4746],[75.8496,36.6943],[75.498,36.7383],[75.4102,36.958],[75.0586,37.002],[74.8828,36.9141],[74.7949,37.0459],[74.5313,37.0898],[74.5313,37.2217],[74.8828,37.2217],[75.1465,37.4414],[74.8828,37.5732],[74.9707,37.749],[74.8828,38.4521],[74.3555,38.6719],[74.1797,38.6719],[74.0918,38.54],[73.8281,38.584],[73.7402,38.8477],[73.8281,38.9795],[73.4766,39.375],[73.916,39.5068],[73.916,39.6826],[73.8281,39.7705],[74.0039,40.0342],[74.8828,40.3418],[74.7949,40.5176],[75.2344,40.4297],[75.5859,40.6494],[75.7617,40.2979],[76.377,40.3857],[76.9043,41.001],[77.6074,41.001],[78.1348,41.2207],[78.1348,41.3965],[80.1563,42.0557],[80.2441,42.2754],[80.1563,42.627],[80.2441,42.8467],[80.5078,42.8906],[80.4199,43.0664],[80.7715,43.1982],[80.4199,44.165],[80.4199,44.6045],[79.9805,44.8242],[79.9805,44.9561],[81.7383,45.3955],[82.0898,45.2197],[82.5293,45.2197],[82.2656,45.6592],[83.0566,47.2412],[83.6719,47.0215],[84.7266,47.0215],[84.9023,46.8896],[85.5176,47.0654],[85.6934,47.2852],[85.5176,48.1201],[85.7813,48.4277],[86.5723,48.5596],[86.8359,48.8232],[86.748,48.9551],[86.8359,49.1309],[87.8027,49.1748],[87.8906,48.999],[87.7148,48.9111],[88.0664,48.7354],[87.9785,48.6035],[88.5059,48.3838],[88.6816,48.1641],[89.1211,47.9883],[89.5605,48.0322],[89.7363,47.8564],[90.0879,47.8564],[90.3516,47.6807],[90.5273,47.2412],[90.8789,46.9775],[91.0547,46.582],[90.8789,46.3184],[91.0547,46.0107],[90.7031,45.7471],[90.7031,45.5273],[90.8789,45.2197],[91.582,45.0879],[93.5156,44.9561],[94.7461,44.3408],[95.3613,44.2969],[95.3613,44.0332],[95.5371,43.9014],[95.8887,43.2422],[96.3281,42.9346],[96.416,42.7588]]]}},{"type":"Feature","properties":{"id":"54","size":"550","name":"西藏自治区","cp":[87.8695,31.6846],"childNum":7},"geometry":{"type":"Polygon","coordinates":[[[79.0137,34.3213],[79.1016,34.4531],[79.8047,34.4971],[79.8926,34.8047],[80.2441,35.2002],[80.332,35.1563],[80.2441,35.2881],[80.4199,35.4199],[81.6504,35.2441],[82.002,35.332],[82.4414,35.7275],[82.8809,35.6836],[83.1445,35.4199],[84.1992,35.376],[85.0781,35.7275],[85.6055,35.6836],[86.1328,35.8594],[86.2207,36.167],[87.3633,36.4307],[88.5938,36.4746],[88.7695,36.3428],[89.209,36.2988],[89.7363,36.0791],[89.3848,36.0352],[89.4727,35.9033],[89.7363,35.7715],[89.7363,35.4199],[89.4727,35.376],[89.4727,35.2441],[89.5605,34.8926],[89.8242,34.8486],[89.7363,34.6729],[89.8242,34.3652],[89.6484,34.0137],[90.0879,33.4863],[90.7031,33.1348],[91.4063,33.1348],[91.9336,32.8271],[92.1973,32.8271],[92.2852,32.7393],[92.9883,32.7393],[93.5156,32.4756],[93.7793,32.5635],[94.1309,32.4316],[94.6582,32.6074],[95.1855,32.4316],[95.0098,32.2998],[95.1855,32.3438],[95.2734,32.2119],[95.3613,32.168],[95.3613,31.9922],[95.4492,31.8164],[95.8008,31.6846],[95.9766,31.8164],[96.1523,31.5967],[96.2402,31.9482],[96.5039,31.7285],[96.8555,31.6846],[96.7676,31.9922],[97.2949,32.0801],[97.3828,32.5635],[97.7344,32.5195],[98.1738,32.3438],[98.4375,31.8604],[98.877,31.4209],[98.6133,31.2012],[98.9648,30.7617],[99.1406,29.2676],[98.9648,29.1357],[98.9648,28.8281],[98.7891,28.8721],[98.7891,29.0039],[98.7012,28.916],[98.6133,28.5205],[98.7891,28.3447],[98.7012,28.2129],[98.3496,28.125],[98.2617,28.3887],[98.1738,28.125],[97.5586,28.5205],[97.2949,28.0811],[97.3828,27.9053],[97.0313,27.7295],[96.5039,28.125],[95.7129,28.2568],[95.3613,28.125],[95.2734,27.9492],[94.2188,27.5537],[93.8672,27.0264],[93.6035,26.9385],[92.1094,26.8506],[92.0215,27.4658],[91.582,27.5537],[91.582,27.9053],[91.4063,28.0371],[91.0547,27.8613],[90.7031,28.0811],[89.8242,28.2129],[89.6484,28.1689],[89.1211,27.5977],[89.1211,27.334],[89.0332,27.2021],[88.7695,27.4219],[88.8574,27.9932],[88.6816,28.125],[88.1543,27.9053],[87.8906,27.9492],[87.7148,27.8174],[87.0996,27.8174],[86.748,28.125],[86.5723,28.125],[86.4844,27.9053],[86.1328,28.125],[86.0449,27.9053],[85.6934,28.3447],[85.6055,28.2568],[85.166,28.3447],[85.166,28.6523],[84.9023,28.5645],[84.4629,28.7402],[84.2871,28.8721],[84.1992,29.2236],[84.1113,29.2676],[83.584,29.1797],[83.2324,29.5752],[82.1777,30.0586],[82.0898,30.3223],[81.3867,30.3662],[81.2109,30.0146],[81.0352,30.2344],[80.0684,30.5859],[79.7168,30.9375],[79.0137,31.0693],[78.75,31.333],[78.8379,31.5967],[78.6621,31.8164],[78.75,31.9043],[78.4863,32.124],[78.3984,32.5195],[78.75,32.6953],[78.9258,32.3438],[79.2773,32.5635],[79.1016,33.1787],[78.6621,33.6621],[78.6621,34.1016],[78.9258,34.1455],[79.0137,34.3213]]]}},{"type":"Feature","properties":{"id":"15","size":"450","name":"内蒙古自治区","cp":[112.5977,46.3408],"childNum":12},"geometry":{"type":"Polygon","coordinates":[[[97.207,42.8027],[99.4922,42.583],[100.8105,42.6709],[101.7773,42.4951],[102.041,42.2314],[102.7441,42.1436],[103.3594,41.8799],[103.8867,41.792],[104.502,41.8799],[104.502,41.6602],[105.0293,41.5723],[105.7324,41.9238],[107.4023,42.4512],[109.4238,42.4512],[110.3906,42.7588],[111.0059,43.3301],[111.9727,43.6816],[111.9727,43.8135],[111.4453,44.3848],[111.7969,45],[111.9727,45.0879],[113.6426,44.7363],[114.1699,44.9561],[114.5215,45.3955],[115.6641,45.4395],[116.1914,45.7031],[116.2793,45.9668],[116.543,46.2744],[117.334,46.3623],[117.4219,46.582],[117.7734,46.5381],[118.3008,46.7578],[118.7402,46.7139],[118.916,46.7578],[119.0918,46.6699],[119.707,46.626],[119.9707,46.7139],[119.707,47.1973],[118.4766,47.9883],[117.8613,48.0322],[117.334,47.6807],[116.8066,47.9004],[116.1914,47.8564],[115.9277,47.6807],[115.5762,47.9004],[115.4883,48.1641],[115.8398,48.252],[115.8398,48.5596],[116.7188,49.834],[117.7734,49.5264],[118.5645,49.9219],[119.2676,50.0977],[119.3555,50.3174],[119.1797,50.3613],[119.5313,50.7568],[119.5313,50.8887],[119.707,51.0645],[120.1465,51.6797],[120.6738,51.9434],[120.7617,52.1191],[120.7617,52.251],[120.5859,52.3389],[120.6738,52.5146],[120.4102,52.6465],[120.0586,52.6025],[120.0586,52.7344],[120.8496,53.2617],[121.4648,53.3496],[121.8164,53.042],[121.2012,52.5586],[121.6406,52.4268],[121.7285,52.2949],[121.9922,52.2949],[122.168,52.5146],[122.6953,52.251],[122.6074,52.0752],[122.959,51.3281],[123.3105,51.2402],[123.6621,51.3721],[124.3652,51.2842],[124.541,51.3721],[124.8926,51.3721],[125.0684,51.6357],[125.332,51.6357],[126.0352,51.0205],[125.7715,50.7568],[125.7715,50.5371],[125.332,50.1416],[125.1563,49.834],[125.2441,49.1748],[124.8047,49.1309],[124.4531,48.1201],[124.2773,48.5156],[122.4316,47.373],[123.0469,46.7139],[123.3984,46.8896],[123.3984,46.9775],[123.4863,46.9775],[123.5742,46.8457],[123.5742,46.8896],[123.5742,46.6699],[123.0469,46.582],[123.2227,46.2305],[122.7832,46.0107],[122.6953,45.7031],[122.4316,45.8789],[122.2559,45.791],[121.8164,46.0107],[121.7285,45.7471],[121.9043,45.7031],[122.2559,45.2637],[122.0801,44.8682],[122.3438,44.2529],[123.1348,44.4727],[123.4863,43.7256],[123.3105,43.5059],[123.6621,43.374],[123.5742,43.0225],[123.3105,42.9785],[123.1348,42.8027],[122.7832,42.7148],[122.3438,42.8467],[122.3438,42.6709],[121.9922,42.7148],[121.7285,42.4512],[121.4648,42.4951],[120.498,42.0996],[120.1465,41.7041],[119.8828,42.1875],[119.5313,42.3633],[119.3555,42.2754],[119.2676,41.7041],[119.4434,41.6162],[119.2676,41.3086],[118.3887,41.3086],[118.125,41.748],[118.3008,41.792],[118.3008,42.0996],[118.125,42.0557],[117.9492,42.2314],[118.0371,42.4072],[117.7734,42.627],[117.5098,42.583],[117.334,42.4512],[116.8945,42.4072],[116.8066,42.0117],[116.2793,42.0117],[116.0156,41.792],[115.9277,41.9238],[115.2246,41.5723],[114.9609,41.6162],[114.873,42.0996],[114.5215,42.1436],[114.1699,41.792],[114.2578,41.5723],[113.9063,41.4404],[113.9941,41.2207],[113.9063,41.1328],[114.082,40.7373],[114.082,40.5176],[113.8184,40.5176],[113.5547,40.3418],[113.2031,40.3857],[112.7637,40.166],[112.3242,40.2539],[111.9727,39.5947],[111.4453,39.6387],[111.3574,39.4189],[111.0938,39.375],[111.0938,39.5947],[110.6543,39.2871],[110.127,39.4629],[110.2148,39.2871],[109.8633,39.2432],[109.9512,39.1553],[108.9844,38.3203],[109.0723,38.0127],[108.8965,37.9688],[108.8086,38.0127],[108.7207,37.7051],[108.1934,37.6172],[107.666,37.8809],[107.3145,38.1006],[106.7871,38.1885],[106.5234,38.3203],[106.9629,38.9795],[106.7871,39.375],[106.3477,39.2871],[105.9082,38.7158],[105.8203,37.793],[104.3262,37.4414],[103.4473,37.8369],[103.3594,38.0127],[103.5352,38.1445],[103.4473,38.3643],[104.2383,38.9795],[104.0625,39.4189],[103.3594,39.3311],[103.0078,39.1113],[102.4805,39.2432],[101.8652,39.1113],[102.041,38.8916],[101.7773,38.6719],[101.3379,38.7598],[101.25,39.0234],[100.9863,38.9355],[100.8105,39.4189],[100.5469,39.4189],[100.0195,39.7705],[99.4922,39.8584],[100.1074,40.2539],[100.1953,40.6494],[99.9316,41.001],[99.2285,40.8691],[99.0527,40.6934],[98.9648,40.7813],[98.7891,40.6055],[98.5254,40.7373],[98.6133,40.6494],[98.3496,40.5615],[98.3496,40.9131],[97.4707,41.4844],[97.8223,41.6162],[97.8223,41.748],[97.207,42.8027]]]}},{"type":"Feature","properties":{"id":"63","size":"800","name":"青海省","cp":[95.2402,35.4199],"childNum":8},"geometry":{"type":"Polygon","coordinates":[[[89.7363,36.0791],[89.9121,36.0791],[90,36.2549],[90.8789,36.0352],[91.0547,36.0791],[91.0547,36.5186],[90.791,36.6064],[90.7031,36.7822],[91.3184,37.0898],[91.0547,37.4414],[90.5273,37.8369],[90.6152,38.3203],[90.3516,38.2324],[90.1758,38.4961],[92.373,39.0234],[92.373,39.1113],[93.1641,39.1992],[93.1641,38.9795],[93.6914,38.9355],[93.8672,38.7158],[94.3066,38.7598],[94.5703,38.3643],[95.0098,38.4082],[95.4492,38.2764],[95.7129,38.3643],[96.2402,38.1006],[96.416,38.2324],[96.6797,38.1885],[96.6797,38.4521],[97.1191,38.584],[97.0313,39.1992],[98.1738,38.8037],[98.3496,39.0234],[98.6133,38.9355],[98.7891,39.0674],[99.1406,38.9355],[99.8438,38.3643],[100.1953,38.2764],[100.0195,38.4521],[100.1074,38.4961],[100.459,38.2764],[100.7227,38.2324],[101.1621,37.8369],[101.5137,37.8809],[101.7773,37.6172],[101.9531,37.7051],[102.1289,37.4414],[102.5684,37.1777],[102.4805,36.958],[102.6563,36.8262],[102.5684,36.7383],[102.832,36.3428],[103.0078,36.2549],[102.9199,36.0791],[102.9199,35.9033],[102.6563,35.7715],[102.832,35.5957],[102.4805,35.5957],[102.3047,35.4199],[102.3926,35.2002],[101.9531,34.8486],[101.9531,34.6289],[102.2168,34.4092],[102.1289,34.2773],[101.6895,34.1016],[100.9863,34.3652],[100.8105,34.2773],[101.25,33.6621],[101.5137,33.7061],[101.6016,33.5303],[101.7773,33.5303],[101.6895,33.3105],[101.7773,33.2227],[101.6016,33.1348],[101.1621,33.2227],[101.25,32.6953],[100.7227,32.6514],[100.7227,32.5195],[100.3711,32.7393],[100.1074,32.6514],[100.1074,32.8711],[99.8438,33.0029],[99.7559,32.7393],[99.2285,32.915],[99.2285,33.0469],[98.877,33.1787],[98.4375,34.0576],[97.8223,34.1895],[97.6465,34.1016],[97.7344,33.9258],[97.3828,33.8818],[97.4707,33.5742],[97.7344,33.3984],[97.3828,32.8711],[97.4707,32.6953],[97.7344,32.5195],[97.3828,32.5635],[97.2949,32.0801],[96.7676,31.9922],[96.8555,31.6846],[96.5039,31.7285],[96.2402,31.9482],[96.1523,31.5967],[95.9766,31.8164],[95.8008,31.6846],[95.4492,31.8164],[95.3613,31.9922],[95.3613,32.168],[95.2734,32.2119],[95.1855,32.3438],[95.0098,32.2998],[95.1855,32.4316],[94.6582,32.6074],[94.1309,32.4316],[93.7793,32.5635],[93.5156,32.4756],[92.9883,32.7393],[92.2852,32.7393],[92.1973,32.8271],[91.9336,32.8271],[91.4063,33.1348],[90.7031,33.1348],[90.0879,33.4863],[89.6484,34.0137],[89.8242,34.3652],[89.7363,34.6729],[89.8242,34.8486],[89.5605,34.8926],[89.4727,35.2441],[89.4727,35.376],[89.7363,35.4199],[89.7363,35.7715],[89.4727,35.9033],[89.3848,36.0352],[89.7363,36.0791]]]}},{"type":"Feature","properties":{"id":"51","size":"900","name":"四川省","cp":[101.9199,30.1904],"childNum":21},"geometry":{"type":"Polygon","coordinates":[[[101.7773,33.5303],[101.8652,33.5742],[101.9531,33.4424],[101.8652,33.0908],[102.4805,33.4424],[102.2168,33.9258],[102.9199,34.3213],[103.0957,34.1895],[103.1836,33.7939],[104.1504,33.6182],[104.2383,33.3984],[104.4141,33.3105],[104.3262,33.2227],[104.4141,33.0469],[104.3262,32.8711],[104.4141,32.7393],[105.2051,32.6074],[105.3809,32.7393],[105.3809,32.8711],[105.4688,32.915],[105.5566,32.7393],[106.084,32.8711],[106.084,32.7393],[106.3477,32.6514],[107.0508,32.6953],[107.1387,32.4756],[107.2266,32.4316],[107.4023,32.5195],[108.0176,32.168],[108.2813,32.2559],[108.5449,32.2119],[108.3691,32.168],[108.2813,31.9043],[108.5449,31.6846],[108.1934,31.5088],[107.9297,30.8496],[107.4902,30.8496],[107.4023,30.7617],[107.4902,30.6299],[107.0508,30.0146],[106.7871,30.0146],[106.6113,30.3223],[106.2598,30.1904],[105.8203,30.4541],[105.6445,30.2783],[105.5566,30.1025],[105.7324,29.8828],[105.293,29.5313],[105.4688,29.3115],[105.7324,29.2676],[105.8203,28.96],[106.2598,28.8721],[106.3477,28.5205],[105.9961,28.7402],[105.6445,28.4326],[105.9082,28.125],[106.1719,28.125],[106.3477,27.8174],[105.6445,27.6416],[105.5566,27.7734],[105.293,27.7295],[105.2051,27.9932],[105.0293,28.0811],[104.8535,27.9053],[104.4141,27.9492],[104.3262,28.0371],[104.4141,28.125],[104.4141,28.2568],[104.2383,28.4326],[104.4141,28.6084],[103.8867,28.6523],[103.7988,28.3008],[103.4473,28.125],[103.4473,27.7734],[102.9199,27.29],[103.0078,26.3672],[102.6563,26.1914],[102.5684,26.3672],[102.1289,26.1035],[101.8652,26.0596],[101.6016,26.2354],[101.6895,26.3672],[101.4258,26.5869],[101.4258,26.8066],[101.4258,26.7188],[101.1621,27.0264],[101.1621,27.1582],[100.7227,27.8613],[100.3711,27.8174],[100.2832,27.7295],[100.0195,28.125],[100.1953,28.3447],[99.668,28.8281],[99.4043,28.5205],[99.4043,28.1689],[99.2285,28.3008],[99.1406,29.2676],[98.9648,30.7617],[98.6133,31.2012],[98.877,31.4209],[98.4375,31.8604],[98.1738,32.3438],[97.7344,32.5195],[97.4707,32.6953],[97.3828,32.8711],[97.7344,33.3984],[97.4707,33.5742],[97.3828,33.8818],[97.7344,33.9258],[97.6465,34.1016],[97.8223,34.1895],[98.4375,34.0576],[98.877,33.1787],[99.2285,33.0469],[99.2285,32.915],[99.7559,32.7393],[99.8438,33.0029],[100.1074,32.8711],[100.1074,32.6514],[100.3711,32.7393],[100.7227,32.5195],[100.7227,32.6514],[101.25,32.6953],[101.1621,33.2227],[101.6016,33.1348],[101.7773,33.2227],[101.6895,33.3105],[101.7773,33.5303]]]}},{"type":"Feature","properties":{"id":"23","size":"700","name":"黑龙江省","cp":[126.1445,48.7156],"childNum":13},"geometry":{"type":"Polygon","coordinates":[[[121.4648,53.3496],[123.6621,53.5693],[124.8926,53.0859],[125.0684,53.2178],[125.5957,53.0859],[125.6836,52.9102],[126.123,52.7783],[126.0352,52.6025],[126.2109,52.5146],[126.3867,52.2949],[126.3867,52.207],[126.5625,52.1631],[126.4746,51.9434],[126.9141,51.3721],[126.8262,51.2842],[127.002,51.3281],[126.9141,51.1084],[127.2656,50.7568],[127.3535,50.2734],[127.6172,50.2295],[127.5293,49.8779],[127.793,49.6143],[128.7598,49.5703],[129.1113,49.3506],[129.4629,49.4385],[130.2539,48.8672],[130.6934,48.8672],[130.5176,48.6475],[130.8691,48.2959],[130.6934,48.1201],[131.0449,47.6807],[132.5391,47.7246],[132.627,47.9443],[133.0664,48.1201],[133.5059,48.1201],[134.209,48.3838],[135.0879,48.4277],[134.7363,48.252],[134.5605,47.9883],[134.7363,47.6807],[134.5605,47.4609],[134.3848,47.4609],[134.209,47.2852],[134.209,47.1533],[133.8574,46.5381],[133.9453,46.2744],[133.5059,45.835],[133.418,45.5713],[133.2422,45.5273],[133.0664,45.1318],[132.8906,45.0439],[131.9238,45.3516],[131.5723,45.0439],[131.0449,44.8682],[131.3086,44.0771],[131.2207,43.7256],[131.3086,43.4619],[130.8691,43.418],[130.5176,43.6377],[130.3418,43.9893],[129.9902,43.8574],[129.9023,44.0332],[129.8145,43.9014],[129.2871,43.8135],[129.1992,43.5938],[128.8477,43.5498],[128.4961,44.165],[128.4082,44.4727],[128.0566,44.3408],[128.0566,44.1211],[127.7051,44.1211],[127.5293,44.6045],[127.0898,44.6045],[127.002,44.7803],[127.0898,45],[126.9141,45.1318],[126.5625,45.2637],[126.0352,45.1758],[125.7715,45.3076],[125.6836,45.5273],[125.0684,45.3955],[124.8926,45.5273],[124.3652,45.4395],[124.0137,45.7471],[123.9258,46.2305],[123.2227,46.2305],[123.0469,46.582],[123.5742,46.6699],[123.5742,46.8896],[123.5742,46.8457],[123.4863,46.9775],[123.3984,46.9775],[123.3984,46.8896],[123.0469,46.7139],[122.4316,47.373],[124.2773,48.5156],[124.4531,48.1201],[124.8047,49.1309],[125.2441,49.1748],[125.1563,49.834],[125.332,50.1416],[125.7715,50.5371],[125.7715,50.7568],[126.0352,51.0205],[125.332,51.6357],[125.0684,51.6357],[124.8926,51.3721],[124.541,51.3721],[124.3652,51.2842],[123.6621,51.3721],[123.3105,51.2402],[122.959,51.3281],[122.6074,52.0752],[122.6953,52.251],[122.168,52.5146],[121.9922,52.2949],[121.7285,52.2949],[121.6406,52.4268],[121.2012,52.5586],[121.8164,53.042],[121.4648,53.3496]]]}},{"type":"Feature","properties":{"id":"62","size":"690","name":"甘肃省","cp":[99.7129,38.166],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[96.416,42.7148],[97.207,42.8027],[97.8223,41.748],[97.8223,41.6162],[97.4707,41.4844],[98.3496,40.9131],[98.3496,40.5615],[98.6133,40.6494],[98.5254,40.7373],[98.7891,40.6055],[98.9648,40.7813],[99.0527,40.6934],[99.2285,40.8691],[99.9316,41.001],[100.1953,40.6494],[100.1074,40.2539],[99.4922,39.8584],[100.0195,39.7705],[100.5469,39.4189],[100.8105,39.4189],[100.9863,38.9355],[101.25,39.0234],[101.3379,38.7598],[101.7773,38.6719],[102.041,38.8916],[101.8652,39.1113],[102.4805,39.2432],[103.0078,39.1113],[103.3594,39.3311],[104.0625,39.4189],[104.2383,38.9795],[103.4473,38.3643],[103.5352,38.1445],[103.3594,38.0127],[103.4473,37.8369],[104.3262,37.4414],[104.5898,37.4414],[104.5898,37.2217],[104.8535,37.2217],[105.293,36.8262],[105.2051,36.6943],[105.4688,36.123],[105.293,35.9912],[105.3809,35.7715],[105.7324,35.7275],[105.8203,35.5518],[105.9961,35.4639],[105.9082,35.4199],[105.9961,35.4199],[106.084,35.376],[106.2598,35.4199],[106.3477,35.2441],[106.5234,35.332],[106.4355,35.6836],[106.6992,35.6836],[106.9629,35.8154],[106.875,36.123],[106.5234,36.2549],[106.5234,36.4746],[106.4355,36.5625],[106.6113,36.7822],[106.6113,37.0898],[107.3145,37.0898],[107.3145,36.9141],[108.7207,36.3428],[108.6328,35.9912],[108.5449,35.8594],[108.6328,35.5518],[108.5449,35.2881],[107.7539,35.2881],[107.7539,35.1123],[107.8418,35.0244],[107.666,34.9365],[107.2266,34.8926],[106.9629,35.0684],[106.6113,35.0684],[106.5234,34.7607],[106.3477,34.585],[106.6992,34.3213],[106.5234,34.2773],[106.6113,34.1455],[106.4355,33.9258],[106.5234,33.5303],[105.9961,33.6182],[105.7324,33.3984],[105.9961,33.1787],[105.9082,33.0029],[105.4688,32.915],[105.3809,32.8711],[105.3809,32.7393],[105.2051,32.6074],[104.4141,32.7393],[104.3262,32.8711],[104.4141,33.0469],[104.3262,33.2227],[104.4141,33.3105],[104.2383,33.3984],[104.1504,33.6182],[103.1836,33.7939],[103.0957,34.1895],[102.9199,34.3213],[102.2168,33.9258],[102.4805,33.4424],[101.8652,33.0908],[101.9531,33.4424],[101.8652,33.5742],[101.7773,33.5303],[101.6016,33.5303],[101.5137,33.7061],[101.25,33.6621],[100.8105,34.2773],[100.9863,34.3652],[101.6895,34.1016],[102.1289,34.2773],[102.2168,34.4092],[101.9531,34.6289],[101.9531,34.8486],[102.3926,35.2002],[102.3047,35.4199],[102.4805,35.5957],[102.832,35.5957],[102.6563,35.7715],[102.9199,35.9033],[102.9199,36.0791],[103.0078,36.2549],[102.832,36.3428],[102.5684,36.7383],[102.6563,36.8262],[102.4805,36.958],[102.5684,37.1777],[102.1289,37.4414],[101.9531,37.7051],[101.7773,37.6172],[101.5137,37.8809],[101.1621,37.8369],[100.7227,38.2324],[100.459,38.2764],[100.1074,38.4961],[100.0195,38.4521],[100.1953,38.2764],[99.8438,38.3643],[99.1406,38.9355],[98.7891,39.0674],[98.6133,38.9355],[98.3496,39.0234],[98.1738,38.8037],[97.0313,39.1992],[97.1191,38.584],[96.6797,38.4521],[96.6797,38.1885],[96.416,38.2324],[96.2402,38.1006],[95.7129,38.3643],[95.4492,38.2764],[95.0098,38.4082],[94.5703,38.3643],[94.3066,38.7598],[93.8672,38.7158],[93.6914,38.9355],[93.1641,38.9795],[93.1641,39.1992],[92.373,39.1113],[92.373,39.3311],[92.6367,39.6387],[93.0762,40.6494],[93.8672,40.6934],[94.043,41.0889],[94.5703,41.4844],[95.1855,41.792],[95.2734,41.6162],[95.9766,41.9238],[96.2402,42.2314],[96.0645,42.3193],[95.9766,42.4951],[96.416,42.7148]]]}},{"type":"Feature","properties":{"id":"53","size":"1200","name":"云南省","cp":[101.0652,25.1807],"childNum":16},"geometry":{"type":"Polygon","coordinates":[[[98.1738,28.125],[98.2617,28.3887],[98.3496,28.125],[98.7012,28.2129],[98.7891,28.3447],[98.6133,28.5205],[98.7012,28.916],[98.7891,29.0039],[98.7891,28.8721],[98.9648,28.8281],[98.9648,29.1357],[99.1406,29.2676],[99.2285,28.3008],[99.4043,28.1689],[99.4043,28.5205],[99.668,28.8281],[100.1953,28.3447],[100.0195,28.125],[100.2832,27.7295],[100.3711,27.8174],[100.7227,27.8613],[101.1621,27.1582],[101.1621,27.0264],[101.4258,26.7188],[101.4258,26.8066],[101.4258,26.5869],[101.6895,26.3672],[101.6016,26.2354],[101.8652,26.0596],[102.1289,26.1035],[102.5684,26.3672],[102.6563,26.1914],[103.0078,26.3672],[102.9199,27.29],[103.4473,27.7734],[103.4473,28.125],[103.7988,28.3008],[103.8867,28.6523],[104.4141,28.6084],[104.2383,28.4326],[104.4141,28.2568],[104.4141,28.125],[104.3262,28.0371],[104.4141,27.9492],[104.8535,27.9053],[105.0293,28.0811],[105.2051,27.9932],[105.293,27.7295],[105.2051,27.3779],[104.5898,27.334],[104.4141,27.4658],[104.1504,27.2461],[103.8867,27.4219],[103.623,27.0264],[103.7109,26.9824],[103.7109,26.7627],[103.8867,26.543],[104.4141,26.6748],[104.6777,26.4111],[104.3262,25.708],[104.8535,25.2246],[104.5898,25.0488],[104.6777,24.9609],[104.502,24.7412],[104.6777,24.3457],[104.7656,24.4775],[105.0293,24.4336],[105.2051,24.082],[105.4688,24.0381],[105.5566,24.126],[105.9961,24.126],[106.1719,23.8184],[106.1719,23.5547],[105.6445,23.4229],[105.5566,23.2031],[105.293,23.3789],[104.8535,23.1592],[104.7656,22.8516],[104.3262,22.6758],[104.1504,22.8076],[103.9746,22.5439],[103.623,22.7637],[103.5352,22.5879],[103.3594,22.8076],[103.0957,22.4561],[102.4805,22.7637],[102.3047,22.4121],[101.8652,22.3682],[101.7773,22.5],[101.6016,22.1924],[101.8652,21.6211],[101.7773,21.1377],[101.6016,21.2256],[101.25,21.1816],[101.1621,21.7529],[100.6348,21.4453],[100.1074,21.4893],[99.9316,22.0605],[99.2285,22.1484],[99.4043,22.5879],[99.3164,22.7197],[99.4922,23.0713],[98.877,23.2031],[98.7012,23.9502],[98.877,24.126],[98.1738,24.082],[97.7344,23.8623],[97.5586,23.9063],[97.7344,24.126],[97.6465,24.4336],[97.5586,24.4336],[97.5586,24.7412],[97.7344,24.8291],[97.8223,25.2686],[98.1738,25.4004],[98.1738,25.6201],[98.3496,25.5762],[98.5254,25.8398],[98.7012,25.8838],[98.6133,26.0596],[98.7012,26.1475],[98.7891,26.5869],[98.7012,27.5098],[98.5254,27.6416],[98.3496,27.5098],[98.1738,28.125]]]}},{"type":"Feature","properties":{"id":"45","size":"1450","name":"广西壮族自治区","cp":[107.7813,23.6426],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[104.502,24.7412],[104.6777,24.6094],[105.2051,24.9609],[105.9961,24.6533],[106.1719,24.7852],[106.1719,24.9609],[106.875,25.1807],[107.0508,25.2686],[106.9629,25.4883],[107.2266,25.6201],[107.4902,25.2246],[107.7539,25.2246],[107.8418,25.1367],[108.1055,25.2246],[108.1934,25.4443],[108.3691,25.5322],[108.6328,25.3125],[108.6328,25.5762],[109.0723,25.5322],[108.9844,25.752],[109.3359,25.708],[109.5117,26.0156],[109.7754,25.8838],[109.9512,26.1914],[110.2148,25.9717],[110.5664,26.3232],[111.1816,26.3232],[111.2695,26.2354],[111.2695,25.8838],[111.4453,25.8398],[111.0059,25.0049],[111.0938,24.9609],[111.3574,25.1367],[111.5332,24.6533],[111.709,24.7852],[112.0605,24.7412],[111.8848,24.6533],[112.0605,24.3457],[111.8848,24.2139],[111.8848,23.9941],[111.7969,23.8184],[111.6211,23.8184],[111.6211,23.6865],[111.3574,23.4668],[111.4453,23.0273],[111.2695,22.8076],[110.7422,22.5439],[110.7422,22.2803],[110.6543,22.1484],[110.3027,22.1484],[110.3027,21.8848],[109.9512,21.8408],[109.8633,21.665],[109.7754,21.6211],[109.7754,21.4014],[109.5996,21.4453],[109.1602,21.3574],[109.248,20.874],[109.0723,20.9619],[109.0723,21.5332],[108.7207,21.5332],[108.6328,21.665],[108.2813,21.4893],[107.8418,21.6211],[107.4023,21.6211],[107.0508,21.7969],[107.0508,21.9287],[106.6992,22.0166],[106.6113,22.4121],[106.7871,22.7637],[106.6992,22.8955],[105.9082,22.9395],[105.5566,23.0713],[105.5566,23.2031],[105.6445,23.4229],[106.1719,23.5547],[106.1719,23.8184],[105.9961,24.126],[105.5566,24.126],[105.4688,24.0381],[105.2051,24.082],[105.0293,24.4336],[104.7656,24.4775],[104.6777,24.3457],[104.502,24.7412]]]}},{"type":"Feature","properties":{"id":"43","size":"1700","name":"湖南省","cp":[111.5332,27.3779],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[109.248,28.4766],[109.248,29.1357],[109.5117,29.6191],[109.6875,29.6191],[109.7754,29.751],[110.4785,29.6631],[110.6543,29.751],[110.4785,30.0146],[110.8301,30.1465],[111.7969,29.9268],[112.2363,29.5313],[112.5,29.6191],[112.6758,29.5752],[112.9395,29.7949],[113.0273,29.751],[112.9395,29.4873],[113.0273,29.4434],[113.5547,29.8389],[113.5547,29.707],[113.7305,29.5752],[113.6426,29.3115],[113.7305,29.0918],[113.9063,29.0479],[114.1699,28.8281],[114.082,28.5645],[114.2578,28.3447],[113.7305,27.9492],[113.6426,27.5977],[113.6426,27.3779],[113.8184,27.29],[113.7305,27.1143],[113.9063,26.9385],[113.9063,26.6309],[114.082,26.5869],[113.9941,26.1914],[114.2578,26.1475],[113.9941,26.0596],[113.9063,25.4443],[113.6426,25.3125],[113.2031,25.5322],[112.8516,25.3564],[113.0273,25.2246],[113.0273,24.9609],[112.8516,24.917],[112.5879,25.1367],[112.2363,25.1807],[112.1484,24.873],[112.0605,24.7412],[111.709,24.7852],[111.5332,24.6533],[111.3574,25.1367],[111.0938,24.9609],[111.0059,25.0049],[111.4453,25.8398],[111.2695,25.8838],[111.2695,26.2354],[111.1816,26.3232],[110.5664,26.3232],[110.2148,25.9717],[109.9512,26.1914],[109.7754,25.8838],[109.5117,26.0156],[109.4238,26.2793],[109.248,26.3232],[109.4238,26.5869],[109.3359,26.7188],[109.5117,26.8066],[109.5117,27.0264],[109.3359,27.1582],[108.8965,27.0264],[108.8086,27.1143],[109.4238,27.5977],[109.3359,27.9053],[109.3359,28.2568],[109.248,28.4766]]]}},{"type":"Feature","properties":{"id":"61","size":"1150","name":"陕西省","cp":[109.5996,35.7396],"childNum":10},"geometry":{"type":"Polygon","coordinates":[[[105.4688,32.915],[105.9082,33.0029],[105.9961,33.1787],[105.7324,33.3984],[105.9961,33.6182],[106.5234,33.5303],[106.4355,33.9258],[106.6113,34.1455],[106.5234,34.2773],[106.6992,34.3213],[106.3477,34.585],[106.5234,34.7607],[106.6113,35.0684],[106.9629,35.0684],[107.2266,34.8926],[107.666,34.9365],[107.8418,35.0244],[107.7539,35.1123],[107.7539,35.2881],[108.5449,35.2881],[108.6328,35.5518],[108.5449,35.8594],[108.6328,35.9912],[108.7207,36.3428],[107.3145,36.9141],[107.3145,37.0898],[107.3145,37.6172],[107.666,37.8809],[108.1934,37.6172],[108.7207,37.7051],[108.8086,38.0127],[108.8965,37.9688],[109.0723,38.0127],[108.9844,38.3203],[109.9512,39.1553],[109.8633,39.2432],[110.2148,39.2871],[110.127,39.4629],[110.6543,39.2871],[111.0938,39.5947],[111.0938,39.375],[111.1816,39.2432],[110.918,38.7158],[110.8301,38.4961],[110.4785,38.1885],[110.4785,37.9688],[110.8301,37.6611],[110.3906,37.002],[110.4785,36.123],[110.5664,35.6396],[110.2148,34.8926],[110.2148,34.6729],[110.3906,34.585],[110.4785,34.2334],[110.6543,34.1455],[110.6543,33.8379],[111.0059,33.5303],[111.0059,33.2666],[110.7422,33.1348],[110.5664,33.2666],[110.3027,33.1787],[109.5996,33.2666],[109.4238,33.1348],[109.7754,33.0469],[109.7754,32.915],[110.127,32.7393],[110.127,32.6074],[109.6875,32.6074],[109.5117,32.4316],[109.5996,31.7285],[109.248,31.7285],[109.0723,31.9482],[108.5449,32.2119],[108.2813,32.2559],[108.0176,32.168],[107.4023,32.5195],[107.2266,32.4316],[107.1387,32.4756],[107.0508,32.6953],[106.3477,32.6514],[106.084,32.7393],[106.084,32.8711],[105.5566,32.7393],[105.4688,32.915]]]}},{"type":"Feature","properties":{"id":"44","size":"1600","name":"广东省","cp":[113.4668,22.8076],"childNum":21},"geometry":{"type":"Polygon","coordinates":[[[109.7754,21.4014],[109.7754,21.6211],[109.8633,21.665],[109.9512,21.8408],[110.3027,21.8848],[110.3027,22.1484],[110.6543,22.1484],[110.7422,22.2803],[110.7422,22.5439],[111.2695,22.8076],[111.4453,23.0273],[111.3574,23.4668],[111.6211,23.6865],[111.6211,23.8184],[111.7969,23.8184],[111.8848,23.9941],[111.8848,24.2139],[112.0605,24.3457],[111.8848,24.6533],[112.0605,24.7412],[112.1484,24.873],[112.2363,25.1807],[112.5879,25.1367],[112.8516,24.917],[113.0273,24.9609],[113.0273,25.2246],[112.8516,25.3564],[113.2031,25.5322],[113.6426,25.3125],[113.9063,25.4443],[113.9941,25.2686],[114.6094,25.4004],[114.7852,25.2686],[114.6973,25.1367],[114.4336,24.9609],[114.1699,24.6973],[114.4336,24.5215],[115.4004,24.7852],[115.8398,24.5654],[115.752,24.7852],[115.9277,24.917],[116.2793,24.7852],[116.3672,24.873],[116.543,24.6094],[116.7188,24.6533],[116.9824,24.1699],[116.9824,23.9063],[117.1582,23.5547],[117.334,23.2471],[116.8945,23.3789],[116.6309,23.1152],[116.543,22.8516],[115.9277,22.7197],[115.6641,22.7637],[115.5762,22.6318],[115.0488,22.6758],[114.6094,22.3682],[114.3457,22.5439],[113.9941,22.5],[113.8184,22.1924],[114.3457,22.1484],[114.4336,22.0166],[114.082,21.9287],[113.9941,21.7969],[113.5547,22.0166],[113.1152,21.8408],[112.9395,21.5771],[112.4121,21.4453],[112.2363,21.5332],[111.5332,21.4893],[111.2695,21.3574],[110.7422,21.3574],[110.6543,21.2256],[110.7422,20.918],[110.4785,20.874],[110.6543,20.2588],[110.5664,20.2588],[110.3906,20.127],[110.0391,20.127],[109.8633,20.127],[109.8633,20.3027],[109.5996,20.918],[109.7754,21.4014],[109.7754,21.4014]],[[113.5986,22.1649],[113.6096,22.1265],[113.5547,22.11],[113.5437,22.2034],[113.5767,22.2034],[113.5986,22.1649]]]}},{"type":"Feature","properties":{"id":"22","size":"1120","name":"吉林省","cp":[125.7746,43.5938],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[123.2227,46.2305],[123.9258,46.2305],[124.0137,45.7471],[124.3652,45.4395],[124.8926,45.5273],[125.0684,45.3955],[125.6836,45.5273],[125.7715,45.3076],[126.0352,45.1758],[126.5625,45.2637],[126.9141,45.1318],[127.0898,45],[127.002,44.7803],[127.0898,44.6045],[127.5293,44.6045],[127.7051,44.1211],[128.0566,44.1211],[128.0566,44.3408],[128.4082,44.4727],[128.4961,44.165],[128.8477,43.5498],[129.1992,43.5938],[129.2871,43.8135],[129.8145,43.9014],[129.9023,44.0332],[129.9902,43.8574],[130.3418,43.9893],[130.5176,43.6377],[130.8691,43.418],[131.3086,43.4619],[131.3086,43.3301],[131.1328,42.9346],[130.4297,42.7148],[130.6055,42.6709],[130.6055,42.4512],[130.2539,42.7588],[130.2539,42.8906],[130.166,42.9785],[129.9023,43.0225],[129.7266,42.4951],[129.375,42.4512],[128.9355,42.0117],[128.0566,42.0117],[128.3203,41.5723],[128.1445,41.3525],[127.0898,41.5283],[127.1777,41.5723],[126.9141,41.792],[126.6504,41.6602],[126.4746,41.3965],[126.123,40.957],[125.6836,40.8691],[125.5957,40.9131],[125.7715,41.2207],[125.332,41.6602],[125.332,41.9678],[125.4199,42.0996],[125.332,42.1436],[124.8926,42.8027],[124.8926,43.0664],[124.7168,43.0664],[124.4531,42.8467],[124.2773,43.2422],[123.8379,43.4619],[123.6621,43.374],[123.3105,43.5059],[123.4863,43.7256],[123.1348,44.4727],[122.3438,44.2529],[122.0801,44.8682],[122.2559,45.2637],[121.9043,45.7031],[121.7285,45.7471],[121.8164,46.0107],[122.2559,45.791],[122.4316,45.8789],[122.6953,45.7031],[122.7832,46.0107],[123.2227,46.2305]]]}},{"type":"Feature","properties":{"id":"13","size":"1300","name":"河北省","cp":[115.4004,39.4688],"childNum":11},"geometry":{"type":"MultiPolygon","coordinates":[[[[114.5215,39.5068],[114.3457,39.8584],[113.9941,39.9902],[114.5215,40.3418],[114.3457,40.3857],[114.2578,40.6055],[114.082,40.7373],[113.9063,41.1328],[113.9941,41.2207],[113.9063,41.4404],[114.2578,41.5723],[114.1699,41.792],[114.5215,42.1436],[114.873,42.0996],[114.9609,41.6162],[115.2246,41.5723],[115.9277,41.9238],[116.0156,41.792],[116.2793,42.0117],[116.8066,42.0117],[116.8945,42.4072],[117.334,42.4512],[117.5098,42.583],[117.7734,42.627],[118.0371,42.4072],[117.9492,42.2314],[118.125,42.0557],[118.3008,42.0996],[118.3008,41.792],[118.125,41.748],[118.3887,41.3086],[119.2676,41.3086],[118.8281,40.8252],[119.2676,40.5176],[119.5313,40.5615],[119.707,40.1221],[119.8828,39.9463],[119.5313,39.6826],[119.4434,39.4189],[118.916,39.0674],[118.4766,38.9355],[118.125,39.0234],[118.0371,39.1992],[118.0371,39.2432],[117.8613,39.4189],[117.9492,39.5947],[117.6855,39.5947],[117.5098,39.7705],[117.5098,39.9902],[117.6855,39.9902],[117.6855,40.0781],[117.4219,40.21],[117.2461,40.5176],[117.4219,40.6494],[116.9824,40.6934],[116.6309,41.0449],[116.3672,40.9131],[116.4551,40.7813],[116.1914,40.7813],[116.1035,40.6055],[115.752,40.5615],[115.9277,40.2539],[115.4004,39.9463],[115.4883,39.6387],[115.752,39.5068],[116.1914,39.5947],[116.3672,39.4629],[116.543,39.5947],[116.8066,39.5947],[116.8945,39.1113],[116.7188,38.9355],[116.7188,38.8037],[117.2461,38.54],[117.5977,38.6279],[117.9492,38.3203],[117.4219,37.8369],[116.8066,37.8369],[116.4551,37.4854],[116.2793,37.5732],[116.2793,37.3535],[116.0156,37.3535],[115.752,36.9141],[115.3125,36.5186],[115.4883,36.167],[115.3125,36.0791],[115.1367,36.2109],[114.9609,36.0791],[114.873,36.123],[113.7305,36.3428],[113.4668,36.6504],[113.7305,36.8701],[113.7305,37.1338],[114.1699,37.6611],[113.9941,37.7051],[113.8184,38.1445],[113.5547,38.2764],[113.5547,38.54],[113.8184,38.8037],[113.8184,38.9355],[113.9063,39.0234],[114.3457,39.0674],[114.5215,39.5068]]],[[[117.2461,40.0781],[117.1582,39.8145],[117.1582,39.6387],[116.8945,39.6826],[116.8945,39.8145],[116.8066,39.9902],[117.2461,40.0781]]]]}},{"type":"Feature","properties":{"id":"42","size":"1500","name":"湖北省","cp":[112.2363,31.1572],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[110.2148,31.1572],[110.127,31.377],[109.6875,31.5527],[109.7754,31.6846],[109.5996,31.7285],[109.5117,32.4316],[109.6875,32.6074],[110.127,32.6074],[110.127,32.7393],[109.7754,32.915],[109.7754,33.0469],[109.4238,33.1348],[109.5996,33.2666],[110.3027,33.1787],[110.5664,33.2666],[110.7422,33.1348],[111.0059,33.2666],[111.5332,32.6074],[112.3242,32.3438],[113.2031,32.4316],[113.4668,32.2998],[113.7305,32.4316],[113.8184,31.8604],[113.9941,31.7725],[114.1699,31.8604],[114.5215,31.7725],[114.6094,31.5527],[114.7852,31.4648],[115.1367,31.5967],[115.2246,31.4209],[115.4004,31.4209],[115.5762,31.2012],[116.0156,31.0254],[115.752,30.6738],[116.1035,30.1904],[116.1035,29.8389],[115.9277,29.707],[115.4883,29.7949],[114.873,29.3994],[114.2578,29.3555],[113.9063,29.0479],[113.7305,29.0918],[113.6426,29.3115],[113.7305,29.5752],[113.5547,29.707],[113.5547,29.8389],[113.0273,29.4434],[112.9395,29.4873],[113.0273,29.751],[112.9395,29.7949],[112.6758,29.5752],[112.5,29.6191],[112.2363,29.5313],[111.7969,29.9268],[110.8301,30.1465],[110.4785,30.0146],[110.6543,29.751],[110.4785,29.6631],[109.7754,29.751],[109.6875,29.6191],[109.5117,29.6191],[109.248,29.1357],[109.0723,29.3555],[108.9844,29.3115],[108.6328,29.8389],[108.457,29.7949],[108.5449,30.2344],[108.457,30.4102],[108.6328,30.5859],[108.8086,30.498],[109.0723,30.6299],[109.1602,30.542],[109.248,30.6299],[109.4238,30.542],[109.8633,30.8936],[110.0391,30.8057],[110.2148,31.1572]]]}},{"type":"Feature","properties":{"id":"52","size":"2000","name":"贵州省","cp":[106.6113,26.9385],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[104.1504,27.2461],[104.4141,27.4658],[104.5898,27.334],[105.2051,27.3779],[105.293,27.7295],[105.5566,27.7734],[105.6445,27.6416],[106.3477,27.8174],[106.1719,28.125],[105.9082,28.125],[105.6445,28.4326],[105.9961,28.7402],[106.3477,28.5205],[106.5234,28.5645],[106.4355,28.7842],[106.5234,28.7842],[106.6113,28.6523],[106.6113,28.5205],[106.6992,28.4766],[106.875,28.7842],[107.4023,28.8721],[107.4023,29.1797],[107.5781,29.2236],[107.8418,29.1357],[107.8418,29.0039],[108.2813,29.0918],[108.3691,28.6523],[108.5449,28.6523],[108.5449,28.3887],[108.7207,28.4766],[108.7207,28.2129],[109.0723,28.2129],[109.248,28.4766],[109.3359,28.2568],[109.3359,27.9053],[109.4238,27.5977],[108.8086,27.1143],[108.8965,27.0264],[109.3359,27.1582],[109.5117,27.0264],[109.5117,26.8066],[109.3359,26.7188],[109.4238,26.5869],[109.248,26.3232],[109.4238,26.2793],[109.5117,26.0156],[109.3359,25.708],[108.9844,25.752],[109.0723,25.5322],[108.6328,25.5762],[108.6328,25.3125],[108.3691,25.5322],[108.1934,25.4443],[108.1055,25.2246],[107.8418,25.1367],[107.7539,25.2246],[107.4902,25.2246],[107.2266,25.6201],[106.9629,25.4883],[107.0508,25.2686],[106.875,25.1807],[106.1719,24.9609],[106.1719,24.7852],[105.9961,24.6533],[105.2051,24.9609],[104.6777,24.6094],[104.502,24.7412],[104.6777,24.9609],[104.5898,25.0488],[104.8535,25.2246],[104.3262,25.708],[104.6777,26.4111],[104.4141,26.6748],[103.8867,26.543],[103.7109,26.7627],[103.7109,26.9824],[103.623,27.0264],[103.8867,27.4219],[104.1504,27.2461]]]}},{"type":"Feature","properties":{"id":"37","size":"1500","name":"山东省","cp":[118.7402,36.4307],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[115.4883,36.167],[115.3125,36.5186],[115.752,36.9141],[116.0156,37.3535],[116.2793,37.3535],[116.2793,37.5732],[116.4551,37.4854],[116.8066,37.8369],[117.4219,37.8369],[117.9492,38.3203],[118.125,38.1445],[118.916,38.1445],[119.3555,37.6611],[119.0039,37.5293],[119.0039,37.3535],[119.3555,37.1338],[119.707,37.1338],[119.8828,37.3975],[120.498,37.8369],[120.5859,38.1445],[120.9375,38.4521],[121.0254,37.8369],[121.2012,37.6611],[121.9043,37.4854],[122.168,37.6172],[122.2559,37.4854],[122.6074,37.4854],[122.6953,37.3535],[122.6074,36.9141],[122.4316,36.7822],[121.8164,36.8701],[121.7285,36.6943],[121.1133,36.6064],[121.1133,36.4307],[121.377,36.2549],[120.7617,36.167],[120.9375,35.8594],[120.6738,36.0352],[119.707,35.4639],[119.9707,34.9805],[119.3555,35.0244],[119.2676,35.1123],[118.916,35.0244],[118.7402,34.7168],[118.4766,34.6729],[118.3887,34.4092],[118.2129,34.4092],[118.125,34.6289],[117.9492,34.6729],[117.5977,34.4531],[117.334,34.585],[117.2461,34.4531],[116.8066,34.9365],[116.4551,34.8926],[116.3672,34.6289],[116.1914,34.585],[115.5762,34.585],[115.4004,34.8486],[114.7852,35.0684],[115.0488,35.376],[115.2246,35.4199],[115.4883,35.7275],[116.1035,36.0791],[115.3125,35.8154],[115.4883,36.167]]]}},{"type":"Feature","properties":{"id":"36","size":"1700","name":"江西省","cp":[116.0156,27.29],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[114.2578,28.3447],[114.082,28.5645],[114.1699,28.8281],[113.9063,29.0479],[114.2578,29.3555],[114.873,29.3994],[115.4883,29.7949],[115.9277,29.707],[116.1035,29.8389],[116.2793,29.7949],[116.7188,30.0586],[116.8945,29.9268],[116.7188,29.751],[116.7188,29.6191],[117.1582,29.707],[117.0703,29.8389],[117.1582,29.9268],[117.5098,29.6191],[118.0371,29.5752],[118.2129,29.3994],[118.0371,29.1797],[118.0371,29.0479],[118.3887,28.7842],[118.4766,28.3447],[118.4766,28.3008],[118.3008,28.0811],[117.7734,27.8174],[117.5098,27.9932],[116.9824,27.6416],[117.1582,27.29],[117.0703,27.1143],[116.543,26.8066],[116.6309,26.4551],[116.3672,26.2354],[116.4551,26.1035],[116.1914,25.8838],[116.0156,25.2686],[115.8398,25.2246],[115.9277,24.917],[115.752,24.7852],[115.8398,24.5654],[115.4004,24.7852],[114.4336,24.5215],[114.1699,24.6973],[114.4336,24.9609],[114.6973,25.1367],[114.7852,25.2686],[114.6094,25.4004],[113.9941,25.2686],[113.9063,25.4443],[113.9941,26.0596],[114.2578,26.1475],[113.9941,26.1914],[114.082,26.5869],[113.9063,26.6309],[113.9063,26.9385],[113.7305,27.1143],[113.8184,27.29],[113.6426,27.3779],[113.6426,27.5977],[113.7305,27.9492],[114.2578,28.3447]]]}},{"type":"Feature","properties":{"id":"41","size":"1700","name":"河南省","cp":[113.0668,33.8818],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[110.3906,34.585],[110.8301,34.6289],[111.1816,34.8047],[111.5332,34.8486],[111.7969,35.0684],[112.0605,35.0684],[112.0605,35.2881],[112.7637,35.2002],[113.1152,35.332],[113.6426,35.6836],[113.7305,36.3428],[114.873,36.123],[114.9609,36.0791],[115.1367,36.2109],[115.3125,36.0791],[115.4883,36.167],[115.3125,35.8154],[116.1035,36.0791],[115.4883,35.7275],[115.2246,35.4199],[115.0488,35.376],[114.7852,35.0684],[115.4004,34.8486],[115.5762,34.585],[116.1914,34.585],[116.1914,34.4092],[116.543,34.2773],[116.6309,33.9258],[116.1914,33.7061],[116.0156,33.9697],[115.6641,34.0576],[115.5762,33.9258],[115.5762,33.6621],[115.4004,33.5303],[115.3125,33.1787],[114.873,33.1348],[114.873,33.0029],[115.1367,32.8711],[115.2246,32.6074],[115.5762,32.4316],[115.8398,32.5195],[115.9277,31.7725],[115.4883,31.6846],[115.4004,31.4209],[115.2246,31.4209],[115.1367,31.5967],[114.7852,31.4648],[114.6094,31.5527],[114.5215,31.7725],[114.1699,31.8604],[113.9941,31.7725],[113.8184,31.8604],[113.7305,32.4316],[113.4668,32.2998],[113.2031,32.4316],[112.3242,32.3438],[111.5332,32.6074],[111.0059,33.2666],[111.0059,33.5303],[110.6543,33.8379],[110.6543,34.1455],[110.4785,34.2334],[110.3906,34.585]]]}},{"type":"Feature","properties":{"id":"21","size":"1500","name":"辽宁省","cp":[122.0438,41.0889],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[119.2676,41.3086],[119.4434,41.6162],[119.2676,41.7041],[119.3555,42.2754],[119.5313,42.3633],[119.8828,42.1875],[120.1465,41.7041],[120.498,42.0996],[121.4648,42.4951],[121.7285,42.4512],[121.9922,42.7148],[122.3438,42.6709],[122.3438,42.8467],[122.7832,42.7148],[123.1348,42.8027],[123.3105,42.9785],[123.5742,43.0225],[123.6621,43.374],[123.8379,43.4619],[124.2773,43.2422],[124.4531,42.8467],[124.7168,43.0664],[124.8926,43.0664],[124.8926,42.8027],[125.332,42.1436],[125.4199,42.0996],[125.332,41.9678],[125.332,41.6602],[125.7715,41.2207],[125.5957,40.9131],[125.6836,40.8691],[124.541,40.21],[124.1016,39.6826],[123.3984,39.6826],[123.1348,39.4189],[123.1348,39.0234],[122.0801,39.0234],[121.5527,38.7158],[121.1133,38.6719],[120.9375,38.9795],[121.377,39.1992],[121.2012,39.5508],[122.0801,40.3857],[121.9922,40.6934],[121.7285,40.8252],[121.2012,40.8252],[120.5859,40.21],[119.8828,39.9463],[119.707,40.1221],[119.5313,40.5615],[119.2676,40.5176],[118.8281,40.8252],[119.2676,41.3086]]]}},{"type":"Feature","properties":{"id":"14","size":"1450","name":"山西省","cp":[112.4121,37.6611],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[110.918,38.7158],[111.1816,39.2432],[111.0938,39.375],[111.3574,39.4189],[111.4453,39.6387],[111.9727,39.5947],[112.3242,40.2539],[112.7637,40.166],[113.2031,40.3857],[113.5547,40.3418],[113.8184,40.5176],[114.082,40.5176],[114.082,40.7373],[114.2578,40.6055],[114.3457,40.3857],[114.5215,40.3418],[113.9941,39.9902],[114.3457,39.8584],[114.5215,39.5068],[114.3457,39.0674],[113.9063,39.0234],[113.8184,38.9355],[113.8184,38.8037],[113.5547,38.54],[113.5547,38.2764],[113.8184,38.1445],[113.9941,37.7051],[114.1699,37.6611],[113.7305,37.1338],[113.7305,36.8701],[113.4668,36.6504],[113.7305,36.3428],[113.6426,35.6836],[113.1152,35.332],[112.7637,35.2002],[112.0605,35.2881],[112.0605,35.0684],[111.7969,35.0684],[111.5332,34.8486],[111.1816,34.8047],[110.8301,34.6289],[110.3906,34.585],[110.2148,34.6729],[110.2148,34.8926],[110.5664,35.6396],[110.4785,36.123],[110.3906,37.002],[110.8301,37.6611],[110.4785,37.9688],[110.4785,38.1885],[110.8301,38.4961],[110.918,38.7158]]]}},{"type":"Feature","properties":{"id":"34","size":"1700","name":"安徽省","cp":[117.2461,32.0361],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[116.6309,33.9258],[116.543,34.2773],[116.1914,34.4092],[116.1914,34.585],[116.3672,34.6289],[116.8945,34.4092],[117.1582,34.0576],[117.5977,34.0137],[117.7734,33.7061],[118.125,33.75],[117.9492,33.2227],[118.0371,33.1348],[118.2129,33.2227],[118.3008,32.7832],[118.7402,32.7393],[118.916,32.959],[119.1797,32.8271],[119.1797,32.4756],[118.5645,32.5635],[118.6523,32.2119],[118.4766,32.168],[118.3887,31.9482],[118.916,31.5527],[118.7402,31.377],[118.8281,31.2451],[119.3555,31.2891],[119.4434,31.1572],[119.6191,31.1133],[119.6191,31.0693],[119.4434,30.6738],[119.2676,30.6299],[119.3555,30.4102],[118.916,30.3223],[118.916,29.9707],[118.7402,29.707],[118.2129,29.3994],[118.0371,29.5752],[117.5098,29.6191],[117.1582,29.9268],[117.0703,29.8389],[117.1582,29.707],[116.7188,29.6191],[116.7188,29.751],[116.8945,29.9268],[116.7188,30.0586],[116.2793,29.7949],[116.1035,29.8389],[116.1035,30.1904],[115.752,30.6738],[116.0156,31.0254],[115.5762,31.2012],[115.4004,31.4209],[115.4883,31.6846],[115.9277,31.7725],[115.8398,32.5195],[115.5762,32.4316],[115.2246,32.6074],[115.1367,32.8711],[114.873,33.0029],[114.873,33.1348],[115.3125,33.1787],[115.4004,33.5303],[115.5762,33.6621],[115.5762,33.9258],[115.6641,34.0576],[116.0156,33.9697],[116.1914,33.7061],[116.6309,33.9258]]]}},{"type":"Feature","properties":{"id":"35","size":"2000","name":"福建省","cp":[118.3008,25.9277],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[118.4766,28.3008],[118.8281,28.2568],[118.7402,28.0371],[118.916,27.4658],[119.2676,27.4219],[119.6191,27.6855],[119.7949,27.29],[120.2344,27.4219],[120.4102,27.1582],[120.7617,27.0264],[120.6738,26.8945],[120.2344,26.8506],[120.2344,26.7188],[120.4102,26.6748],[120.498,26.3672],[120.2344,26.2793],[120.4102,26.1475],[120.0586,26.1914],[119.9707,25.9277],[119.7949,25.9277],[119.9707,25.4004],[119.7949,25.2686],[119.5313,25.1367],[119.4434,25.0049],[119.2676,25.0928],[118.916,24.8291],[118.6523,24.5215],[118.4766,24.5215],[118.4766,24.4336],[118.2129,24.3457],[118.2129,24.1699],[117.8613,23.9941],[117.7734,23.7744],[117.5098,23.5986],[117.1582,23.5547],[116.9824,23.9063],[116.9824,24.1699],[116.7188,24.6533],[116.543,24.6094],[116.3672,24.873],[116.2793,24.7852],[115.9277,24.917],[115.8398,25.2246],[116.0156,25.2686],[116.1914,25.8838],[116.4551,26.1035],[116.3672,26.2354],[116.6309,26.4551],[116.543,26.8066],[117.0703,27.1143],[117.1582,27.29],[116.9824,27.6416],[117.5098,27.9932],[117.7734,27.8174],[118.3008,28.0811],[118.4766,28.3008]]]}},{"type":"Feature","properties":{"id":"33","size":"2100","name":"浙江省","cp":[120.498,29.0918],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[118.2129,29.3994],[118.7402,29.707],[118.916,29.9707],[118.916,30.3223],[119.3555,30.4102],[119.2676,30.6299],[119.4434,30.6738],[119.6191,31.0693],[119.6191,31.1133],[119.9707,31.1572],[120.498,30.8057],[120.9375,31.0254],[121.2891,30.6738],[121.9922,30.8057],[122.6953,30.8936],[122.8711,30.7178],[122.959,30.1465],[122.6074,30.1025],[122.6074,29.9268],[122.168,29.5313],[122.3438,28.8721],[121.9922,28.8721],[121.9922,28.4326],[121.7285,28.3447],[121.7285,28.2129],[121.4648,28.2129],[121.5527,28.0371],[121.2891,27.9492],[121.1133,27.4219],[120.6738,27.334],[120.6738,27.1582],[120.9375,27.0264],[120.7617,27.0264],[120.4102,27.1582],[120.2344,27.4219],[119.7949,27.29],[119.6191,27.6855],[119.2676,27.4219],[118.916,27.4658],[118.7402,28.0371],[118.8281,28.2568],[118.4766,28.3008],[118.4766,28.3447],[118.3887,28.7842],[118.0371,29.0479],[118.0371,29.1797],[118.2129,29.3994]]]}},{"type":"Feature","properties":{"id":"32","size":"1950","name":"江苏省","cp":[118.8586,32.915],"childNum":13},"geometry":{"type":"Polygon","coordinates":[[[116.3672,34.6289],[116.4551,34.8926],[116.8066,34.9365],[117.2461,34.4531],[117.334,34.585],[117.5977,34.4531],[117.9492,34.6729],[118.125,34.6289],[118.2129,34.4092],[118.3887,34.4092],[118.4766,34.6729],[118.7402,34.7168],[118.916,35.0244],[119.2676,35.1123],[119.3555,35.0244],[119.3555,34.8486],[119.707,34.585],[120.3223,34.3652],[120.9375,33.0469],[121.0254,32.6514],[121.377,32.4756],[121.4648,32.168],[121.9043,31.9922],[121.9922,31.6846],[121.9922,31.5967],[121.2012,31.8604],[121.1133,31.7285],[121.377,31.5088],[121.2012,31.4648],[120.9375,31.0254],[120.498,30.8057],[119.9707,31.1572],[119.6191,31.1133],[119.4434,31.1572],[119.3555,31.2891],[118.8281,31.2451],[118.7402,31.377],[118.916,31.5527],[118.3887,31.9482],[118.4766,32.168],[118.6523,32.2119],[118.5645,32.5635],[119.1797,32.4756],[119.1797,32.8271],[118.916,32.959],[118.7402,32.7393],[118.3008,32.7832],[118.2129,33.2227],[118.0371,33.1348],[117.9492,33.2227],[118.125,33.75],[117.7734,33.7061],[117.5977,34.0137],[117.1582,34.0576],[116.8945,34.4092],[116.3672,34.6289]]]}},{"type":"Feature","properties":{"id":"50","size":"2380","name":"重庆市","cp":[107.7539,30.1904],"childNum":40},"geometry":{"type":"Polygon","coordinates":[[[108.5449,31.6846],[108.2813,31.9043],[108.3691,32.168],[108.5449,32.2119],[109.0723,31.9482],[109.248,31.7285],[109.5996,31.7285],[109.7754,31.6846],[109.6875,31.5527],[110.127,31.377],[110.2148,31.1572],[110.0391,30.8057],[109.8633,30.8936],[109.4238,30.542],[109.248,30.6299],[109.1602,30.542],[109.0723,30.6299],[108.8086,30.498],[108.6328,30.5859],[108.457,30.4102],[108.5449,30.2344],[108.457,29.7949],[108.6328,29.8389],[108.9844,29.3115],[109.0723,29.3555],[109.248,29.1357],[109.248,28.4766],[109.0723,28.2129],[108.7207,28.2129],[108.7207,28.4766],[108.5449,28.3887],[108.5449,28.6523],[108.3691,28.6523],[108.2813,29.0918],[107.8418,29.0039],[107.8418,29.1357],[107.5781,29.2236],[107.4023,29.1797],[107.4023,28.8721],[106.875,28.7842],[106.6992,28.4766],[106.6113,28.5205],[106.6113,28.6523],[106.5234,28.7842],[106.4355,28.7842],[106.5234,28.5645],[106.3477,28.5205],[106.2598,28.8721],[105.8203,28.96],[105.7324,29.2676],[105.4688,29.3115],[105.293,29.5313],[105.7324,29.8828],[105.5566,30.1025],[105.6445,30.2783],[105.8203,30.4541],[106.2598,30.1904],[106.6113,30.3223],[106.7871,30.0146],[107.0508,30.0146],[107.4902,30.6299],[107.4023,30.7617],[107.4902,30.8496],[107.9297,30.8496],[108.1934,31.5088],[108.5449,31.6846]]]}},{"type":"Feature","properties":{"id":"64","size":"2100","name":"宁夏回族自治区","cp":[105.9961,37.3096],"childNum":5},"geometry":{"type":"Polygon","coordinates":[[[104.3262,37.4414],[105.8203,37.793],[105.9082,38.7158],[106.3477,39.2871],[106.7871,39.375],[106.9629,38.9795],[106.5234,38.3203],[106.7871,38.1885],[107.3145,38.1006],[107.666,37.8809],[107.3145,37.6172],[107.3145,37.0898],[106.6113,37.0898],[106.6113,36.7822],[106.4355,36.5625],[106.5234,36.4746],[106.5234,36.2549],[106.875,36.123],[106.9629,35.8154],[106.6992,35.6836],[106.4355,35.6836],[106.5234,35.332],[106.3477,35.2441],[106.2598,35.4199],[106.084,35.376],[105.9961,35.4199],[106.084,35.4639],[105.9961,35.4639],[105.8203,35.5518],[105.7324,35.7275],[105.3809,35.7715],[105.293,35.9912],[105.4688,36.123],[105.2051,36.6943],[105.293,36.8262],[104.8535,37.2217],[104.5898,37.2217],[104.5898,37.4414],[104.3262,37.4414]]]}},{"type":"Feature","properties":{"id":"46","size":"4500","name":"海南省","cp":[109.9512,19.2041],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[108.6328,19.3799],[109.0723,19.6436],[109.248,19.9512],[109.5996,20.0391],[110.0391,20.127],[110.3906,20.127],[110.5664,20.2588],[110.6543,20.2588],[111.0938,19.9512],[111.2695,19.9951],[110.6543,19.1602],[110.5664,18.6768],[110.2148,18.5889],[110.0391,18.3691],[109.8633,18.3691],[109.6875,18.1055],[108.9844,18.2813],[108.6328,18.457],[108.6328,19.3799]]]}},{"type":"Feature","properties":{"id":"71","size":"3000","name":"台湾省","cp":[120.0254,23.5986],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[121.9043,25.0488],[121.9922,25.0049],[121.8164,24.7412],[121.9043,24.5654],[121.6406,24.0381],[121.377,23.1152],[121.0254,22.6758],[120.8496,22.0605],[120.7617,21.9287],[120.6738,22.3242],[120.2344,22.5879],[120.0586,23.0713],[120.1465,23.6865],[121.0254,25.0488],[121.5527,25.3125],[121.9043,25.0488]]]}},{"type":"Feature","properties":{"id":"11","size":"5000","name":"北京市","cp":[116.4551,40.2539],"childNum":19},"geometry":{"type":"Polygon","coordinates":[[[117.4219,40.21],[117.334,40.1221],[117.2461,40.0781],[116.8066,39.9902],[116.8945,39.8145],[116.8945,39.6826],[116.8066,39.5947],[116.543,39.5947],[116.3672,39.4629],[116.1914,39.5947],[115.752,39.5068],[115.4883,39.6387],[115.4004,39.9463],[115.9277,40.2539],[115.752,40.5615],[116.1035,40.6055],[116.1914,40.7813],[116.4551,40.7813],[116.3672,40.9131],[116.6309,41.0449],[116.9824,40.6934],[117.4219,40.6494],[117.2461,40.5176],[117.4219,40.21]]]}},{"type":"Feature","properties":{"id":"12","size":"5000","name":"天津市","cp":[117.4219,39.4189],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[116.8066,39.5947],[116.8945,39.6826],[117.1582,39.6387],[117.1582,39.8145],[117.2461,40.0781],[117.334,40.1221],[117.4219,40.21],[117.6855,40.0781],[117.6855,39.9902],[117.5098,39.9902],[117.5098,39.7705],[117.6855,39.5947],[117.9492,39.5947],[117.8613,39.4189],[118.0371,39.2432],[118.0371,39.1992],[117.8613,39.1113],[117.5977,38.6279],[117.2461,38.54],[116.7188,38.8037],[116.7188,38.9355],[116.8945,39.1113],[116.8066,39.5947]]]}},{"type":"Feature","properties":{"id":"31","size":"7500","name":"上海市","cp":[121.4648,31.2891],"childNum":19},"geometry":{"type":"Polygon","coordinates":[[[120.9375,31.0254],[121.2012,31.4648],[121.377,31.5088],[121.1133,31.7285],[121.2012,31.8604],[121.9922,31.5967],[121.9043,31.1572],[121.9922,30.8057],[121.2891,30.6738],[120.9375,31.0254]]]}},{"type":"Feature","properties":{"id":"81","size":"18000","name":"香港特别行政区","cp":[114.1178,22.3242],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[114.6094,22.4121],[114.5215,22.1484],[114.3457,22.1484],[113.9063,22.1484],[113.8184,22.1924],[113.9063,22.4121],[114.1699,22.5439],[114.3457,22.5439],[114.4336,22.5439],[114.4336,22.4121],[114.6094,22.4121]]]}},{"type":"Feature","properties":{"id":"82","size":"27","name":"澳门特别行政区","cp":[111.5547,22.1484],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[113.5986,22.1649],[113.6096,22.1265],[113.5547,22.11],[113.5437,22.2034],[113.5767,22.2034],[113.5986,22.1649]]]}}]}');let ml=e=>{let t=(e.events||[]).reduce((e,t)=>(e[t.name]=t.script,e),{}),{callMethod:n}=(e=>{let{handleMethod:t}=(0,eh.useContext)(eg);return{callMethod:(n,r,i)=>t(e,n,r,i)}})(e);return{handleEvent:(r,i)=>{let a=t[r];if(a&&a)try{return Function("console","Math","Date","Array","Object","String","Number","Boolean","callMethod","param",`
|
|
1146
|
+
`;let ng=e=>{let{item:t,split:n,padding:r}=e;return(0,ed.jsx)(nc,{$split:n,$padding:r,children:(0,ed.jsxs)(nd,{children:[t.avatar&&(0,ed.jsx)(nh,{children:(0,ed.jsx)(tn.Avatar,{src:t.avatar})}),(0,ed.jsxs)(np,{children:[t.title&&(0,ed.jsx)(nf,{children:t.href?(0,ed.jsx)("a",{href:t.href,children:t.title}):t.title}),t.description&&(0,ed.jsx)(nm,{children:t.description})]})]})})},nv=e=>{let{list:t=[],split:n,bordered:r,size:i,itemLayout:a,style:o,className:s}=e,l=(0,eh.useMemo)(()=>"small"===i?"8px 16px":r?"12px 24px":"12px 0",[i,r]);return(0,ed.jsx)(nu,{$bordered:r,$split:n,$size:i,style:o,$itemLayout:a,className:s,children:t.map((e,t)=>(0,ed.jsx)(ng,{item:e,split:n,padding:l},String(t)))})};var ny=d(190),nx=function(e,t){return(nx=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])})(e,t)};function n_(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nx(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var nb=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},nw=new function(){this.browser=new nb,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(nw.wxa=!0,nw.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?nw.worker=!0:!nw.hasGlobalWindow||"Deno"in window?(nw.node=!0,nw.svgSupported=!0):(e=navigator.userAgent,n=(t=nw).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),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="u">typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="u">typeof document,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 nS="12px sans-serif",nC=function(e){var t={};if("u"<typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),nj={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!v){var n=nj.createCanvas();v=n&&n.getContext("2d")}if(v)return y!==t&&(y=v.font=t||nS),v.measureText(e);e=e||"",t=t||nS;var r=/((?:\d+)?\.?\d*)px/.exec(t),i=r&&+r[1]||12,a=0;if(t.indexOf("mono")>=0)a=i*e.length;else for(var o=0;o<e.length;o++){var s=nC[e[o]];a+=null==s?i:s*i}return{width:a}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},nT=nX(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),nk=nX(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nI=Object.prototype.toString,nM=Array.prototype,nD=nM.forEach,nO=nM.filter,nA=nM.slice,nz=nM.map,nR=(function(){}).constructor,nP=nR?nR.prototype:null,nN="__proto__",nL=2311;function nF(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"u">typeof console&&console.error.apply(console,e)}function nE(e){if(null==e||"object"!=typeof e)return e;var t=e,n=nI.call(e);if("[object Array]"===n){if(!e[ri]){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=nE(e[r])}}else if(nk[n]){if(!e[ri]){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(!nT[n]&&!e[ri]&&!n8(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==nN&&(t[o]=nE(e[o]));return t}function nB(e,t,n){if(!n3(t)||!n3(e))return n?nE(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==nN){var i=e[r],a=t[r];!(n3(a)&&n3(i))||nQ(a)||nQ(i)||n8(a)||n8(i)||n4(a)||n4(i)||a[ri]||i[ri]?!n&&r in e||(e[r]=nE(t[r])):nB(i,a,n)}return e}function nH(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==nN&&(e[n]=t[n]);return e}function nV(e,t,n){for(var r=nZ(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function nW(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 nG(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];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else nV(e,t,n)}function nY(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function nU(e,t,n){if(e&&t)if(e.forEach&&e.forEach===nD)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 nq(e,t,n){if(!e)return[];if(!t)return re(e);if(e.map&&e.map===nz)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 nX(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 n$(e,t,n){if(!e)return[];if(!t)return re(e);if(e.filter&&e.filter===nO)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 nZ(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}nj.createCanvas;var nK=nP&&n1(nP.bind)?nP.call.bind(nP.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(nA.call(arguments)))}};function nJ(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(nA.call(arguments)))}}function nQ(e){return Array.isArray?Array.isArray(e):"[object Array]"===nI.call(e)}function n1(e){return"function"==typeof e}function n0(e){return"string"==typeof e}function n2(e){return"number"==typeof e}function n3(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function n4(e){return!!nT[nI.call(e)]}function n5(e){return!!nk[nI.call(e)]}function n8(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function n9(e){return null!=e.colorStops}function n6(e,t){return null!=e?e:t}function n7(e,t,n){return null!=e?e:null!=t?t:n}function re(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nA.apply(e,t)}function rt(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function rn(e,t){if(!e)throw Error(t)}function rr(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ri="__ec_primitive__",ra=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 nZ(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ro="function"==typeof Map,rs=function(){function e(t){var n=nQ(t);this.data=ro?new Map:new ra;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&nU(t,i)}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 ro?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function rl(e){return new rs(e)}function ru(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&nH(n,t),n}function rc(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function rd(e,t){return e.hasOwnProperty(t)}function rh(){}var rp=180/Math.PI;function rf(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function rm(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function rg(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function rv(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var ry=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function rx(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 r_(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 rb(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function rw(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var rS=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},rC=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 rS(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 rS(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 rS(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new rS(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rS(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new rS(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),rj=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&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},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,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]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(a){case 0:u.h.call(o);break;case 1:u.h.call(o,t[0]);break;case 2:u.h.call(o,t[0],t[1]);break;default:u.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),rT=Math.log(2);function rk(e,t,n,r,i,a){var o=r+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/rT);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;!(f&i)&&(d+=(p%2?-1:1)*e[n][h]*rk(e,t-1,c,u,i|f,a),p++)}return a[o]=d,d}function rI(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=rk(n,8,0,0,0,r);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*rk(n,7,+(0===o),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 rM="___zrEVENTSAVED";function rD(e){return"CANVAS"===e.nodeName.toUpperCase()}var rO=/([&<>"'])/g,rA={"&":"&","<":"<",">":">",'"':""","'":"'"};function rz(e){return null==e?"":(e+"").replace(rO,function(e,t){return rA[t]})}var rR=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rP=[],rN=nw.browser.firefox&&39>+nw.browser.version.split(".")[0];function rL(e,t,n,r){return n=n||{},r?rF(e,t,n):rN&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):rF(e,t,n),n}function rF(e,t,n){if(nw.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(rD(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(function(e,t,n,r,i){if(t.getBoundingClientRect&&nw.domSupported&&!rD(t)){var a=t[rM]||(t[rM]={}),o=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;o.push(h,p),l=l&&a&&h===a[d]&&p===a[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?rI(s,o):rI(o,s))}(function(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,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),a,void 0);if(o)return o(e,n,r),!0}return!1}(rP,e,r,i)){n.zrX=rP[0],n.zrY=rP[1];return}}n.zrX=n.zrY=0}function rE(e){return e||window.event}function rB(e,t,n){if(null!=(t=rE(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&rL(e,i,t,n)}else{rL(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return null==n||null==r?t:3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&rR.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}var rH=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},rV=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],l=rL(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in rG)if(rG.hasOwnProperty(t)){var n=rG[t](this._track,e);if(n)return n}},e}();function rW(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var rG={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=rW(r)/rW(i);isFinite(a)||(a=1),t.pinchScale=a;var o=[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function rY(){return[1,0,0,1,0,0]}function rU(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],l=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]=l,e}function rq(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 rX(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}var r$=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}(),rZ=Math.min,rK=Math.max,rJ=new r$,rQ=new r$,r1=new r$,r0=new r$,r2=new r$,r3=new r$,r4=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=rZ(e.x,this.x),n=rZ(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rK(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=rK(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,n,r,i=e.width/this.width,a=e.height/this.height,o=rY();return rq(o,o,[-this.x,-this.y]),n=(t=[i,a])[0],r=t[1],o[0]=o[0]*n,o[1]=o[1]*r,o[2]=o[2]*n,o[3]=o[3]*r,o[4]=o[4]*n,o[5]=o[5]*r,rq(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this.x,i=this.x+this.width,a=this.y,o=this.y+this.height,s=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height,d=!(i<s||l<r||o<u||c<a);if(n){var h=1/0,p=0,f=Math.abs(i-s),m=Math.abs(l-r),g=Math.abs(o-u),v=Math.abs(c-a),y=Math.min(f,m),x=Math.min(g,v);i<s||l<r?y>p&&(p=y,f<m?r$.set(r3,-f,0):r$.set(r3,m,0)):y<h&&(h=y,f<m?r$.set(r2,f,0):r$.set(r2,-m,0)),o<u||c<a?x>p&&(p=x,g<v?r$.set(r3,0,-g):r$.set(r3,0,v)):y<h&&(h=y,g<v?r$.set(r2,0,g):r$.set(r2,0,-v))}return n&&r$.copy(n,d?r2:r3),d},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},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}rJ.x=r1.x=n.x,rJ.y=r0.y=n.y,rQ.x=r0.x=n.x+n.width,rQ.y=r1.y=n.y+n.height,rJ.transform(r),r0.transform(r),rQ.transform(r),r1.transform(r),t.x=rZ(rJ.x,rQ.x,r1.x,r0.x),t.y=rZ(rJ.y,rQ.y,r1.y,r0.y);var l=rK(rJ.x,rQ.x,r1.x,r0.x),u=rK(rJ.y,rQ.y,r1.y,r0.y);t.width=l-t.x,t.height=u-t.y},e}(),r5="silent";function r8(){rH(this.event)}var r9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return n_(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(rj),r6=function(e,t){this.x=e,this.y=t},r7=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ie=new r4(0,0,0,0),it=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new r6(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new r9,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new rC(o),o}return n_(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(nU(r7,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=ii(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new r6(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.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;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new r6(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){var r=(e=e||{}).target;if(!r||!r.silent){for(var i,a="on"+t,o={type:t,event:n,target:(i=e).target,topTarget:i.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:r8};r&&(r[a]&&(o.cancelBubble=!!r[a].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new r6(e,t);if(ir(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new r4(e-s,t-s,o,o),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(ie.copy(c.getBoundingRect()),c.transform&&ie.applyTransform(c.transform),ie.intersect(l)&&a.push(c))}if(a.length){for(var d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<h;f+=d)if(ir(a,i,e+p*Math.cos(f),t+p*Math.sin(f),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new rV);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new r6;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(rj);function ir(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=function(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),r=r.__hostTarget||r.parent}return!i||r5}return!1}(o,n,r))&&(t.topTarget||(t.topTarget=o),s!==r5)){t.target=o;break}}}function ii(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}function ia(e,t,n,r){var i=t+1;if(i===n)return 1;if(0>r(e[i++],e[t])){for(;i<n&&0>r(e[i],e[i-1]);)i++;var a=e,o=t,s=i;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function io(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,l=r;s<l;)0>i(o,e[a=s+l>>>1])?l=a:s=a+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=o}}function is(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){for(s=r-i;l<s&&a(e,t[n+i+l])>0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&0>=a(e,t[n+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[n+c])>0?o=c+1:l=c}return l}function il(e,t,n,r,i,a){var o=0,s=0,l=1;if(0>a(e,t[n+i])){for(s=i+1;l<s&&0>a(e,t[n+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l<s&&a(e,t[n+i+l])>=0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);0>a(e,t[n+c])?l=c:o=c+1}return l}function iu(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<32){a=ia(e,n,r,t),io(e,n,r,n+a,t);return}var o=function(e,t){var n,r,i=7,a=0,o=[];function s(s){var l=n[s],u=r[s],c=n[s+1],d=r[s+1];r[s]=u+d,s===a-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),a--;var h=il(e[c],e,l,u,0,t);l+=h,0==(u-=h)||0!==(d=is(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,r,a,s){var l,u,c,d=0;for(d=0;d<r;d++)o[d]=e[n+d];var h=0,p=a,f=n;if(e[f++]=e[p++],0==--s){for(d=0;d<r;d++)e[f+d]=o[h+d];return}if(1===r){for(d=0;d<s;d++)e[f+d]=e[p+d];e[f+s]=o[h];return}for(var m=i;;){l=0,u=0,c=!1;do if(0>t(e[p],o[h])){if(e[f++]=e[p++],u++,l=0,0==--s){c=!0;break}}else if(e[f++]=o[h++],l++,u=0,1==--r){c=!0;break}while((l|u)<m);if(c)break;do{if(0!==(l=il(e[p],o,h,r,0,t))){for(d=0;d<l;d++)e[f+d]=o[h+d];if(f+=l,h+=l,(r-=l)<=1){c=!0;break}}if(e[f++]=e[p++],0==--s){c=!0;break}if(0!==(u=is(o[h],e,p,s,0,t))){for(d=0;d<u;d++)e[f+d]=e[p+d];if(f+=u,p+=u,0==(s-=u)){c=!0;break}}if(e[f++]=o[h++],1==--r){c=!0;break}m--}while(l>=7||u>=7);if(c)break;m<0&&(m=0),m+=2}if((i=m)<1&&(i=1),1===r){for(d=0;d<s;d++)e[f+d]=e[p+d];e[f+s]=o[h]}else if(0===r)throw Error();else for(d=0;d<r;d++)e[f+d]=o[h+d]}(l,u,c,d):function(n,r,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var u=n+r-1,c=s-1,d=a+s-1,h=0,p=0;if(e[d--]=e[u--],0==--r){for(l=0,h=d-(s-1);l<s;l++)e[h+l]=o[l];return}if(1===s){for(d-=r,u-=r,p=d+1,h=u+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=o[c];return}for(var f=i;;){var m=0,g=0,v=!1;do if(0>t(o[c],e[u])){if(e[d--]=e[u--],m++,g=0,0==--r){v=!0;break}}else if(e[d--]=o[c--],g++,m=0,1==--s){v=!0;break}while((m|g)<f);if(v)break;do{if(0!=(m=r-il(o[c],e,n,r,r-1,t))){for(d-=m,u-=m,r-=m,p=d+1,h=u+1,l=m-1;l>=0;l--)e[p+l]=e[h+l];if(0===r){v=!0;break}}if(e[d--]=o[c--],1==--s){v=!0;break}if(0!=(g=s-is(e[u],o,0,s,s-1,t))){for(d-=g,c-=g,s-=g,p=d+1,h=c+1,l=0;l<g;l++)e[p+l]=o[h+l];if(s<=1){v=!0;break}}if(e[d--]=e[u--],0==--r){v=!0;break}f--}while(m>=7||g>=7);if(v)break;f<0&&(f=0),f+=2}if((i=f)<1&&(i=1),1===s){for(d-=r,u-=r,p=d+1,h=u+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=o[c]}else if(0===s)throw Error();else for(l=0,h=d-(s-1);l<s;l++)e[h+l]=o[l]}(l,u,c,d))}return n=[],r=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,r[a]=t,a+=1}}}(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((a=ia(e,n,r,t))<s){var l=i;l>s&&(l=s),io(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(0!==i);o.forceMergeRuns()}}nU(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){it.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=ii(this,i,a);if("mouseup"===e&&o||(r=(n=this.findHover(i,a)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||rv(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var ic=!1;function id(){ic||(ic=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ih(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ip=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ih}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=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,iu(n,ih)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else t&&t.length?e.__clipPaths=t:e.__clipPaths&&e.__clipPaths.length>0&&(e.__clipPaths=[]),isNaN(e.z)&&(id(),e.z=0),isNaN(e.z2)&&(id(),e.z2=0),isNaN(e.zlevel)&&(id(),e.zlevel=0),this._displayList[this._displayListLen++]=e;var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,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=nW(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}();I=nw.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var im={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1)?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):n*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-im.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?.5*im.bounceIn(2*e):.5*im.bounceOut(2*e-1)+.5}},ig=Math.pow,iv=Math.sqrt,iy=iv(3),ix=1/3,i_=rf(),ib=rf(),iw=rf();function iS(e){return e>-1e-8&&e<1e-8}function iC(e){return e>1e-8||e<-1e-8}function ij(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 iT(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function ik(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,d=s*l-9*o*u,h=l*l-3*s*u,p=0;if(iS(c)&&iS(d))if(iS(s))a[0]=0;else{var f=-l/s;f>=0&&f<=1&&(a[p++]=f)}else{var m=d*d-4*c*h;if(iS(m)){var g=d/c,f=-s/o+g,v=-g/2;f>=0&&f<=1&&(a[p++]=f),v>=0&&v<=1&&(a[p++]=v)}else if(m>0){var y=iv(m),x=c*s+1.5*o*(-d+y),_=c*s+1.5*o*(-d-y),f=(-s-((x=x<0?-ig(-x,ix):ig(x,ix))+(_=_<0?-ig(-_,ix):ig(_,ix))))/(3*o);f>=0&&f<=1&&(a[p++]=f)}else{var b=Math.acos((2*c*s-3*o*d)/(2*iv(c*c*c)))/3,w=iv(c),S=Math.cos(b),f=(-s-2*w*S)/(3*o),v=(-s+w*(S+iy*Math.sin(b)))/(3*o),C=(-s+w*(S-iy*Math.sin(b)))/(3*o);f>=0&&f<=1&&(a[p++]=f),v>=0&&v<=1&&(a[p++]=v),C>=0&&C<=1&&(a[p++]=C)}}return p}function iI(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,l=0;if(iS(o)){if(iC(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(iS(c))i[0]=-a/(2*o);else if(c>0){var d=iv(c),u=(-a+d)/(2*o),h=(-a-d)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function iM(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-o)*i+o,c=(l-s)*i+s,d=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=r}function iD(e,t,n,r,i,a,o,s,l,u,c){var d,h,p,f,m,g=.005,v=1/0;i_[0]=l,i_[1]=u;for(var y=0;y<1;y+=.05)ib[0]=ij(e,n,i,o,y),ib[1]=ij(t,r,a,s,y),(f=ry(i_,ib))<v&&(d=y,v=f);v=1/0;for(var x=0;x<32&&!(g<1e-4);x++)h=d-g,p=d+g,ib[0]=ij(e,n,i,o,h),ib[1]=ij(t,r,a,s,h),f=ry(ib,i_),h>=0&&f<v?(d=h,v=f):(iw[0]=ij(e,n,i,o,p),iw[1]=ij(t,r,a,s,p),m=ry(iw,i_),p<=1&&m<v?(d=p,v=m):g*=.5);return c&&(c[0]=ij(e,n,i,o,d),c[1]=ij(t,r,a,s,d)),iv(v)}function iO(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function iA(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function iz(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function iR(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 iP(e,t,n,r,i,a,o,s,l){var u,c=.005,d=1/0;i_[0]=o,i_[1]=s;for(var h=0;h<1;h+=.05){ib[0]=iO(e,n,i,h),ib[1]=iO(t,r,a,h);var p=ry(i_,ib);p<d&&(u=h,d=p)}d=1/0;for(var f=0;f<32&&!(c<1e-4);f++){var m=u-c,g=u+c;ib[0]=iO(e,n,i,m),ib[1]=iO(t,r,a,m);var p=ry(ib,i_);if(m>=0&&p<d)u=m,d=p;else{iw[0]=iO(e,n,i,g),iw[1]=iO(t,r,a,g);var v=ry(iw,i_);g<=1&&v<d?(u=g,d=v):c*=.5}}return l&&(l[0]=iO(e,n,i,u),l[1]=iO(t,r,a,u)),iv(d)}var iN=/cubic-bezier\(([0-9,\.e ]+)\)/;function iL(e){var t=e&&iN.exec(e);if(t){var n=t[1].split(","),r=+rr(n[0]),i=+rr(n[1]),a=+rr(n[2]),o=+rr(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:ik(0,r,a,1,e,s)&&ij(0,i,o,1,s[0])}}}var iF=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||rh,this.ondestroy=e.ondestroy||rh,this.onrestart=e.onrestart||rh,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!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),1===i)if(!this.loop)return!0;else this._startTime=e-r%n,this._pausedTime=0,this.onrestart();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=n1(e)?e:im[e]||iL(e)},e}(),iE=function(e){this.value=e},iB=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new iE(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}(),iH=function(){function e(e){this._list=new iB,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(null==r[e]){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 iE(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(null!=t)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}(),iV={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 iW(e){return(e=Math.round(e))<0?0:e>255?255:e}function iG(e){return e<0?0:e>1?1:e}function iY(e){return e.length&&"%"===e.charAt(e.length-1)?iW(parseFloat(e)/100*255):iW(parseInt(e,10))}function iU(e){return e.length&&"%"===e.charAt(e.length-1)?iG(parseFloat(e)/100):iG(parseFloat(e))}function iq(e,t,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function iX(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function i$(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var iZ=new iH(20),iK=null;function iJ(e,t){iK&&i$(iK,t),iK=iZ.put(e,iK||t.slice())}function iQ(e,t){if(e){t=t||[];var n=iZ.get(e);if(n)return i$(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in iV)return i$(t,iV[r]),iJ(e,t),t;var i=r.length;if("#"===r.charAt(0)){if(4===i||5===i){var a=parseInt(r.slice(1,4),16);return a>=0&&a<=4095?(iX(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===i?parseInt(r.slice(4),16)/15:1),iJ(e,t),t):void iX(t,0,0,0,1)}if(7===i||9===i){var a=parseInt(r.slice(1,7),16);return a>=0&&a<=0xffffff?(iX(t,(0xff0000&a)>>16,(65280&a)>>8,255&a,9===i?parseInt(r.slice(7),16)/255:1),iJ(e,t),t):void iX(t,0,0,0,1)}return}var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===i){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?iX(t,+u[0],+u[1],+u[2],1):iX(t,0,0,0,1);c=iU(u.pop());case"rgb":if(u.length>=3)return iX(t,iY(u[0]),iY(u[1]),iY(u[2]),3===u.length?c:iU(u[3])),iJ(e,t),t;return void iX(t,0,0,0,1);case"hsla":if(4!==u.length)return void iX(t,0,0,0,1);return u[3]=iU(u[3]),i1(u,t),iJ(e,t),t;case"hsl":if(3!==u.length)return void iX(t,0,0,0,1);return i1(u,t),iJ(e,t),t;default:return}}iX(t,0,0,0,1)}}function i1(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=iU(e[1]),i=iU(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return iX(t=t||[],iW(255*iq(o,a,n+1/3)),iW(255*iq(o,a,n)),iW(255*iq(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function i0(e,t){var n=iQ(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 i2(n,4===n.length?"rgba":"rgb")}}function i2(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(n+=","+e[3]),t+"("+n+")"}}function i3(e,t){var n=iQ(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var i4=new iH(100);function i5(e){if(n0(e)){var t=i4.get(e);return t||(t=i0(e,-.1),i4.put(e,t)),t}if(n9(e)){var n=nH({},e);return n.colorStops=nq(e.colorStops,function(e){return{offset:e.offset,color:i0(e.color,-.1)}}),n}return e}nw.hasGlobalWindow&&n1(window.btoa);var i8=Array.prototype.slice;function i9(e,t,n,r){for(var i,a=t.length,o=0;o<a;o++)e[o]=(i=t[o],(n[o]-i)*r+i);return e}function i6(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function i7(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 ae(e){if(nY(e)){var t=e.length;if(nY(e[0])){for(var n=[],r=0;r<t;r++)n.push(i8.call(e[r]));return n}return i8.call(e)}return e}function at(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function an(e){return 4===e||5===e}function ar(e){return 1===e||2===e}var ai=[0,0,0,0],aa=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=6,s=t;if(nY(t)){var l=nY(t&&t[0])?2:1;o=l,(1!==l||n2(t[0]))&&(2!==l||n2(t[0][0]))||(a=!0)}else if(n2(t)&&t==t)o=0;else if(n0(t))if(isNaN(+t)){var u=iQ(t);u&&(s=u,o=3)}else o=0;else if(n9(t)){var c=nH({},s);(c.colorStops=nq(t.colorStops,function(e){return{offset:e.offset,color:iQ(e.color)}}),"linear"===t.type)?o=4:"radial"===t.type&&(o=5),s=c}0===i?this.valType=o:(o!==this.valType||6===o)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=n1(n)?n:im[n]||iL(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=ar(r),l=an(r),u=0;u<i;u++){var c=n[u],d=c.value,h=a.value;c.percent=c.time/e,!o&&(s&&u!==i-1?function(e,t,n){if(e.push&&t.push){var r=e.length,i=t.length;if(r!==i)if(r>i)e.length=i;else for(var a=r;a<i;a++)e.push(1===n?t[a]:i8.call(t[a]));for(var o=e[0]&&e[0].length,a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}}(d,h,r):l&&function(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()})}(d.colorStops,h.colorStops))}if(!o&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=i6([],n[u].value,p,-1):ar(r)&&(n[u].additiveValue=1===r?i6([],n[u].value,p,-1):i7([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,o=a?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,h=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(h+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,u-2)}else{for(n=h;n<u&&!(l[n].percent>t);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,m=0===f?1:p((t-r.percent)/f,1);i.easingFunc&&(m=i.easingFunc(m));var g=a?this._additiveValue:d?ai:e[c];if((ar(s)||d)&&!g&&(g=this._additiveValue=[]),this.discrete)e[c]=m<1?r.rawValue:i.rawValue;else if(ar(s))1===s?i9(g,r[o],i[o],m):function(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,l=0;l<a;l++)e[o][l]=(s=t[o][l],(n[o][l]-s)*r+s)}}(g,r[o],i[o],m);else if(an(s)){var v,y,x,_,b,w=r[o],S=i[o],C=4===s;(e[c]={type:C?"linear":"radial",x:(v=w.x,(S.x-v)*m+v),y:(y=w.y,(S.y-y)*m+y),colorStops:nq(w.colorStops,function(e,t){var n,r=S.colorStops[t];return{offset:(n=e.offset,(r.offset-n)*m+n),color:at(i9([],e.color,r.color,m))}}),global:S.global},C)?(e[c].x2=(x=w.x2,(S.x2-x)*m+x),e[c].y2=(_=w.y2,(S.y2-_)*m+_)):e[c].r=(b=w.r,(S.r-b)*m+b)}else if(d)i9(g,r[o],i[o],m),a||(e[c]=at(g));else{var j,T=(j=r[o],(i[o]-j)*m+j);a?this._additiveValue=T:e[c]=T}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(iQ(e[n],ai),i6(ai,ai,r,1),e[n]=at(ai)):1===t?i6(e[n],e[n],r,1):2===t&&i7(e[n],e[n],r,1)},e}(),ao=function(){function e(e,t,n,r){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r)?nF("Can' use additive animation on looped animation."):(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,nZ(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 aa(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=at(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,ae(l),r),this._trackKeys.push(o)}s.addKeyframe(e,ae(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),l=o.keyframes,u=l.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var c=l[u-1];c&&(t._target[o.propName]=c.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new iF({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=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(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 nq(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):1===this._started&&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=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]=ae(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||nZ(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 as(){return new Date().getTime()}var al=function(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,n.stage=(t=t||{}).stage||{},n}return n_(t,e),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=as()-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}this._time=t,!e&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,I(function t(){e._running&&(I(t),e._paused||e.update())})},t.prototype.start=function(){this._running||(this._time=as(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=as(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=as()-this._pauseStart,this._paused=!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 null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new ao(e,t.loop);return this.addAnimator(n),n},t}(rj),au=nw.domSupported,ac=(_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},b=nq(x=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(e){var t=e.replace("mouse","pointer");return _.hasOwnProperty(t)?t:e}),{mouse:x,touch:["touchstart","touchend","touchmove"],pointer:b}),ad=["mousemove","mouseup"],ah=["pointermove","pointerup"],ap=!1;function af(e){var t=e.pointerType;return"pen"===t||"touch"===t}function am(e){e&&(e.zrByTouch=!0)}function ag(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var av=function(e,t){this.stopPropagation=rh,this.stopImmediatePropagation=rh,this.preventDefault=rh,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},ay={mousedown:function(e){e=rB(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=rB(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=rB(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){ag(this,(e=rB(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ap=!0,e=rB(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ap||(e=rB(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){am(e=rB(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ay.mousemove.call(this,e),ay.mousedown.call(this,e)},touchmove:function(e){am(e=rB(this.dom,e)),this.handler.processGesture(e,"change"),ay.mousemove.call(this,e)},touchend:function(e){am(e=rB(this.dom,e)),this.handler.processGesture(e,"end"),ay.mouseup.call(this,e),new Date-this.__lastTouchMoment<300&&ay.click.call(this,e)},pointerdown:function(e){ay.mousedown.call(this,e)},pointermove:function(e){af(e)||ay.mousemove.call(this,e)},pointerup:function(e){ay.mouseup.call(this,e)},pointerout:function(e){af(e)||ay.mouseout.call(this,e)}};nU(["click","dblclick","contextmenu"],function(e){ay[e]=function(t){t=rB(this.dom,t),this.trigger(e,t)}});var ax={pointermove:function(e){af(e)||ax.mousemove.call(this,e)},pointerup:function(e){ax.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 a_(e,t,n,r){var i;e.mounted[t]=n,e.listenerOpts[t]=r,i=e.domTarget,i.addEventListener(t,n,r)}function ab(e){var t,n,r,i=e.mounted;for(var a in i)i.hasOwnProperty(a)&&(t=e.domTarget,n=i[a],r=e.listenerOpts[a],t.removeEventListener(a,n,r));e.mounted={}}var aw=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},aS=function(e){function t(t,n){var r,i,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new aw(t,ay),au&&(a._globalHandlerScope=new aw(document,ax)),i=(r=a._localHandlerScope).domHandlers,nw.pointerEventsSupported?nU(ac.pointer,function(e){a_(r,e,function(t){i[e].call(a,t)})}):(nw.touchEventsSupported&&nU(ac.touch,function(e){a_(r,e,function(t){i[e].call(a,t),r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),nU(ac.mouse,function(e){a_(r,e,function(t){t=rE(t),r.touching||i[e].call(a,t)})})),a}return n_(t,e),t.prototype.dispose=function(){ab(this._localHandlerScope),au&&ab(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,au&&this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){nw.pointerEventsSupported?nU(ah,n):nw.touchEventsSupported||nU(ad,n);function n(n){a_(t,n,function(r){if(!ag(e,(r=rE(r)).target)){var i;i=r,r=rB(e.dom,new av(e,i),!0),t.domHandlers[n].call(e,r)}},{capture:!0})}}(this,t):ab(t)}},t}(rj),aC=1;nw.hasGlobalWindow&&(aC=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var aj=aC,aT="#333",ak="#ccc",aI=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e};function aM(e){return e>5e-5||e<-5e-5}var aD=[],aO=[],aA=rY(),az=Math.abs,aR=function(){var e;function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return aM(this.rotation)||aM(this.x)||aM(this.y)||aM(this.scaleX-1)||aM(this.scaleY-1)||aM(this.skewX)||aM(this.skewY)},t.prototype.updateTransform=function(){var e,t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(aI(r),this.invTransform=null);return}r=r||rY(),n?this.getLocalTransform(r):aI(r),t&&(n?rU(r,t,r):((e=r)[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5])),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(aD);var n=aD[0]<0?-1:1,r=aD[1]<0?-1:1,i=((aD[0]-n)*t+n)/aD[0]||0,a=((aD[1]-r)*t+r)/aD[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||rY(),rX(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},t.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}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||rY(),rU(aO,e.invTransform,t),t=aO);var n=this.originX,r=this.originY;(n||r)&&(aA[4]=n,aA[5]=r,rU(aO,t,aA),aO[4]-=n,aO[5]-=r,t=aO),this.setLocalTransform(t)}},t.prototype.getGlobalScale=function(e){var t=this.transform;return(e=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[0]=1,e[1]=1),e},t.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&r_(n,n,r),n},t.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&r_(n,n,r),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&az(e[0]-1)>1e-10&&az(e[3]-1)>1e-10?Math.sqrt(az(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){for(var t=this,n=e,r=0;r<aP.length;r++){var i=aP[r];t[i]=n[i]}},t.getLocalTransform=function(e,t){t=t||[];var n,r,i,a,o,s,l,u,c,d,h,p=e.originX||0,f=e.originY||0,m=e.scaleX,g=e.scaleY,v=e.anchorX,y=e.anchorY,x=e.rotation||0,_=e.x,b=e.y,w=e.skewX?Math.tan(e.skewX):0,S=e.skewY?Math.tan(-e.skewY):0;if(p||f||v||y){var C=p+v,j=f+y;t[4]=-C*m-w*j*g,t[5]=-j*g-S*C*m}else t[4]=t[5]=0;return t[0]=m,t[3]=g,t[1]=S*m,t[2]=w*g,x&&(n=t,void 0===i&&(i=[0,0]),a=(r=t)[0],o=r[2],s=r[4],l=r[1],u=r[3],c=r[5],d=Math.sin(x),h=Math.cos(x),n[0]=a*h+l*d,n[1]=-a*d+l*h,n[2]=o*h+u*d,n[3]=-o*d+h*u,n[4]=h*(s-i[0])+d*(c-i[1])+i[0],n[5]=h*(c-i[1])-d*(s-i[0])+i[1]),t[4]+=p+_,t[5]+=f+b,t},t.initDefaultProps=void((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0),t}(),aP=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],aN={};function aL(e,t){var n=aN[t=t||nS];n||(n=aN[t]=new iH(500));var r=n.get(e);return null==r&&(r=nj.measureText(e,t).width,n.put(e,r)),r}function aF(e,t,n,r){var i=aL(e,t),a=aH(t);return new r4(aE(0,i,n),aB(0,a,r),i,a)}function aE(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function aB(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function aH(e){return aL("国",e)}function aV(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function aW(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=aV(r[0],n.width),u+=aV(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+o,u+=s,d="middle";break;case"top":l+=o/2,u-=i,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=o-i,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var aG="__zr_normal__",aY=aP.concat(["ignore"]),aU=nX(aP,function(e,t){return e[t]=!0,e},{ignore:!1}),aq={},aX=new r4(0,0,0,0),a$=function(){function e(e){this.id=nL++,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}var r=this.transform;r||(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||(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 l=!1;if(i.copyTransform(t),null!=n.position){n.layoutRect?aX.copy(n.layoutRect):aX.copy(this.getBoundingRect()),r||aX.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(aq,n,aX):aW(aq,n,aX),i.x=aq.x,i.y=aq.y,a=aq.align,o=aq.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var c=void 0,d=void 0;"center"===u?(c=.5*aX.width,d=.5*aX.height):(c=aV(u[0],aX.width),d=aV(u[1],aX.height)),l=!0,i.originX=-i.x+c+(r?0:aX.x),i.originY=-i.y+d+(r?0:aX.y)}}null!=n.rotation&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],l||(i.originX=-h[0],i.originY=-h[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,g=void 0,v=void 0;p&&this.canBeInsideText()?(m=n.insideFill,g=n.insideStroke,(null==m||"auto"===m)&&(m=this.getInsideTextFill()),(null==g||"auto"===g)&&(g=this.getInsideTextStroke(m),v=!0)):(m=n.outsideFill,g=n.outsideStroke,(null==m||"auto"===m)&&(m=this.getOutsideFill()),(null==g||"auto"===g)&&(g=this.getOutsideStroke(m),v=!0)),((m=m||"#000")!==f.fill||g!==f.stroke||v!==f.autoStroke||a!==f.align||o!==f.verticalAlign)&&(s=!0,f.fill=m,f.stroke=g,f.autoStroke=v,f.align=a,f.verticalAlign=o,t.setDefaultTextStyle(f)),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()?ak:aT},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&iQ(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+255*!i*(1-r);return n[3]=1,i2(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},nH(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("string"==typeof e)this.attrKV(e,t);else if(n3(e))for(var n=nZ(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===aG)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,aY)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||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(aG,!1,e)},e.prototype.useState=function(e,t,n,r){var i,a=e===aG;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!(nW(o,e)>=0)||!t&&1!==o.length){if(this.stateProxy&&!a&&(i=this.stateProxy(e)),i||(i=this.states&&this.states[e]),!i&&!a)return void nF("State "+e+" not exists.");a||this.saveCurrentToNormalState(i);var l=!!(i&&i.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,i,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),i}}},e.prototype.useStates=function(e,t,n){if(e.length){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){for(var s=0;s<a;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[a-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},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=nW(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=nW(r,e),a=nW(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];nH(n,i),i.textConfig&&nH(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=nH({},r?this.textConfig:n.textConfig),nH(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<aY.length;u++){var c=aY[u],d=i&&aU[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:o&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&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 aR,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),nH(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 ao(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=nW(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?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){aZ(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){aZ(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=aZ(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;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){return this[n]||a(this,this[n]=[]),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}})}}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function aZ(e,t,n,r,i){var a=[];!function e(t,n,r,i,a,o,s,l){for(var u=nZ(i),c=a.duration,d=a.delay,h=a.additive,p=a.setToFinal,f=!n3(o),m=t.animators,g=[],v=0;v<u.length;v++){var y=u[v],x=i[y];if(null!=x&&null!=r[y]&&(f||o[y]))if(!n3(x)||nY(x)||n9(x))g.push(y);else{if(n){l||(r[y]=x,t.updateDuringAnimation(n));continue}e(t,y,r[y],x,a,o&&o[y],s,l)}else l||(r[y]=x,t.updateDuringAnimation(n),g.push(y))}var _=g.length;if(!h&&_)for(var b=0;b<m.length;b++){var w=m[b];if(w.targetName===n&&w.stopTracks(g)){var S=nW(m,w);m.splice(S,1)}}if(a.force||(_=(g=n$(g,function(e){var t,n;return!((t=i[e])===(n=r[e])||nY(t)&&nY(n)&&function(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}(t,n))})).length),_>0||a.force&&!s.length){var C=void 0,j=void 0,T=void 0;if(l){j={},p&&(C={});for(var b=0;b<_;b++){var y=g[b];j[y]=r[y],p?C[y]=i[y]:r[y]=i[y]}}else if(p){T={};for(var b=0;b<_;b++){var y=g[b];T[y]=ae(r[y]),function(e,t,n){if(nY(t[n]))if(nY(e[n])||(e[n]=[]),n5(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),aK(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(nY(i[0]))for(var s=i[0].length,l=0;l<o;l++)a[l]?aK(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else aK(a,i,o);a.length=i.length}else e[n]=t[n]}(r,i,y)}}var w=new ao(r,!1,!1,h?n$(m,function(e){return e.targetName===n}):null);w.targetName=n,a.scope&&(w.scope=a.scope),p&&C&&w.whenWithKeys(0,C,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==c?500:c,l?j:i,g).delay(d||0),t.addAnimator(w,n),s.push(w)}}(e,"",e,t,n=n||{},r,a,i);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},d=function(){--o<=0&&(s?l&&l():u&&u())};!o&&l&&l(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var h=0;h<a.length;h++){var p=a[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function aK(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}nG(a$,rj),nG(a$,aR);var aJ=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return n_(t,e),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=nW(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=nW(n,e);return r<0||(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 r4(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(),l=o.getLocalTransform(r);l?(r4.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(a$);aJ.prototype.type="group";var aQ={},a1={},a0=function(){function e(e,t,n){var r,i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new ip,o=n.renderer||"canvas";aQ[o]||(o=nZ(aQ)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new aQ[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=nw.node||nw.worker||l?null:new aS(s.getViewportRoot(),s.root),c=n.useCoarsePointer;(null==c||"auto"===c?nw.touchEventsSupported:!!c)&&(r=n6(n.pointerSize,44)),this.handler=new it(a,s,u,s.root,r),this.animation=new al({stage:{update:l?null:function(){return i._flush(!0)}}}),l||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=function(e){if(!e)return!1;if("string"==typeof e)return .4>i3(e,1);if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=i3(t[i].color,1);return(n/=r)<.4}return!1}(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=as();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=as();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&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=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 aJ&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){if(!this._disposed){var e;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,e=this.id,delete a1[e]}},e}();function a2(e,t){var n=new a0(nL++,e,t);return a1[n.id]=n,n}function a3(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return n0(e)?e.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function a4(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function a5(e){if(isNaN(e*=1))return 0;if(e>1e-14){for(var t,n,r,i,a,o=1,s=0;s<15;s++,o*=10)if(Math.round(e*o)/o===e)return s}return r=(n=(t=e.toString().toLowerCase()).indexOf("e"))>0?+t.slice(n+1):0,i=n>0?n:t.length,Math.max(0,((a=t.indexOf("."))<0?0:i-1-a)-r)}var a8=/^(?:(\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 a9(e){if(e instanceof Date)return e;if(n0(e)){var t=a8.exec(e);if(!t)return new Date(NaN);if(!t[8])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);var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(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))}return null==e?new Date(NaN):new Date(Math.round(e))}function a6(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function a7(e,t){var n=a6(e),r=Math.pow(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 oe(e){var t=parseFloat(e);return t==e&&(0!==t||!n0(e)||0>=e.indexOf("x"))?t:NaN}function ot(){return Math.round(9*Math.random())}function on(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}var or="series\0";function oi(e){return e instanceof Array?e:null==e?[]:[e]}function oa(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 oo=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function os(e){return!n3(e)||nQ(e)||e instanceof Date?e:e.value}function ol(e,t,n){var r=oc(t[e],null),i=oc(n[e],null);return null!=r&&null!=i&&r===i}function ou(e){return oc(e,"")}function oc(e,t){return null==e?t:n0(e)?e:n2(e)||"[object String]"===nI.call(e)?e+"":t}function od(e){var t=e.name;return!!(t&&t.indexOf(or))}function oh(e){return e&&null!=e.id&&0===ou(e.id).indexOf("\0_ec_\0")}function op(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?nQ(t.dataIndex)?nq(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?nQ(t.name)?nq(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function of(){var e="__ec_inner_"+om++;return function(t){return t[e]||(t[e]={})}}var om=ot();function og(e,t,n){var r=ov(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=ox(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[r+"Models"]=i.models,o[r+"Model"]=i.models[0]}),o}function ov(e,t){if(n0(e)){var n,r={};r[e+"Index"]=0,n=r}else n=e;var i=rl(),a={},o=!1;return nU(n,function(e,n){if("dataIndex"===n||"dataIndexInside"===n){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&0>nW(t.includeMainTypes,s)||(o=o||!!s,(i.get(s)||i.set(s,{}))[l]=e)}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var oy={useDefault:!0,enableAll:!1,enableNone:!1};function ox(e,t,n,r){r=r||oy;var i=n.index,a=n.id,o=n.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(rn(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[]):("all"===i&&(rn(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o})),s}var o_="___EC__COMPONENT__CONTAINER___",ob="___EC__EXTENDED_CLASS___";function ow(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function oS(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;if(n1(t=r)&&/^class\s/.test(Function.prototype.toString.call(t)))n=function(e){function t(){return e.apply(this,arguments)||this}return n_(t,e),t}(r);else{var i=n=function(){(e.$constructor||r).apply(this,arguments)},a=i.prototype;function o(){}for(var s in o.prototype=this.prototype,i.prototype=new o,a)a.hasOwnProperty(s)&&(i.prototype[s]=a[s]);i.prototype.constructor=i,i.superClass=this}return nH(n.prototype,e),n[ob]=!0,n.extend=this.extend,n.superCall=oT,n.superApply=ok,n.superClass=r,n}}function oC(e,t){e.extend=t.extend}var oj=Math.round(10*Math.random());function oT(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function ok(e,t,n){return this.superClass.prototype[t].apply(e,n)}function oI(e){var t={};e.registerClass=function(e){var n=e.type||e.prototype.type;if(n){rn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=n;var r,i,a=ow(n);a.sub?a.sub!==o_&&(((i=t[(r=a).main])&&i[o_]||((i=t[r.main]={})[o_]=!0),i)[a.sub]=e):t[a.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[o_]&&(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=ow(e),r=[],i=t[n.main];return i&&i[o_]?nU(i,function(e,t){t!==o_&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[ow(e).main]},e.getAllClassMainTypes=function(){var e=[];return nU(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[ow(e).main];return n&&n[o_]}}function oM(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&nW(r,s)>=0||i&&0>nW(i,s))){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var oD=oM([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oO=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return oD(this,e,t)},e}(),oA=of(),oz=function(e,t,n,r){if(r){var i=oA(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=oA(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}},oR="__zr_style_"+Math.round(10*Math.random()),oP={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oN={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oP[oR]=!0;var oL=["z","z2","invisible"],oF=["invisible"],oE=function(e){var t;function n(t){return e.call(this,t)||this}return n_(n,e),n.prototype._init=function(t){for(var n=nZ(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(e,t,n,r){var i,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,a=e,o=t,oB.copy(i.getBoundingRect()),i.transform&&oB.applyTransform(i.transform),oH.width=a,oH.height=o,!oB.intersect(oH))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(r&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(e,t){return this.rectContain(e,t)},n.prototype.traverse=function(e,t){e.call(t,this)},n.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},n.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||(this._paintRect=new r4(0,0,0,0)),t?r4.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+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+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},n.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new r4(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(e){return this.animate("style",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:nH(this.style,e),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(e){return ru(oP,e)},n.prototype.useStyle=function(e){e[oR]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},n.prototype.isStyleObject=function(e){return e[oR]},n.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,oL)},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=nZ(u),d=0;d<c.length;d++){var h=c[d];h in s&&(s[h]=s[h],this.style[h]=u[h])}for(var p=nZ(s),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?oF:oL,d=0;d<f.length;d++){var h=f[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=r[h]&&(this[h]=r[h])}},n.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},n.prototype._mergeStyle=function(e,t){return nH(e,t),e},n.prototype.getAnimationStyleProps=function(){return oN},n.initDefaultProps=void((t=n.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=3),n}(a$),oB=new r4(0,0,0,0),oH=new r4(0,0,0,0),oV=Math.min,oW=Math.max,oG=Math.sin,oY=Math.cos,oU=2*Math.PI,oq=rf(),oX=rf(),o$=rf();function oZ(e,t,n,r,i,a){i[0]=oV(e,n),i[1]=oV(t,r),a[0]=oW(e,n),a[1]=oW(t,r)}var oK=[],oJ=[],oQ={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o1=[],o0=[],o2=[],o3=[],o4=[],o5=[],o8=Math.min,o9=Math.max,o6=Math.cos,o7=Math.sin,se=Math.abs,st=Math.PI,sn=2*st,sr="u">typeof Float32Array,si=[];function sa(e){return Math.round(e/st*1e8)/1e8%2*st}var so=function(){var e;function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=se(n/aj/e)||0,this._uy=se(n/aj/t)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(oQ.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},t.prototype.lineTo=function(e,t){var n=se(e-this._xi),r=se(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(oQ.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},t.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(oQ.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},t.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(oQ.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),si[0]=r,si[1]=i,(o=sa(si[0]))<0&&(o+=sn),s=o-si[0],l=si[1]+s,!a&&l-o>=sn?l=o+sn:a&&o-l>=sn?l=o-sn:!a&&o>l?l=o+(sn-sa(o-l)):a&&o<l&&(l=o-(sn-sa(l-o))),si[0]=o,si[1]=l,r=si[0];var o,s,l,u=(i=si[1])-r;return this.addData(oQ.A,e,t,n,n,r,u,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=o6(i)*n+e,this._yi=o7(i)*n+t,this},t.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},t.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(oQ.R,e,t,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(oQ.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&sr&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();sr&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},t.prototype.addData=function(e,t,n,r,i,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sr&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){o2[0]=o2[1]=o4[0]=o4[1]=Number.MAX_VALUE,o3[0]=o3[1]=o5[0]=o5[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(n=t[e],r=t[e+1],i=n,a=r),o){case oQ.M:n=i=t[e++],r=a=t[e++],o4[0]=i,o4[1]=a,o5[0]=i,o5[1]=a;break;case oQ.L:oZ(n,r,t[e],t[e+1],o4,o5),n=t[e++],r=t[e++];break;case oQ.C:!function(e,t,n,r,i,a,o,s,l,u){var c=iI(e,n,i,o,oK);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<c;d++){var h=ij(e,n,i,o,oK[d]);l[0]=oV(h,l[0]),u[0]=oW(h,u[0])}c=iI(t,r,a,s,oJ);for(var d=0;d<c;d++){var p=ij(t,r,a,s,oJ[d]);l[1]=oV(p,l[1]),u[1]=oW(p,u[1])}l[0]=oV(e,l[0]),u[0]=oW(e,u[0]),l[0]=oV(o,l[0]),u[0]=oW(o,u[0]),l[1]=oV(t,l[1]),u[1]=oW(t,u[1]),l[1]=oV(s,l[1]),u[1]=oW(s,u[1])}(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],o4,o5),n=t[e++],r=t[e++];break;case oQ.Q:!function(e,t,n,r,i,a,o,s){var l=oW(oV(iz(e,n,i),1),0),u=oW(oV(iz(t,r,a),1),0),c=iO(e,n,i,l),d=iO(t,r,a,u);o[0]=oV(e,i,c),o[1]=oV(t,a,d),s[0]=oW(e,i,c),s[1]=oW(t,a,d)}(n,r,t[e++],t[e++],t[e],t[e+1],o4,o5),n=t[e++],r=t[e++];break;case oQ.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(i=o6(h)*c+l,a=o7(h)*d+u),function(e,t,n,r,i,a,o,s,l){var u=Math.abs(i-a);if(u%oU<1e-4&&u>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(oq[0]=oY(i)*n+e,oq[1]=oG(i)*r+t,oX[0]=oY(a)*n+e,oX[1]=oG(a)*r+t,rb(s,oq,oX),rw(l,oq,oX),(i%=oU)<0&&(i+=oU),(a%=oU)<0&&(a+=oU),i>a&&!o?a+=oU:i<a&&o&&(i+=oU),o){var c=a;a=i,i=c}for(var d=0;d<a;d+=Math.PI/2)d>i&&(o$[0]=oY(d)*n+e,o$[1]=oG(d)*r+t,rb(s,o$,s),rw(l,o$,l))}(l,u,c,d,h,p,f,o4,o5),n=o6(p)*c+l,r=o7(p)*d+u;break;case oQ.R:oZ(i=n=t[e++],a=r=t[e++],i+t[e++],a+t[e++],o4,o5);break;case oQ.Z:n=i,r=a}rb(o2,o2,o4),rw(o3,o3,o5)}return 0===e&&(o2[0]=o2[1]=o3[0]=o3[1]=0),new r4(o2[0],o2[1],o3[0]-o2[0],o3[1]-o2[1])},t.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||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(i=e[d],a=e[d+1],o=i,s=a);var f=-1;switch(h){case oQ.M:i=o=e[d++],a=s=e[d++];break;case oQ.L:var m=e[d++],g=e[d++],v=m-i,y=g-a;(se(v)>n||se(y)>r||d===t-1)&&(f=Math.sqrt(v*v+y*y),i=m,a=g);break;case oQ.C:var x=e[d++],_=e[d++],m=e[d++],g=e[d++],b=e[d++],w=e[d++];f=function(e,t,n,r,i,a,o,s,l){for(var u=e,c=t,d=0,h=1;h<=10;h++){var p=.1*h,f=ij(e,n,i,o,p),m=ij(t,r,a,s,p),g=f-u,v=m-c;d+=Math.sqrt(g*g+v*v),u=f,c=m}return d}(i,a,x,_,m,g,b,w,0),i=b,a=w;break;case oQ.Q:var x=e[d++],_=e[d++],m=e[d++],g=e[d++];f=function(e,t,n,r,i,a,o){for(var s=e,l=t,u=0,c=1;c<=10;c++){var d=.1*c,h=iO(e,n,i,d),p=iO(t,r,a,d),f=h-s,m=p-l;u+=Math.sqrt(f*f+m*m),s=h,l=p}return u}(i,a,x,_,m,g,0),i=m,a=g;break;case oQ.A:var S=e[d++],C=e[d++],j=e[d++],T=e[d++],k=e[d++],I=e[d++],M=I+k;d+=1,p&&(o=o6(k)*j+S,s=o7(k)*T+C),f=o9(j,T)*o8(sn,Math.abs(I)),i=o6(M)*j+S,a=o7(M)*T+C;break;case oQ.R:o=i=e[d++],s=a=e[d++],f=2*e[d++]+2*e[d++];break;case oQ.Z:var v=o-i,y=s-a;f=Math.sqrt(v*v+y*y),i=o,a=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,l,u,c,d,h=this.data,p=this._ux,f=this._uy,m=this._len,g=t<1,v=0,y=0,x=0;if(!g||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var _=0;_<m;){var b=h[_++],w=1===_;switch(w&&(i=h[_],a=h[_+1],n=i,r=a),b!==oQ.L&&x>0&&(e.lineTo(c,d),x=0),b){case oQ.M:n=i=h[_++],r=a=h[_++],e.moveTo(i,a);break;case oQ.L:o=h[_++],s=h[_++];var S=se(o-i),C=se(s-a);if(S>p||C>f){if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;e.lineTo(i*(1-T)+o*T,a*(1-T)+s*T);break e}v+=j}e.lineTo(o,s),i=o,a=s,x=0}else{var k=S*S+C*C;k>x&&(c=o,d=s,x=k)}break;case oQ.C:var I=h[_++],M=h[_++],D=h[_++],O=h[_++],A=h[_++],z=h[_++];if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;iM(i,I,D,A,T,o1),iM(a,M,O,z,T,o0),e.bezierCurveTo(o1[1],o0[1],o1[2],o0[2],o1[3],o0[3]);break e}v+=j}e.bezierCurveTo(I,M,D,O,A,z),i=A,a=z;break;case oQ.Q:var I=h[_++],M=h[_++],D=h[_++],O=h[_++];if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;iR(i,I,D,T,o1),iR(a,M,O,T,o0),e.quadraticCurveTo(o1[1],o0[1],o1[2],o0[2]);break e}v+=j}e.quadraticCurveTo(I,M,D,O),i=D,a=O;break;case oQ.A:var R=h[_++],P=h[_++],N=h[_++],L=h[_++],F=h[_++],E=h[_++],B=h[_++],H=!h[_++],V=N>L?N:L,W=se(N-L)>.001,G=F+E,Y=!1;if(g){var j=l[y++];v+j>u&&(G=F+E*(u-v)/j,Y=!0),v+=j}if(W&&e.ellipse?e.ellipse(R,P,N,L,B,F,G,H):e.arc(R,P,V,F,G,H),Y)break e;w&&(n=o6(F)*N+R,r=o7(F)*L+P),i=o6(G)*N+R,a=o7(G)*L+P;break;case oQ.R:n=i=h[_],r=a=h[_+1],o=h[_++],s=h[_++];var U=h[_++],q=h[_++];if(g){var j=l[y++];if(v+j>u){var X=u-v;e.moveTo(o,s),e.lineTo(o+o8(X,U),s),(X-=U)>0&&e.lineTo(o+U,s+o8(X,q)),(X-=q)>0&&e.lineTo(o+o9(U-X,0),s+q),(X-=U)>0&&e.lineTo(o,s+o9(q-X,0));break e}v+=j}e.rect(o,s,U,q);break;case oQ.Z:if(g){var j=l[y++];if(v+j>u){var T=(u-v)/j;e.lineTo(i*(1-T)+n*T,a*(1-T)+r*T);break e}v+=j}e.closePath(),i=n,a=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=oQ,t.initDefaultProps=void((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0),t}();function ss(e,t,n,r,i,a,o){if(0===i)return!1;var s=0,l=e;if(o>t+i&&o>r+i||o<t-i&&o<r-i||a>e+i&&a>n+i||a<e-i&&a<n-i)return!1;if(e===n)return Math.abs(a-e)<=i/2;s=(t-r)/(e-n);var u=s*a-o+(l=(e*r-n*t)/(e-n));return u*u/(s*s+1)<=i/2*i/2}var sl=2*Math.PI;function su(e){return(e%=sl)<0&&(e+=sl),e}var sc=2*Math.PI;function sd(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;(1===o||0===o)&&(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}var sh=so.CMD,sp=2*Math.PI,sf=[-1,-1,-1],sm=[-1,-1];function sg(e,t,n,r,i){for(var a,o,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,p=0,f=0;f<l;){var m,g,v,y,x,_,b,w,S,C,j,T,k,I,M=s[f++],D=1===f;switch(M===sh.M&&f>1&&!n&&(u+=sd(c,d,h,p,r,i)),D&&(c=s[f],d=s[f+1],h=c,p=d),M){case sh.M:h=s[f++],p=s[f++],c=h,d=p;break;case sh.L:if(n){if(ss(c,d,s[f],s[f+1],t,r,i))return!0}else u+=sd(c,d,s[f],s[f+1],r,i)||0;c=s[f++],d=s[f++];break;case sh.C:if(n){if(m=c,g=d,v=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f],w=s[f+1],0!==t&&(!(i>g+t)||!(i>y+t)||!(i>_+t)||!(i>w+t))&&(!(i<g-t)||!(i<y-t)||!(i<_-t)||!(i<w-t))&&(!(r>m+t)||!(r>v+t)||!(r>x+t)||!(r>b+t))&&(!(r<m-t)||!(r<v-t)||!(r<x-t)||!(r<b-t))&&iD(m,g,v,y,x,_,b,w,r,i,null)<=t/2)return!0}else u+=function(e,t,n,r,i,a,o,s,l,u){if(u>t&&u>r&&u>a&&u>s||u<t&&u<r&&u<a&&u<s)return 0;var c=ik(t,r,a,s,u,sf);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,m=0;m<c;m++){var g=sf[m],v=0===g||1===g?.5:1;ij(e,n,i,o,g)<l||(h<0&&(h=iI(t,r,a,s,sm),sm[1]<sm[0]&&h>1&&function(){var e=sm[0];sm[0]=sm[1],sm[1]=e}(),p=ij(t,r,a,s,sm[0]),h>1&&(f=ij(t,r,a,s,sm[1]))),2===h?g<sm[0]?d+=p<t?v:-v:g<sm[1]?d+=f<p?v:-v:d+=s<f?v:-v:g<sm[0]?d+=p<t?v:-v:d+=s<p?v:-v)}return d}(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;c=s[f++],d=s[f++];break;case sh.Q:if(n){if(S=c,C=d,j=s[f++],T=s[f++],k=s[f],I=s[f+1],0!==t&&(!(i>C+t)||!(i>T+t)||!(i>I+t))&&(!(i<C-t)||!(i<T-t)||!(i<I-t))&&(!(r>S+t)||!(r>j+t)||!(r>k+t))&&(!(r<S-t)||!(r<j-t)||!(r<k-t))&&iP(S,C,j,T,k,I,r,i,null)<=t/2)return!0}else u+=function(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=function(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(iS(a)){if(iC(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(iS(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var d=iv(c),u=(-o+d)/(2*a),h=(-o-d)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}(t,r,a,s,sf);if(0===l)return 0;var u=iz(t,r,a);if(u>=0&&u<=1){for(var c=0,d=iO(t,r,a,u),h=0;h<l;h++){var p=0===sf[h]||1===sf[h]?.5:1,f=iO(e,n,i,sf[h]);f<o||(sf[h]<u?c+=d<t?p:-p:c+=a<d?p:-p)}return c}var p=0===sf[0]||1===sf[0]?.5:1,f=iO(e,n,i,sf[0]);return f<o?0:a<t?p:-p}(c,d,s[f++],s[f++],s[f],s[f+1],r,i)||0;c=s[f++],d=s[f++];break;case sh.A:var O=s[f++],A=s[f++],z=s[f++],R=s[f++],P=s[f++],N=s[f++];f+=1;var L=!!(1-s[f++]);a=Math.cos(P)*z+O,o=Math.sin(P)*R+A,D?(h=a,p=o):u+=sd(c,d,a,o,r,i);var F=(r-O)*R/z+O;if(n){if(function(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var u=Math.sqrt((s-=e)*s+(l-=t)*l);if(u-o>n||u+o<n)return!1;if(Math.abs(r-i)%sc<1e-4)return!0;if(a){var c=r;r=su(i),i=su(c)}else r=su(r),i=su(i);r>i&&(i+=sc);var d=Math.atan2(l,s);return d<0&&(d+=sc),d>=r&&d<=i||d+sc>=r&&d+sc<=i}(O,A,R,P,P+N,L,t,F,i))return!0}else u+=function(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);sf[0]=-l,sf[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=sp-1e-4){r=0,i=sp;var c=a?1:-1;return o>=sf[0]+e&&o<=sf[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=sp,i+=sp);for(var h=0,p=0;p<2;p++){var f=sf[p];if(f+e>o){var m=Math.atan2(s,f),c=a?1:-1;m<0&&(m=sp+m),(m>=r&&m<=i||m+sp>=r&&m+sp<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}(O,A,R,P,P+N,L,F,i);c=Math.cos(P+N)*z+O,d=Math.sin(P+N)*R+A;break;case sh.R:h=c=s[f++],p=d=s[f++];var E=s[f++],B=s[f++];if(a=h+E,o=p+B,n){if(ss(h,p,a,p,t,r,i)||ss(a,p,a,o,t,r,i)||ss(a,o,h,o,t,r,i)||ss(h,o,h,p,t,r,i))return!0}else u+=sd(a,p,a,o,r,i),u+=sd(h,o,h,p,r,i);break;case sh.Z:if(n){if(ss(c,d,h,p,t,r,i))return!0}else u+=sd(c,d,h,p,r,i);c=h,d=p}}return n||1e-4>Math.abs(d-p)||(u+=sd(c,d,h,p,r,i)||0),0!==u}var sv=nV({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oP),sy={style:nV({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oN.style)},sx=aP.concat(["invisible","culling","z","z2","zlevel","parent"]),s_=function(e){var t;function n(t){return e.call(this,t)||this}return n_(n,e),n.prototype.update=function(){var t=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.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<sx.length;++s)i[sx[s]]=this[sx[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(t){var n=nZ(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];"style"===a?this.style?nH(this.style,o):this.useStyle(o):"shape"===a?nH(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(n0(e)){var t=i3(e,0);return t>.5?aT:t>.2?"#eee":ak}else if(e)return ak}return aT},n.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(n0(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>i3(e,0))return t}},n.prototype.buildPath=function(e,t,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},n.prototype.createPathProxy=function(){this.path=new so(!1)},n.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},n.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},n.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||4&this.__dirty)&&(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||(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 l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}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},n.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)),sg(a,o/s,!0,e,t)))return!0}if(this.hasFill())return sg(a,0,!1,e,t)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(e){return this.animate("shape",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},n.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:nH(n,e),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(e){return ru(sv,e)},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=nH({},this.shape))},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=nH({},r.shape),nH(s,n.shape)):(s=nH({},i?this.shape:r.shape),nH(s,n.shape)):l&&(s=r.shape),s)if(a){this.shape=nH({},this.shape);for(var u={},c=nZ(s),d=0;d<c.length;d++){var h=c[d];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},o)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},n.prototype.getAnimationStyleProps=function(){return sy},n.prototype.isZeroArea=function(){return!1},n.extend=function(e){var t=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n_(n,t),n.prototype.getDefaultStyle=function(){return nE(e.style)},n.prototype.getDefaultShape=function(){return nE(e.shape)},n}(n);for(var r in e)"function"==typeof e[r]&&(t.prototype[r]=e[r]);return t},n.initDefaultProps=void((t=n.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=7),n}(oE),sb=1,sw={},sS=of(),sC=of(),sj=["emphasis","blur","select"],sT=["normal","emphasis","blur","select"],sk="highlight",sI="downplay",sM="select",sD="unselect",sO="toggleSelect";function sA(e){return null!=e&&"none"!==e}function sz(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function sR(e){sz(e,"emphasis",2)}function sP(e){2===e.hoverState&&sz(e,"normal",0)}function sN(e){sz(e,"blur",1)}function sL(e){1===e.hoverState&&sz(e,"normal",0)}function sF(e){e.selected=!0}function sE(e){e.selected=!1}function sB(e,t,n){t(e,n),e.isGroup&&e.traverse(function(e){t(e,n)})}function sH(e,t){var n,r,i,a,o,s=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&nW(n,"select")>=0,a=!1;if(e instanceof s_){var o=sS(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(sA(s)||sA(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(a=!0,r=nH({},r),(u=nH({},u)).fill=s):!sA(u.fill)&&sA(s)?(a=!0,r=nH({},r),(u=nH({},u)).fill=i5(s)):!sA(u.stroke)&&sA(l)&&(a||(r=nH({},r),u=nH({},u)),u.stroke=i5(l)),r.style=u}}if(r&&null==r.z2){a||(r=nH({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,s);else if("blur"===e)return n=s,r=nW(this.currentStates,e)>=0,i=this.style.opacity,a=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(a,t)}return a}(this,["opacity"],e,{opacity:1}),null==(o=(n=n||{}).style||{}).opacity&&(n=nH({},n),o=nH({opacity:r?i:.1*a.opacity},o),n.style=o),n;else if("select"===e){var l=s;if(l&&null==l.z2){l=nH({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function sV(e){e.stateProxy=sH;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=sH),n&&(n.stateProxy=sH)}function sW(e,t){sq(e,t)||e.__highByOuter||sB(e,sR)}function sG(e,t){sq(e,t)||e.__highByOuter||sB(e,sP)}function sY(e,t){e.__highByOuter|=1<<(t||0),sB(e,sR)}function sU(e,t){(e.__highByOuter&=~(1<<(t||0)))||sB(e,sP)}function sq(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function sX(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=sC(i),o="series"===t,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);o||r.push(s),a.isBlured&&(s.group.traverse(function(e){sL(e)}),o&&n.push(i)),a.isBlured=!1}),nU(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function s$(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&sB(r,sL)}}if((n=n||"coordinateSystem",null!=e)&&t&&"none"!==t){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=o===e,u=e.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!c||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||sN(e)}),nY(t))a(e.getData(),t);else if(n3(t))for(var d=nZ(t),h=0;h<d.length;h++)a(e.getData(d[h]),t[d[h]]);l.push(e),sC(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function sZ(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){sC(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){sN(e)})}}}function sK(e,t,n,r){var i,a={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return a;var o=r.getModel().getComponent(e,t);if(!o)return a;var s=r.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===oA(l[u]).focus){i=!0;break}return{focusSelf:i,dispatchers:l}}function sJ(e){nU(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?sB(t,sF):sB(t,sE)})})}function sQ(e,t,n){var r,i,a,o,s,l;i=false,(r=e).highDownSilentOnTouch&&(r.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!i||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!i),sB(e,sV),a=e,o=t,s=n,l=oA(a),null!=o?(l.focus=o,l.blurScope=s):l.focus&&(l.focus=null)}function s1(e){return!!(e&&e.__highDownDispatcher)}function s0(e){var t=e.type;return t===sM||t===sD||t===sO}function s2(e){var t=e.type;return t===sk||t===sI}function s3(e,t,n,r,i,a,o){var s,l=!1;n1(i)?(o=a,a=i,i=null):n3(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,r,i){if(t&&t.ecModel){var a,o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(!s)return null;var u=void 0,c=void 0,d=void 0;return r?(u=n6(r.duration,200),c=n6(r.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(d=a.delay)),n1(d)&&(d=d(n,i)),n1(u)&&(u=u(n)),{duration:u||0,delay:d,easing:c}}(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),l||t.attr(n),o&&o(1),a&&a()}function s4(e,t,n,r,i,a){s3("update",e,t,n,r,i,a)}function s5(e,t,n,r,i,a){s3("enter",e,t,n,r,i,a)}function s8(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}of();var s9={},s6=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],s7=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],le=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lt(e,t,n,r,i,a,o,s){n=!i&&n||s9;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=n6(t.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===c||"auto"===c)&&(c=l||null),a||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=n6(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=n6(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=n6(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=d||s||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),i||a||null!=e.fill||!r.inheritColor||(e.fill=r.inheritColor);for(var m=0;m<s6.length;m++){var g=s6[m],v=n6(t.getShallow(g),n[g]);null!=v&&(e[g]=v)}for(var m=0;m<s7.length;m++){var g=s7[m],v=t.getShallow(g);null!=v&&(e[g]=v)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!o||!r.disableBox){for(var m=0;m<le.length;m++){var g=le[m],v=t.getShallow(g);null!=v&&(e[g]=v)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),("auto"===e.backgroundColor||"inherit"===e.backgroundColor)&&l&&(e.backgroundColor=l),("auto"===e.borderColor||"inherit"===e.borderColor)&&l&&(e.borderColor=l)}}var ln=of(),lr=new iH(50);function li(e,t,n,r,i){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!n)return t;var a=lr.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?lo(t=a.image)||a.pending.push(o):((t=nj.loadImage(e,la,la)).__zrImageSrc=e,lr.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}function la(){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 lo(e){return e&&e.width&&e.height}var ls=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ll(e,t,n,r){var i=nH({},r=r||{});i.font=t,n=n6(n,"..."),i.maxIterations=n6(r.maxIterations,2);var a=i.minChar=n6(r.minChar,0);i.cnCharWidth=aL("国",t);var o=i.ascCharWidth=aL("a",t);i.placeholder=n6(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=aL(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function lu(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var o=aL(t,i);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?function(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;o=aL(t=t.substr(0,l),i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}var lc=function(){},ld=function(e){this.tokens=[],e&&(this.tokens=e)},lh=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function lp(e,t,n,r,i){var a,o,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=aV(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(a=t.split("\n"),d=!0),r.accumWidth=f}else{var m=lm(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+p,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var g=0;g<a.length;g++){var v=a[g],y=new lc;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=o?o[g]:aL(v,c),g||d)u.push(new ld([y]));else{var x=(u[u.length-1]||(u[0]=new ld)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(v||!_||s)&&x.push(y)}}}var lf=nX(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function lm(e,t,n,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"===h){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=aL(h,t),f=!r&&!function(e){var t;return(!((t=e.charCodeAt(0))>=32)||!(t<=591))&&(!(t>=880)||!(t<=4351))&&(!(t>=4608)||!(t<=5119))&&(!(t>=7680)||!(t<=8303))||!!lf[e]}(h);if(a.length?c+p>n:i+c+p>n){c?(s||l)&&(f?(s||(s=l,l="",c=u=0),a.push(s),o.push(c-u),l+=h,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=p)):f?(a.push(l),o.push(u),l=h,u=p):(a.push(h),o.push(p));continue}c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h)}return a.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),1===a.length&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var lg=nV({strokeFirst:!0,font:nS,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},sv),lv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n_(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return ru(lg,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=function(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return aF(i[0],t,n,r);for(var a=new r4(0,0,0,0),o=0;o<i.length;o++){var s=aF(i[o],t,n,r);0===o?a.copy(s):a.union(s)}return a}(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(oE);lv.prototype.type="tspan";var ly=nV({x:0,y:0},oP),lx={style:nV({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oN.style)},l_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n_(t,e),t.prototype.createStyle=function(e){return ru(ly,e)},t.prototype._getSize=function(e){var t,n=this.style,r=n[e];if(null!=r)return r;var i=(t=n.image)&&"string"!=typeof t&&t.width&&t.height?n.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=n[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lx},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new r4(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oE);l_.prototype.type="image";var lb=Math.round;function lw(e,t,n){if(!t)return e;var r=lb(2*e);return(r+lb(t))%2==0?r/2:(r+(n?1:-1))/2}var lS=function(){this.x=0,this.y=0,this.width=0,this.height=0},lC={},lj=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultShape=function(){return new lS},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,r,i,a,o,s,l,u,c,d,h,p,f,m,g,v=function(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=lw(r,s,!0),e.y=lw(i,s,!0),e.width=Math.max(lw(r+a,s,!1)-e.x,+(0!==a)),e.height=Math.max(lw(i+o,s,!1)-e.y,+(0!==o))),e}}(lC,t,this.style);p=v.x,f=v.y,m=v.width,g=v.height,v.r=t.r,t=v}else p=t.x,f=t.y,m=t.width,g=t.height;t.r?(l=(n=t).x,u=n.y,c=n.width,d=n.height,h=n.r,c<0&&(l+=c,c=-c),d<0&&(u+=d,d=-d),"number"==typeof h?r=i=a=o=h:h instanceof Array?1===h.length?r=i=a=o=h[0]:2===h.length?(r=a=h[0],i=o=h[1]):3===h.length?(r=h[0],i=o=h[1],a=h[2]):(r=h[0],i=h[1],a=h[2],o=h[3]):r=i=a=o=0,r+i>c&&(s=r+i,r*=c/s,i*=c/s),a+o>c&&(s=a+o,a*=c/s,o*=c/s),i+a>d&&(s=i+a,i*=d/s,a*=d/s),r+o>d&&(s=r+o,r*=d/s,o*=d/s),e.moveTo(l+r,u),e.lineTo(l+c-i,u),0!==i&&e.arc(l+c-i,u+i,i,-Math.PI/2,0),e.lineTo(l+c,u+d-a),0!==a&&e.arc(l+c-a,u+d-a,a,0,Math.PI/2),e.lineTo(l+o,u+d),0!==o&&e.arc(l+o,u+d-o,o,Math.PI/2,Math.PI),e.lineTo(l,u+r),0!==r&&e.arc(l+r,u+r,r,Math.PI,1.5*Math.PI)):e.rect(p,f,m,g)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(s_);lj.prototype.type="rect";var lT={fill:"#000"},lk={style:nV({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},oN.style)},lI=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=lT,n.attr(t),n}return n_(t,e),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(){var e;this._childCursor=0,lz(e=this.style),nU(e.rich,lz),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 r4(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=r||e.clone()).union(e)):(r=r||o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||lT},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return nH(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=nZ(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},nH(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return lk},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||nS,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,a=t.font,o=aH(a),s=n6(t.lineHeight,o),l=!!t.backgroundColor,u="truncate"===t.lineOverflow,c=!1,d=t.width,h=(n=null!=d&&("break"===r||"breakAll"===r)?e?lm(e,t.font,d,"breakAll"===r,0).lines:[]:e?e.split("\n"):[]).length*s,p=n6(t.height,h);if(h>p&&u){var f=Math.floor(p/s);c=c||n.length>f,n=n.slice(0,f)}if(e&&"truncate"===r&&null!=d)for(var m=ll(d,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g={},v=0;v<n.length;v++)lu(g,n[v],m),n[v]=g.textLine,c=c||g.isTruncated;for(var y=p,x=0,v=0;v<n.length;v++)x=Math.max(aL(n[v],a),x);null==d&&(d=x);var _=x;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],d+=i[1]+i[3]),l&&(_=d),{lines:n,height:p,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:h,width:d,isTruncated:c}}(lL(e),e),i=lF(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var h=e.x||0,p=e.y||0,f=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",g=h,v=aB(p,r.contentHeight,m);if(i||n){var y=aE(h,s,f),x=aB(p,o,m);i&&this._renderBackground(e,e,y,x,s,o)}v+=c/2,n&&(g=lN(h,f,n),"top"===m?v+=n[0]:"bottom"===m&&(v-=n[2]));for(var _=0,b=!1,w=lP("fill"in e?e.fill:(b=!0,d.fill)),S=lR("stroke"in e?e.stroke:a||d.autoStroke&&!b?null:(_=2,d.stroke)),C=e.textShadowBlur>0,j=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=r.calculatedLineHeight,k=0;k<u.length;k++){var I=this._getOrCreateChild(lv),M=I.createStyle();I.useStyle(M),M.text=u[k],M.x=g,M.y=v,f&&(M.textAlign=f),M.textBaseline="middle",M.opacity=e.opacity,M.strokeFirst=!0,C&&(M.shadowBlur=e.textShadowBlur||0,M.shadowColor=e.textShadowColor||"transparent",M.shadowOffsetX=e.textShadowOffsetX||0,M.shadowOffsetY=e.textShadowOffsetY||0),M.stroke=S,M.fill=w,S&&(M.lineWidth=e.lineWidth||_,M.lineDash=e.lineDash,M.lineDashOffset=e.lineDashOffset||0),M.font=t,lA(M,e),v+=c,j&&I.setBoundingRect(new r4(aE(M.x,l,M.textAlign),aB(M.y,T,M.textBaseline),l,T))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n,r=new lh;if(null!=e&&(e+=""),!e)return r;for(var i=t.width,a=t.height,o=t.overflow,s=("break"===o||"breakAll"===o)&&null!=i?{width:i,accumWidth:0,breakAll:"breakAll"===o}:null,l=ls.lastIndex=0;null!=(n=ls.exec(e));){var u=n.index;u>l&&lp(r,e.substring(l,u),t,s),lp(r,n[2],t,s,n[1]),l=ls.lastIndex}l<e.length&&lp(r,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===o,m="truncate"===t.lineOverflow,g={};function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}t:for(var y=0;y<r.lines.length;y++){for(var x=r.lines[y],_=0,b=0,w=0;w<x.tokens.length;w++){var S=x.tokens[w],C=S.styleName&&t.rich[S.styleName]||{},j=S.textPadding=C.padding,T=j?j[1]+j[3]:0,k=S.font=C.font||t.font;S.contentHeight=aH(k);var I=n6(C.height,S.contentHeight);if(S.innerHeight=I,j&&(I+=j[0]+j[2]),S.height=I,S.lineHeight=n7(C.lineHeight,t.lineHeight,I),S.align=C&&C.align||t.align,S.verticalAlign=C&&C.verticalAlign||"middle",m&&null!=a&&d+S.lineHeight>a){var M=r.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),v(x,b,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y),r.isTruncated=r.isTruncated||r.lines.length<M;break t}var D=C.width,O=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))S.percentWidth=D,c.push(S),S.contentWidth=aL(S.text,k);else{if(O){var A=C.backgroundColor,z=A&&A.image;z&&lo(z=function(e){if("string"!=typeof e)return e;var t=lr.get(e);return t&&t.image}(z))&&(S.width=Math.max(S.width,z.width*I/z.height))}var R=f&&null!=i?i-b:null;null!=R&&R<S.width?!O||R<T?(S.text="",S.width=S.contentWidth=0):(!function(e,t,n,r,i,a){if(!n){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=ll(n,r,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)lu(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}(g,S.text,R-T,k,t.ellipsis,{minChar:t.truncateMinChar}),S.text=g.text,r.isTruncated=r.isTruncated||g.isTruncated,S.width=S.contentWidth=aL(S.text,k)):S.contentWidth=aL(S.text,k)}S.width+=T,b+=S.width,C&&(_=Math.max(_,S.lineHeight))}v(x,b,_)}r.outerWidth=r.width=n6(i,h),r.outerHeight=r.height=n6(a,d),r.contentHeight=d,r.contentWidth=h,p&&(r.outerWidth+=p[1]+p[3],r.outerHeight+=p[0]+p[2]);for(var y=0;y<c.length;y++){var S=c[y],P=S.percentWidth;S.width=parseInt(P,10)/100*r.width}return r}(lL(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var d=aE(o,r,u),h=aB(s,i,c),p=d,f=h;a&&(p+=a[3],f+=a[0]);var m=p+n;lF(e)&&this._renderBackground(e,e,d,h,r,i);for(var g=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],x=y.tokens,_=x.length,b=y.lineHeight,w=y.width,S=0,C=p,j=m,T=_-1,k=void 0;S<_&&(!(k=x[S]).align||"left"===k.align);)this._placeToken(k,e,b,f,C,"left",g),w-=k.width,C+=k.width,S++;for(;T>=0&&"right"===(k=x[T]).align;)this._placeToken(k,e,b,f,j,"right",g),w-=k.width,j-=k.width,T--;for(C+=(n-(C-p)-(m-j)-w)/2;S<=T;)k=x[S],this._placeToken(k,e,b,f,C+k.width/2,"center",g),C+=k.width,S++;f+=b}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&lF(s)&&this._renderBackground(s,t,"right"===a?i-e.width:"center"===a?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(i=lN(i,a,d),u-=e.height/2-d[0]-e.innerHeight/2);var h=this._getOrCreateChild(lv),p=h.createStyle();h.useStyle(p);var f=this._defaultStyle,m=!1,g=0,v=lP("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,f.fill)),y=lR("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||o||f.autoStroke&&!m?null:(g=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=u,x&&(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||nS,p.opacity=n7(s.opacity,t.opacity,1),lA(p,s),y&&(p.lineWidth=n7(s.lineWidth,t.lineWidth,g),p.lineDash=n6(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v);var _=e.contentWidth,b=e.contentHeight;h.setBoundingRect(new r4(aE(p.x,_,p.textAlign),aB(p.y,b,p.textBaseline),_,b))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,p=e.borderRadius,f=this;if(h||e.lineHeight||u&&c){(o=this._getOrCreateChild(lj)).useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=n,m.y=r,m.width=i,m.height=a,m.r=p,o.dirtyShape()}if(h){var g=o.style;g.fill=l||null,g.fillOpacity=n6(e.fillOpacity,1)}else if(d){(s=this._getOrCreateChild(l_)).onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=r,v.width=i,v.height=a}if(u&&c){var g=o.style;g.lineWidth=u,g.stroke=c,g.strokeOpacity=n6(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=n7(e.opacity,t.opacity,1)},t.makeFont=function(e){var t,n,r="";return(null!=(t=e).fontSize||t.fontFamily||t.fontWeight)&&(r=[e.fontStyle,e.fontWeight,"string"==typeof(n=e.fontSize)&&(-1!==n.indexOf("px")||-1!==n.indexOf("rem")||-1!==n.indexOf("em"))?n:isNaN(+n)?"12px":n+"px",e.fontFamily||"sans-serif"].join(" ")),r&&rr(r)||e.textFont||e.font},t}(oE),lM={left:!0,right:1,center:1},lD={top:1,bottom:1,middle:1},lO=["fontStyle","fontWeight","fontSize","fontFamily"];function lA(e,t){for(var n=0;n<lO.length;n++){var r=lO[n],i=t[r];null!=i&&(e[r]=i)}}function lz(e){if(e){e.font=lI.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||lM[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||lD[n]?n:"top",e.padding&&(e.padding=rt(e.padding))}}function lR(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function lP(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function lN(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function lL(e){var t=e.text;return null!=t&&(t+=""),t}function lF(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var lE=["textStyle","color"],lB=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lH=new lI,lV=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(lE):null)},e.prototype.getFont=function(){var e,t,n;return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(t=this.ecModel)&&t.getModel("textStyle"),rr([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(" "))},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lB.length;n++)t[lB[n]]=this.getShallow(lB[n]);return lH.useStyle(t),lH.update(),lH.getBoundingRect()},e}(),lW=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lG=oM(lW),lY=function(){function e(){}return e.prototype.getLineStyle=function(e){return lG(this,e)},e}(),lU=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lq=oM(lU),lX=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return lq(this,e,t)},e}(),l$=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){nB(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new this.constructor(nE(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!nw.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else 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]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();oS(l$),w=["__\0is_clz",oj++].join("_"),l$.prototype[w]=!0,l$.isInstance=function(e){return!!(e&&e[w])},nG(l$,lY),nG(l$,lX),nG(l$,oO),nG(l$,lV);var lZ=Math.round(10*Math.random());function lK(e){return[e||"",lZ++].join("_")}var lJ={},lQ={},l1=nw.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function l0(e,t){lQ[e=e.toUpperCase()]=new l$(t),lJ[e]=t}l0("EN",{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:". "}}}}),l0("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var l2={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},l3="{yyyy}-{MM}-{dd}",l4={year:"{yyyy}",month:"{yyyy}-{MM}",day:l3,hour:l3+" "+l2.hour,minute:l3+" "+l2.minute,second:l3+" "+l2.second,millisecond:l2.none},l5=["year","month","day","hour","minute","second","millisecond"],l8=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function l9(e,t){return e+="","0000".substr(0,t-e.length)+e}function l6(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 l7(e,t,n,r){var i=a9(e),a=i[un(n)](),o=i[ur(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[ui(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[ua(n)](),d=(c-1)%12+1,h=i[uo(n)](),p=i[us(n)](),f=i[ul(n)](),m=c>=12?"pm":"am",g=m.toUpperCase(),v=(r instanceof l$?r:lQ[r||l1]||lQ.EN).getModel("time"),y=v.get("month"),x=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,l9(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,l9(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,l9(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,l9(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,l9(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,l9(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,l9(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,l9(f,3)).replace(/{S}/g,f+"")}function ue(e,t){var n=a9(e),r=n[ur(t)]()+1,i=n[ui(t)](),a=n[ua(t)](),o=n[uo(t)](),s=n[us(t)](),l=0===n[ul(t)](),u=l&&0===s,c=u&&0===o,d=c&&0===a,h=d&&1===i;if(h&&1===r)return"year";if(h)return"month";if(d)return"day";if(c)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function ut(e,t,n){var r=n2(e)?a9(e):e;switch(t=t||ue(e,n)){case"year":return r[un(n)]();case"half-year":return+(r[ur(n)]()>=6);case"quarter":return Math.floor((r[ur(n)]()+1)/4);case"month":return r[ur(n)]();case"day":return r[ui(n)]();case"half-day":return r[ua(n)]()/24;case"hour":return r[ua(n)]();case"minute":return r[uo(n)]();case"second":return r[us(n)]();case"millisecond":return r[ul(n)]()}}function un(e){return e?"getUTCFullYear":"getFullYear"}function ur(e){return e?"getUTCMonth":"getMonth"}function ui(e){return e?"getUTCDate":"getDate"}function ua(e){return e?"getUTCHours":"getHours"}function uo(e){return e?"getUTCMinutes":"getMinutes"}function us(e){return e?"getUTCSeconds":"getSeconds"}function ul(e){return e?"getUTCMilliseconds":"getMilliseconds"}function uu(e){return e?"setUTCMonth":"setMonth"}function uc(e){return e?"setUTCDate":"setDate"}function ud(e){return e?"setUTCHours":"setHours"}function uh(e){return e?"setUTCMinutes":"setMinutes"}function up(e){return e?"setUTCSeconds":"setSeconds"}function uf(e){return e?"setUTCMilliseconds":"setMilliseconds"}var um=["a","b","c","d","e","f","g"],ug=function(e,t){return"{"+e+(null==t?"":t)+"}"},uv=["left","right","top","bottom","width","height"],uy=[["width","left","right"],["height","top","bottom"]];function ux(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var m=h.width+(f?-f.x+h.x:0);(c=a+m)>r||l.newline?(a=0,c=m,o+=s+n,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(f?-f.y+h.y:0);(d=o+g)>i||l.newline?(a+=s+n,o=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=d+n)})}function u_(e){var t=e.layoutMode||e.constructor.layoutMode;return n3(t)?t:t?{type:t}:null}function ub(e,t,n){var r=n&&n.ignoreSize;nQ(r)||(r=[r,r]);var i=o(uy[0],0),a=o(uy[1],1);function o(n,i){var a={},o=0,u={},c=0;if(nU(n,function(t){u[t]=e[t]}),nU(n,function(e){s(t,e)&&(a[e]=u[e]=t[e]),l(a,e)&&o++,l(u,e)&&c++}),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2===c||!o)return u;if(o>=2)return a;for(var d=0;d<n.length;d++){var h=n[d];if(!s(a,h)&&s(e,h)){a[h]=e[h];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){nU(e,function(e){t[e]=n[e]})}u(uy[0],e,i),u(uy[1],e,a)}nJ(ux,"vertical"),nJ(ux,"horizontal");function uw(e,t){return t&&e&&nU(uv,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var uS=of(),uC=function(e){var t;function n(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=lK("ec_cpt_model"),i}return n_(n,e),n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=u_(this),r=n?uw({},e):{};nB(e,t.getTheme().get(this.mainType)),nB(e,this.getDefaultOption()),n&&ub(e,r,n)},n.prototype.mergeOption=function(e,t){nB(this.option,e,!0);var n=u_(this);n&&ub(this.option,e,n)},n.prototype.optionUpdated=function(e,t){},n.prototype.getDefaultOption=function(){var e=this.constructor;if(!(e&&e[ob]))return e.defaultOption;var t=uS(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=nB(a,n[o],!0);t.defaultOption=a}return t.defaultOption},n.prototype.getReferringComponents=function(e,t){return ox(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)},t)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(e){this.option.zlevel=e},n.protoInitialize=void((t=n.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0),n}(l$);oC(uC,l$),oI(uC),S={},uC.registerSubTypeDefaulter=function(e,t){S[ow(e).main]=t},uC.determineSubType=function(e,t){var n=t.type;if(!n){var r=ow(e).main;uC.hasSubTypes(e)&&S[r]&&(n=S[r](t))}return n};var uj=function(e){var t=[];return nU(uC.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=nq(t,function(e){return ow(e).main}),"dataset"!==e&&0>=nW(t,"dataset")&&t.unshift("dataset"),t};function uT(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}uC.topologicalTravel=function(e,t,n,r){if(e.length){var i,a,o,s=(a={},o=[],nU(i=t,function(e){var t,n,r,s=uT(a,e),l=(t=s.originalDeps=uj(e),n=i,r=[],nU(t,function(e){nW(n,e)>=0&&r.push(e)}),r);s.entryCount=l.length,0===s.entryCount&&o.push(e),nU(l,function(t){0>nW(s.predecessor,t)&&s.predecessor.push(t);var n=uT(a,t);0>nW(n.successor,t)&&n.successor.push(e)})}),{graph:a,noEntryList:o}),l=s.graph,u=s.noEntryList,c={};for(nU(e,function(e){c[e]=!0});u.length;){var d=u.pop(),h=l[d],p=!!c[d];p&&(n.call(r,d,h.originalDeps.slice()),delete c[d]),nU(h.successor,p?m:f)}nU(c,function(){throw Error("")})}function f(e){l[e].entryCount--,0===l[e].entryCount&&u.push(e)}function m(e){c[e]=!0,f(e)}};var uk="";"u">typeof navigator&&(uk=navigator.platform||"");var uI="rgba(0, 0, 0, 0.2)";let uM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:uI,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uI,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uI,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uI,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uI,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uI,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uk.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var uD=rl(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),uO="original",uA="arrayRows",uz="objectRows",uR="keyedColumns",uP="typedArray",uN="unknown",uL="column",uF=of();function uE(e,t){return function(e,t,n,r,i,a){var o,s,l;if(n5(e))return 3;if(r){var u=r[a];n3(u)?(s=u.name,l=u.type):n0(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(t===uA)if("row"===n){for(var c=e[a],d=0;d<(c||[]).length&&d<5;d++)if(null!=(o=m(c[i+d])))return o}else for(var d=0;d<e.length&&d<5;d++){var h=e[i+d];if(h&&null!=(o=m(h[a])))return o}else if(t===uz){if(!s)return 3;for(var d=0;d<e.length&&d<5;d++){var p=e[d];if(p&&null!=(o=m(p[s])))return o}}else if(t===uR){if(!s)return 3;var c=e[s];if(!c||n5(c))return 3;for(var d=0;d<c.length&&d<5;d++)if(null!=(o=m(c[d])))return o}else if(t===uO)for(var d=0;d<e.length&&d<5;d++){var p=e[d],f=os(p);if(!nQ(f))return 3;if(null!=(o=m(f[a])))return o}function m(e){var t=n0(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?2:3:t&&"-"!==e?1:void 0}return 3}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var uB=rl(),uH=of();of();var uV=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){return function(e,t,n,r,i,a,o){var s=t(a=a||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=o&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;if((c=c||n)&&c.length){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}(this,uH,oi(this.get("color",!0)),this.get("colorLayer",!0),e,t,n)},e.prototype.clearColorPalette=function(){var e,t;e=this,(t=uH)(e).paletteIdx=0,t(e).paletteNameMap={}},e}(),uW="\0_ec_inner",uG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n_(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new l$(r),this._locale=new l$(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=uq(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,uq(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):O(this,i),n=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=r.getMediaOption(this);o.length&&nU(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=rl(),s=t&&t.replaceMergeMainTypeMap;uF(this).datasetMap=rl(),nU(e,function(e,t){null!=e&&(uC.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?nE(e):nB(n[t],e,!0))}),s&&s.each(function(e,t){uC.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),uC.topologicalTravel(a,uC.getAllClassMainTypes(),function(t){var a,o,l,u,c,d,h,p,f,m,g,v,y,x,_,b,w,S,C,j,T=function(e,t,n){var r=uB.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,oi(e[t])),k=r.get(t),I=k?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",D=(y=k,x=T,_="normalMerge"===I,b="replaceMerge"===I,w="replaceAll"===I,y=y||[],x=(x||[]).slice(),S=rl(),nU(x,function(e,t){if(!n3(e)){x[t]=null;return}}),C=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&null!=a.id&&t.set(a.id,i),r.push({existing:"replaceMerge"===n||oh(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(y,S,I),(_||b)&&(a=C,o=y,l=S,nU(u=x,function(e,t){if(e&&null!=e.id){var n=ou(e.id),r=l.get(n);if(null!=r){var i=a[r];rn(!i.newOption,'Duplicated option on id "'+n+'".'),i.newOption=e,i.existing=o[r],u[t]=null}}})),_&&(c=C,nU(d=x,function(e,t){if(e&&null!=e.name)for(var n=0;n<c.length;n++){var r=c[n].existing;if(!c[n].newOption&&r&&(null==r.id||null==e.id)&&!oh(e)&&!oh(r)&&ol("name",r,e)){c[n].newOption=e,d[t]=null;return}}})),_||b?(h=C,p=x,f=b,nU(p,function(e){if(e){for(var t,n=0;(t=h[n])&&(t.newOption||oh(t.existing)||t.existing&&null!=e.id&&!ol("id",e,t.existing));)n++;t?(t.newOption=e,t.brandNew=f):h.push({newOption:e,brandNew:f,existing:null,keyInfo:null}),n++}})):w&&(m=C,nU(x,function(e){m.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})),g=C,v=rl(),nU(g,function(e){var t=e.existing;t&&v.set(t.id,e)}),nU(g,function(e){var t=e.newOption;rn(!t||null==t.id||!v.get(t.id)||v.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&v.set(t.id,e),e.keyInfo||(e.keyInfo={})}),nU(g,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(n3(r)){if(i.name=null!=r.name?ou(r.name):n?n.name:or+t,n)i.id=ou(n.id);else if(null!=r.id)i.id=ou(r.id);else{var a=0;do i.id="\0"+i.name+"\0"+a++;while(v.get(i.id))}v.set(i.id,e)}}),C);nU(D,function(e){var n,r,i,a,o=e.newOption;n3(o)&&(e.keyInfo.mainType=t,e.keyInfo.subType=(n=t,r=o,i=e.existing,a=uC,r.type?r.type:i?i.subType:a.determineSubType(n,r)))}),n[t]=null,r.set(t,null),i.set(t,0);var O=[],A=[],z=0;nU(D,function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,o=uC.getClass(t,e.keyInfo.subType,!a);if(!o)return;if("tooltip"===t){if(j)return;j=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=nH({componentIndex:n},e.keyInfo);nH(r=new o(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(O.push(r.option),A.push(r),z++):(O.push(void 0),A.push(void 0))},this),n[t]=O,r.set(t,A),i.set(t,z),"series"===t&&M(this)},this),this._seriesIndices||M(this)},t.prototype.getOption=function(){var e=nE(this.option);return nU(e,function(t,n){if(uC.hasClass(n)){for(var r=oi(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!oh(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[uW],e},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(null==t){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t,n=e.mainType;if(!n)return[];var r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(n);return o&&o.length?(null!=r?(t=[],nU(oi(r),function(e){o[e]&&t.push(o[e])})):t=null!=i?uY("id",i,o):null!=a?uY("name",a,o):n$(o,function(e){return!!e}),uU(t,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,a,o=e.query,s=e.mainType,l=(t=o,n=s+"Index",r=s+"Id",i=s+"Name",t&&(null!=t[n]||null!=t[r]||null!=t[i])?{mainType:s,index:t[n],id:t[r],name:t[i]}:null);return a=uU(l?this.queryComponents(l):n$(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?n$(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(n1(e))r.each(function(n,r){for(var i=0;n&&i<n.length;i++){var a=n[i];a&&e.call(t,r,a,a.componentIndex)}});else for(var i=n0(e)?r.get(e):n3(e)?this.findComponents(e):null,a=0;i&&a<i.length;a++){var o=i[a];o&&t.call(n,o,o.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=oc(e,null);return n$(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return n$(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return n$(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){D(this),nU(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){nU(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){D(this),nU(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 nU(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return D(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){D(this);var n=[];nU(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=rl(n)},t.prototype.restoreData=function(e){M(this);var t=this._componentsMap,n=[];t.each(function(e,t){uC.hasClass(t)&&n.push(t)}),uC.topologicalTravel(n,uC.getAllClassMainTypes(),function(n){nU(t.get(n),function(t){t&&("series"!==n||!function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e))&&t.restoreData()})})},t.internalField=void(M=function(e){var t=e._seriesIndices=[];nU(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=rl(t)},D=function(e){},O=function(e,t){e.option={},e.option[uW]=1,e._componentsMap=rl({series:[]}),e._componentsCount=rl();var n,r,i,a=t.aria;n3(a)&&null==a.enabled&&(a.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,nU(r,function(e,t){("colorLayer"!==t||!i)&&(uC.hasClass(t)||("object"==typeof e?n[t]=n[t]?nB(n[t],e,!1):nE(e):null==n[t]&&(n[t]=e)))}),nB(t,uM,!1),e._mergeOption(t,null)}),t}(l$);function uY(e,t,n){if(nQ(t)){var r=rl();return nU(t,function(e){null!=e&&null!=oc(e,null)&&r.set(e,!0)}),n$(n,function(t){return t&&r.get(t[e])})}var i=oc(t,null);return n$(n,function(t){return t&&null!=i&&t[e]===i})}function uU(e,t){return t.hasOwnProperty("subType")?n$(e,function(e){return e&&e.subType===t.subType}):e}function uq(e){var t=rl();return e&&nU(oi(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}nG(uG,uV);var uX=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let u$=function(e){nU(uX,function(t){this[t]=nK(e[t],e)},this)};var uZ={},uK=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];nU(uZ,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){nU(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){uZ[e]=t},e.get=function(e){return uZ[e]},e}(),uJ=/^(min|max)?(.+)$/,uQ=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(nU(oi(e.series),function(e){e&&e.data&&n5(e.data)&&(e.data[ri]=!0)}),nU(oi(e.dataset),function(e){e&&e.source&&n5(e.source)&&(e.source[ri]=!0)})),e=nE(e);var r=this._optionBackup,i=function(e,t,n){var r,i,a=[],o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||o&&o.timeline);function h(e){nU(t,function(t){t(e,n)})}return o?(i=o).timeline||(i.timeline=s):((d||c)&&(e.options=e.media=null),i=e),c&&nQ(u)&&nU(u,function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))}),h(i),nU(l,function(e){return h(e)}),nU(a,function(e){return h(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:a}}(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=[],nE(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=nE(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var u=0,c=a.length;u<c;u++)(function(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return nU(e,function(e,t){var n=t.match(uJ);if(n&&n[1]&&n[2]){var a,o,s,l=n[1];a=r[n[2].toLowerCase()],o=e,("min"===(s=l)?a>=o:"max"===s?a<=o:a===o)||(i=!1)}}),i})(a[u].query,r,i)&&s.push(u);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=nq(s,function(e){return nE(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}(),u1=n3,u0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u2(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=u0.length;n<r;n++){var i=u0[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?nB(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?nB(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function u3(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,nV(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 u4(e){u3(e,"itemStyle"),u3(e,"lineStyle"),u3(e,"areaStyle"),u3(e,"label"),u3(e,"labelLine"),u3(e,"upperLabel"),u3(e,"edgeLabel")}function u5(e,t){var n=u1(e)&&e[t],r=u1(n)&&n.textStyle;if(r)for(var i=0,a=oo.length;i<a;i++){var o=oo[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function u8(e){e&&(u4(e),u5(e,"label"),e.emphasis&&u5(e.emphasis,"label"))}function u9(e){return nQ(e)?e:e?[e]:[]}function u6(e){return(nQ(e)?e[0]:e)||{}}function u7(e){e&&nU(ce,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var ce=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ct=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],cn=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function cr(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<cn.length;n++){var r=cn[n][1],i=cn[n][0];null!=t[r]&&(t[i]=t[r])}}function ci(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function ca(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function co(e,t){var n;nU(u9(e.series),function(e){u1(e)&&function(e){if(u1(e)){u2(e),u4(e),u5(e,"label"),u5(e,"upperLabel"),u5(e,"edgeLabel"),e.emphasis&&(u5(e.emphasis,"label"),u5(e.emphasis,"upperLabel"),u5(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(u2(t),u8(t));var n=e.markLine;n&&(u2(n),u8(n));var r=e.markArea;r&&u8(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!n5(a))for(var o=0;o<a.length;o++)u8(a[o]);nU(e.categories,function(e){u4(e)})}if(i&&!n5(i))for(var o=0;o<i.length;o++)u8(i[o]);if((t=e.markPoint)&&t.data)for(var s=t.data,o=0;o<s.length;o++)u8(s[o]);if((n=e.markLine)&&n.data)for(var l=n.data,o=0;o<l.length;o++)nQ(l[o])?(u8(l[o][0]),u8(l[o][1])):u8(l[o]);"gauge"===e.type?(u5(e,"axisLabel"),u5(e,"title"),u5(e,"detail")):"treemap"===e.type?(u3(e.breadcrumb,"itemStyle"),nU(e.levels,function(e){u4(e)})):"tree"===e.type&&u4(e.leaves)}}(e)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),nU(n,function(t){nU(u9(e[t]),function(e){e&&(u5(e,"axisLabel"),u5(e.axisPointer,"label"))})}),nU(u9(e.parallel),function(e){var t=e&&e.parallelAxisDefault;u5(t,"axisLabel"),u5(t&&t.axisPointer,"label")}),nU(u9(e.calendar),function(e){u3(e,"itemStyle"),u5(e,"dayLabel"),u5(e,"monthLabel"),u5(e,"yearLabel")}),nU(u9(e.radar),function(e){u5(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),nU(u9(e.geo),function(e){u1(e)&&(u8(e),nU(u9(e.regions),function(e){u8(e)}))}),nU(u9(e.timeline),function(e){u8(e),u3(e,"label"),u3(e,"itemStyle"),u3(e,"controlStyle",!0);var t=e.data;nQ(t)&&nU(t,function(e){n3(e)&&(u3(e,"label"),u3(e,"itemStyle"))})}),nU(u9(e.toolbox),function(e){u3(e,"iconStyle"),nU(e.feature,function(e){u3(e,"iconStyle")})}),u5(u6(e.axisPointer),"label"),u5(u6(e.tooltip).axisPointer,"label"),e.series=oi(e.series),nU(e.series,function(e){if(n3(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),ci(e.label);var n=e.data;if(n&&!n5(n))for(var r=0;r<n.length;r++)ci(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},e.emphasis.scaleSize=null)}else if("gauge"===t){var i=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=i&&function(e,t,n,r){for(var i,a=t.split(","),o=e,s=0;s<a.length-1;s++)null==o[i=a[s]]&&(o[i]={}),o=o[i];null==o[a[s]]&&(o[a[s]]=n)}(e,"itemStyle.color",i)}else if("bar"===t){cr(e),cr(e.backgroundStyle),cr(e.emphasis);var n=e.data;if(n&&!n5(n))for(var r=0;r<n.length;r++)"object"==typeof n[r]&&(cr(n[r]),cr(n[r]&&n[r].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),ca(e),function e(t,n){if(t)for(var r=0;r<t.length;r++)n(t[r]),t[r]&&e(t[r].children,n)}(e.data,ca)}else"graph"===t||"sankey"===t?e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency")):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&nV(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),u7(e)}}),e.dataRange&&(e.visualMap=e.dataRange),nU(ct,function(t){var n=e[t];n&&(nQ(n)||(n=[n]),nU(n,function(e){u7(e)}))})}function cs(e){nU(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(a,u,c){var d,h,p=o.get(t.stackedDimension,c);if(isNaN(p))return i;s?h=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var f=NaN,m=n-1;m>=0;m--){var g=e[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,d)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=function(e,t){var n=Math.max(a5(e),a5(t)),r=e+t;return n>20?r:a4(r,n)}(p,v),f=v;break}}}return r[0]=p,r[1]=f,r})})}var cl=function(e){this.data=e.data||(e.sourceFormat===uR?{}:[]),this.sourceFormat=e.sourceFormat||uN,this.seriesLayoutBy=e.seriesLayoutBy||uL,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];null==r.type&&1===uE(this,n)&&(r.type="ordinal")}};function cu(e){return e instanceof cl}function cc(e,t,n){n=n||ch(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){if(!e)return{dimensionsDefine:cp(i),startIndex:o,dimensionsDetectedCount:a};if(t===uA){var a,o;"auto"===r||null==r?cf(function(e){null!=e&&"-"!==e&&(n0(e)?null==o&&(o=1):o=0)},n,e,10):o=n2(r)?r:+!!r,i||1!==o||(i=[],cf(function(e,t){i[t]=null!=e?e+"":""},n,e,1/0)),a=i?i.length:"row"===n?e.length:e[0]?e[0].length:null}else if(t===uz)i||(i=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return nZ(t)}(e));else if(t===uR)i||(i=[],nU(e,function(e,t){i.push(t)}));else if(t===uO){var s=os(e[0]);a=nQ(s)&&s.length||1}return{startIndex:o,dimensionsDefine:cp(i),dimensionsDetectedCount:a}}(e,n,r,t.sourceHeader,t.dimensions);return new cl({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:nE(t)})}function cd(e){return new cl({data:e,sourceFormat:n5(e)?uP:uO})}function ch(e){var t=uN;if(n5(e))t=uP;else if(nQ(e)){0===e.length&&(t=uA);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(nQ(i)||n5(i)){t=uA;break}else if(n3(i)){t=uz;break}}}}else if(n3(e)){for(var a in e)if(rd(e,a)&&nY(e[a])){t=uR;break}}return t}function cp(e){if(e){var t=rl();return nq(e,function(e,n){var r={name:(e=n3(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function cf(e,t,n,r){if("row"===t)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 cm(e){var t=e.sourceFormat;return t===uz||t===uR}var cg=function(){var e;function t(e,t){var n=cu(e)?e:cd(e);this._source=n;var r=this._data=n.data;n.sourceFormat===uP&&(this._offset=0,this._dimSize=t,this._data=r),N(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,t){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=void((e=t.prototype).pure=!1,e.persistent=!0),t.internalField=function(){N=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,u=a.dimensionsDefine;nH(e,P[cS(o,s)]),o===uP?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=nK(function(e,t){return cy[cS(e,t)]}(o,s),null,i,l,u),e.count=nK(function(e,t){return c_[cS(e,t)]}(o,s),null,i,l,u))};var e,t=function(e,t){e-=this._offset,t=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],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[o],h=0;h<c;h++){var p=i[h*a+o];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[uA+"_"+uL]={pure:!0,appendData:i},e[uA+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[uz]={pure:!0,appendData:i},e[uR]={pure:!0,appendData:function(e){var t=this._data;nU(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[uO]={appendData:i},e[uP]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},P=e}(),t}(),cv=function(e,t,n,r){return e[r]},cy=((A={})[uA+"_"+uL]=function(e,t,n,r){return e[r+t]},A[uA+"_row"]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=0;o<e.length;o++){var s=e[o];a[o]=s?s[r]:null}return a},A[uz]=cv,A[uR]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},A[uO]=cv,A),cx=function(e,t,n){return e.length},c_=((z={})[uA+"_"+uL]=function(e,t,n){return Math.max(0,e.length-t)},z[uA+"_row"]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},z[uz]=cx,z[uR]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},z[uO]=cx,z),cb=function(e,t,n){return e[t]},cw=((R={})[uA]=cb,R[uz]=function(e,t,n){return e[n]},R[uR]=cb,R[uO]=function(e,t,n){var r=os(e);return r instanceof Array?r[t]:r},R[uP]=cb,R);function cS(e,t){return e===uA?e+"_"+t:e}function cC(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return cw[a](r,o,s)}var l=r;return a===uO&&(l=os(r)),l}}}var cj=/\{@(.+?)\}/g,cT=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"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,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:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||"normal";var o=this.getData(n),s=this.getDataParams(e,n);return(a&&(s.value=a.interpolatedValue),null!=r&&nQ(s.value)&&(s.value=s.value[r]),i||(i=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),n1(i))?(s.status=t,s.dimensionIndex=r,i(s)):n0(i)?(function(e,t,n){nQ(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=um[a];e=e.replace(ug(o),ug(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(ug(um[l],s),u)}return e})(i,s).replace(cj,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=cC(o,e,i);if(a&&nQ(a.interpolatedValue)){var l=o.getDimensionIndex(i);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return cC(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function ck(e){return new cI(e)}var cI=function(){function e(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,n,r,i,a=this._upstream,o=e&&e.skip;if(this._dirty&&a){var s=this.context;s.data=s.outputData=a.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(r=this._plan(this.context));var l=((t=this._modBy)>=1||(t=1),t),u=this._modDataCount||0,c=((n=e&&e.modBy)>=1||(n=1),n),d=e&&e.modDataCount||0;(l!==c||u!==d)&&(r="reset"),(this._dirty||"reset"===r)&&(this._dirty=!1,i=this._doReset(o)),this._modBy=c,this._modDataCount=d;var h=e&&e.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!o&&(i||p<f)){var m=this._progress;if(nQ(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],p,f,c,d);else this._doProgress(m,p,f,c,d)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;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){cM.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:cM.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),nQ(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var t,n,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,this._disposed=!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}(),cM=function(){var e,t,n,r,i,a={reset:function(l,u,c,d){t=l,e=u,n=c,i=Math.ceil((r=d)/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 cD(e){throw Error(e)}function cO(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||n2(e)||null==e||"-"===e||(e=+a9(e)),null==e||""===e?NaN:Number(e))}rl({number:function(e){return parseFloat(e)},time:function(e){return+a9(e)},trim:function(e){return n0(e)?rr(e):e}});var cA={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}};(function(e,t){n2(t)||cD(""),this._opFn=cA[e],this._rvalFloat=oe(t)}).prototype.evaluate=function(e){return n2(e)?this._opFn(e,this._rvalFloat):this._opFn(oe(e),this._rvalFloat)},(function(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}).prototype.evaluate=function(e,t){var n=n2(e)?e:oe(e),r=n2(t)?t:oe(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=n0(e),s=n0(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},(function(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=oe(t)}).prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(t=oe(e)===this._rvalFloat)}return this._isEQ?t:!t};var cz=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 cO(e,t)},e}();function cR(e){return cE(e.sourceFormat)||cD(""),e.data}function cP(e){var t=e.sourceFormat,n=e.data;if(cE(t)||cD(""),t===uA){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===uz){for(var r=[],i=0,a=n.length;i<a;i++)r.push(nH({},n[i]));return r}}function cN(e,t,n){if(null!=n){if(n2(n)||!isNaN(n)&&!rd(t,n))return e[n];else if(rd(t,n))return t[n]}}function cL(e){return nE(e)}var cF=rl();function cE(e){return e===uA||e===uz}var cB="undefined",cH=typeof Uint32Array===cB?Array:Uint32Array,cV=typeof Uint16Array===cB?Array:Uint16Array,cW=typeof Int32Array===cB?Array:Int32Array,cG=typeof Float64Array===cB?Array:Float64Array,cY={float:cG,int:cW,ordinal:Array,number:Array,time:cG};function cU(e){return e>65535?cH:cV}function cq(){return[1/0,-1/0]}function cX(e,t,n,r,i){var a=cY[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(r)}var c$=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=rl()}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=L[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],cm(r),this._dimensions=nq(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(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new cY[t||"float"](this._rawCount),this._rawExtent[i]=cq(),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;0===a&&(i[e]=cq());for(var s=i[e],l=a;l<o;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,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),l=0;l<i;l++){var u=r[l];cX(n,l,u.type,s,!0)}for(var c=[],d=o;d<s;d++)for(var h=d-o,p=0;p<i;p++){var u=r[p],f=L.arrayRows.call(this,e[h]||c,u.property,h,p);n[p][d]=f;var m=a[p];f<m[0]&&(m[0]=f),f>m[1]&&(m[1]=f)}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,l=nq(a,function(e){return e.property}),u=0;u<o;u++){var c=a[u];s[u]||(s[u]=cq()),cX(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],h=e;h<t;h++){d=r.getItem(h,d);for(var p=0;p<o;p++){var f=i[p],m=this._dimValueGetter(d,l[p],h,p);f[h]=m;var g=s[p];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!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(null==t){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 0===r?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(null!=n&&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))return a;i=a-1}}return -1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<a||d===a&&c>=0&&o<0)&&(a=d,o=c,s=0),c===o&&(i[s++]=l))}return i.length=s,i},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=cU(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(cU(n._rawCount))(r),a=[],o=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var d=void 0,h=n.getRawIndex(c);if(0===o)d=t(c);else if(1===o)d=t(u[l][h],c);else{for(var p=0;p<o;p++)a[p]=u[e[p]][h];a[p]=c,d=t.apply(null,a)}d&&(i[s++]=h)}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=nZ(e),i=r.length;if(!i)return this;var a=t.count(),o=new(cU(t._rawCount))(a),s=0,l=r[0],u=e[l][0],c=e[l][1],d=t._chunks,h=!1;if(!t._indices){var p=0;if(1===i){for(var f=d[r[0]],m=0;m<n;m++){var g=f[m];(g>=u&&g<=c||isNaN(g))&&(o[s++]=p),p++}h=!0}else if(2===i){for(var f=d[r[0]],v=d[r[1]],y=e[r[1]][0],x=e[r[1]][1],m=0;m<n;m++){var g=f[m],_=v[m];(g>=u&&g<=c||isNaN(g))&&(_>=y&&_<=x||isNaN(_))&&(o[s++]=p),p++}h=!0}}if(!h)if(1===i)for(var m=0;m<a;m++){var b=t.getRawIndex(m),g=d[r[0]][b];(g>=u&&g<=c||isNaN(g))&&(o[s++]=b)}else for(var m=0;m<a;m++){for(var w=!0,b=t.getRawIndex(m),S=0;S<i;S++){var C=r[S],g=d[C][b];(g<e[C][0]||g>e[C][1])&&(w=!1)}w&&(o[s++]=t.getRawIndex(m))}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=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=cq();for(var c=0;c<o;c++){for(var d=e.getRawIndex(c),h=0;h<a;h++)s[h]=r[t[h]][d];s[a]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(var u=0;u<p.length;u++){var f=t[u],m=p[u],g=l[f],v=r[f];v&&(v[d]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(cU(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));d[l++]=c;for(var h=1;h<s-1;h+=u){for(var p=Math.min(h+u,s-1),f=Math.min(h+2*u,s),m=(f+p)/2,g=0,v=p;v<f;v++){var y=this.getRawIndex(v),x=o[y];isNaN(x)||(g+=x)}g/=f-p;var _=h,b=Math.min(h+u,s),w=h-1,S=o[c];n=-1,i=_;for(var C=-1,j=0,v=_;v<b;v++){var y=this.getRawIndex(v),x=o[y];if(isNaN(x)){j++,C<0&&(C=y);continue}(r=Math.abs((w-m)*(x-S)-(w-v)*(g-S)))>n&&(n=r,i=y)}j>0&&j<b-_&&(d[l++]=Math.min(C,i),i=Math.max(C,i)),d[l++]=i,c=i}return d[l++]=this.getRawIndex(s-1),a._count=l,a._indices=d,a.getRawIndex=this._getRawIdx,a},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(cU(this._rawCount))(2*Math.ceil(o/i)),l=0,u=0;u<o;u+=i){var c=u,d=a[this.getRawIndex(c)],h=u,p=a[this.getRawIndex(h)],f=i;u+i>o&&(f=o-u);for(var m=0;m<f;m++){var g=a[this.getRawIndex(u+m)];g<d&&(d=g,c=u+m),g>p&&(p=g,h=u+m)}var v=this.getRawIndex(c),y=this.getRawIndex(h);c<h?(s[l++]=v,s[l++]=y):(s[l++]=y,s[l++]=v)}return n._count=l,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),l=a[e],u=this.count(),c=i._rawExtent[e]=cq(),d=new(cU(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(o.length=s=u-p);for(var f=0;f<s;f++){var m=this.getRawIndex(p+f);o[f]=l[m]}var g=n(o),v=this.getRawIndex(Math.min(p+r(o,g)||0,u-1));l[v]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),d[h++]=v}return i._count=h,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,l=[];s<n;s++)l[s]=r[e[s]][o];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t,n=this._chunks[e],r=cq();if(!n)return r;var i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(t=this._extent[e])return t.slice();for(var a=(t=r)[0],o=t[1],s=0;s<i;s++){var l=n[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return t=[a,o],this._extent[e]=t,t},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&&nX(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?function(e){var t=e.constructor;return t===Array?e.slice():new t(e)}(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=nE(this._extent),e._rawExtent=nE(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 cO(e[r],this._dimensions[r])}L={arrayRows:e,objectRows:function(e,t,n,r){return cO(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return cO(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),cZ=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,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(cJ(n)){var a=void 0,o=void 0,s=void 0;if(i){var l=r[0];l.prepareSource(),a=(s=l.getSource()).data,o=s.sourceFormat,t=[l._getVersionSign()]}else o=n5(a=n.get("data",!0))?uP:uO,t=[];var u=this._getSourceMetaRawOption()||{},c=s&&s.metaRawOption||{},d=n6(u.seriesLayoutBy,c.seriesLayoutBy)||null,h=n6(u.sourceHeader,c.sourceHeader),p=n6(u.dimensions,c.dimensions);e=d!==c.seriesLayoutBy||!!h!=!!c.sourceHeader||p?[cc(a,{seriesLayoutBy:d,sourceHeader:h,dimensions:p},o)]:[]}else if(i){var f=this._applyTransform(r);e=f.sourceList,t=f.upstreamSignList}else e=[cc(n.get("source",!0),this._getSourceMetaRawOption(),null)],t=[];this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n,r=this._sourceHost,i=r.get("transform",!0),a=r.get("fromTransformResult",!0);null!=a&&1!==e.length&&cQ("");var o=[],s=[];return(nU(e,function(e){e.prepareSource();var t=e.getSource(a||0);null==a||t||cQ(""),o.push(t),s.push(e._getVersionSign())}),i)?n=function(e,t,n){var r=oi(e),i=r.length;i||cD("");for(var a=0;a<i;a++)t=function(e,t,n,r){t.length||cD(""),n3(e)||cD("");var i=e.type,a=cF.get(i);a||cD("");var o=nq(t,function(e){return function(e,t){var n=new cz,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==uL&&cD("");var o=[],s={},l=e.dimensionsDefine;if(l)nU(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),null!=n&&(rd(s,n)&&cD(""),s[n]=r)});else for(var u=0;u<e.dimensionsDetectedCount||0;u++)o.push({index:u});var c=cy[cS(i,uL)];t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,a,o,e)},n.getRawData=nK(cR,null,e)),n.cloneRawData=nK(cP,null,e),n.count=nK(c_[cS(i,uL)],null,r,a,o);var d=cw[i];n.retrieveValue=function(e,t){return h(c(r,a,o,e),t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=nK(cN,null,o,s),n.cloneAllDimensionInfo=nK(cL,null,o),n}(e,a)});return nq(oi(a.transform({upstream:o[0],upstreamList:o,config:nE(e.config)})),function(e,n){n3(e)||cD(""),e.data||cD(""),cE(ch(e.data))||cD("");var r,i=t[0];if(i&&0===n&&!e.dimensions){var a=i.startIndex;a&&(e.data=i.data.slice(0,a).concat(e.data)),r={seriesLayoutBy:uL,sourceHeader:a,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:uL,sourceHeader:0,dimensions:e.dimensions};return cc(e.data,r,null)})}(r[a],t,0,0),a!==i-1&&(t.length=Math.max(t.length,1));return t}(i,o,{datasetIndex:r.componentIndex}):null!=a&&(n=[new cl({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:nE(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},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=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=this._storeList,i=r[0];i||(i=r[0]={});var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];cJ(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new c$).initData(new cg(t,e.length),e),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(cJ(e)){var t=function(e){if(!e.get("data",!0))return ox(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},oy).models[0]}(e);return t?[t.getSourceManager()]:[]}return nq(e.get("transform",!0)||e.get("fromTransformResult",!0)?ox(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},oy).models:[],function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;return cJ(r)?(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)),{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function cK(e){e.option.transform&&(e.option.transform[ri]=!0)}function cJ(e){return"series"===e.mainType}function cQ(e){throw Error(e)}function c1(){this.richTextStyles={},this._nextStyleNameId=ot()}c1.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},c1.prototype.makeTooltipMarker=function(e,t,n){var r,i,a,o,s,l,u="richText"===n?this._generateStyleName():null,c=(o=(a=n0(r={color:t,type:e,renderMode:n,markerId:u})?{color:r,extraCssText:i}:r||{}).color,s=a.type,i=a.extraCssText,l=a.renderMode||"html",o?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+rz(o)+";"+(i||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+rz(o)+";"+(i||"")+'"></span>':{renderMode:l,content:"{"+(a.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:"");return n0(c)?c:(this.richTextStyles[u]=c.style,c.content)},c1.prototype.wrapRichTextStyle=function(e,t){var n={};nQ(t)?nU(t,function(e){return nH(n,e)}):nH(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"};var c0=of();function c2(e,t){return e.getName(t)||e.getId(t)}var c3=function(e){var t;function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return n_(n,e),n.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=ck({count:c5,reset:c8}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(c0(this).sourceManager=new cZ(this)).prepareSource();var r=this.getInitialData(e,n);c6(r,this),this.dataTask.context.data=r,c0(this).dataBeforeProcessed=r,c4(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=u_(this),r=n?uw({},e):{},i=this.subType;uC.hasClass(i)&&(i+="Series"),nB(e,t.getTheme().get(this.subType)),nB(e,this.getDefaultOption()),oa(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&ub(e,r,n)},n.prototype.mergeOption=function(e,t){e=nB(this.option,e,!0),this.fillDataTextStyle(e.data);var n=u_(this);n&&ub(this.option,e,n);var r=c0(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);c6(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,c0(this).dataBeforeProcessed=i,c4(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(e){if(e&&!n5(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&oa(e[n],"label",t)},n.prototype.getInitialData=function(e,t){},n.prototype.appendData=function(e){this.getRawData().appendData(e.data)},n.prototype.getData=function(e){var t=de(this);if(!t)return c0(this).data;var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n},n.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},n.prototype.setData=function(e){var t=de(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}c0(this).data=e},n.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return rl(e)},n.prototype.getSourceManager=function(){return c0(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return c0(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},n.prototype.formatTooltip=function(e,t,n){return function(e){var t,n,r,i,a,o,s,l,u=e.series,c=e.dataIndex,d=e.multipleSeries,h=u.getData(),p=h.mapDimensionsAll("defaultedTooltip"),f=p.length,m=u.getRawValue(c),g=nQ(m),v=(n=n||"transparent",n0(t=u.getData().getItemVisual(c,"style")[u.visualDrawType])?t:n3(t)&&t.colorStops&&(t.colorStops[0]||{}).color||n);if(f>1||g&&!f){var y=function(e,t,n,r,i){var a=t.getData(),o=nX(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(e,t){var n,r=a.getDimensionInfo(t);r&&!1!==r.otherDims.tooltip&&(o?u.push(((n={markerType:"subItem",markerColor:i,name:r.displayName,value:e,valueType:r.type}).type="nameValue",n)):(s.push(e),l.push(r.type)))}return r.length?nU(r,function(e){c(cC(a,n,e),e)}):nU(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(m,u,c,p,v);a=y.inlineValues,o=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(f){var x=h.getDimensionInfo(p[0]);l=a=cC(h,c,p[0]),o=x.type}else l=a=g?m[0]:m;var _=od(u),b=_&&u.name||"",w=h.getName(c),S=d?b:w;return(i={header:b,noHeader:d||!_,sortParam:l,blocks:[((r={markerType:"item",markerColor:v,name:S,noName:!rr(S),value:a,valueType:o,dataIndex:c}).type="nameValue",r)].concat(s||[])}).type="section",i}({series:this,dataIndex:e,multipleSeries:t})},n.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(nw.node&&!(e&&e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=uV.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},n.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},n.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=c2(i,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},n.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)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=nZ(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[c2(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},n.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if("series"===a)i.selectedMap="all";else if("multiple"===a){n3(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<o;l++){var u=t[l],c=c2(e,u);s[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(u)}}else if("single"===a||!0===a){var d=t[o-1],c=c2(e,d);(n={})[c]=!0,i.selectedMap=n,this._selectedDataIndicesMap=((r={})[c]=e.getRawIndex(d),r)}}},n.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)}},n.registerClass=function(e){return uC.registerClass(e)},n.protoInitialize=void((t=n.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"),n}(uC);function c4(e){var t,n,r,i=e.name;od(e)||(e.name=(n=(t=e.getRawData()).mapDimensionsAll("seriesName"),r=[],nU(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")||i))}function c5(e){return e.model.getRawData().count()}function c8(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),c9}function c9(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function c6(e,t){nU(function(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}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,nJ(c7,t))})}function c7(e,t){var n=de(e);return n&&n.setOutputEnd((t||this).count()),t}function de(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}}nG(c3,cT),nG(c3,uV),oC(c3,uC);var dt=function(){function e(){this.group=new aJ,this.uid=lK("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}();oS(dt),oI(dt);var dn=so.CMD,dr=[[],[],[]],di=Math.sqrt,da=Math.atan2,ds=Math.sqrt,dl=Math.sin,du=Math.cos,dc=Math.PI;function dd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function dh(e,t){return(e[0]*t[0]+e[1]*t[1])/(dd(e)*dd(t))}function dp(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(dh(e,t))}function df(e,t,n,r,i,a,o,s,l,u,c){var d=dc/180*l,h=du(d)*(e-n)/2+dl(d)*(t-r)/2,p=-1*dl(d)*(e-n)/2+du(d)*(t-r)/2,f=h*h/(o*o)+p*p/(s*s);f>1&&(o*=ds(f),s*=ds(f));var m=(i===a?-1:1)*ds((o*o*(s*s)-o*o*(p*p)-s*s*(h*h))/(o*o*(p*p)+s*s*(h*h)))||0,g=m*o*p/s,v=-(m*s)*h/o,y=(e+n)/2+du(d)*g-dl(d)*v,x=(t+r)/2+dl(d)*g+du(d)*v,_=dp([1,0],[(h-g)/o,(p-v)/s]),b=[(h-g)/o,(p-v)/s],w=[(-1*h-g)/o,(-1*p-v)/s],S=dp(b,w);if(-1>=dh(b,w)&&(S=dc),dh(b,w)>=1&&(S=0),S<0){var C=Math.round(S/dc*1e6)/1e6;S=2*dc+C%2*dc}c.addData(u,y,x,o,s,_,S,d,a)}var dm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,dg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,dv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n_(t,e),t.prototype.applyTransform=function(e){},t}(s_),dy=function(){this.cx=0,this.cy=0,this.r=0},dx=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultShape=function(){return new dy},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(s_);dx.prototype.type="circle";var d_=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},db=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultShape=function(){return new d_},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=t.rx,a=t.ry,o=.5522848*i,s=.5522848*a;e.moveTo(n-i,r),e.bezierCurveTo(n-i,r-s,n-o,r-a,n,r-a),e.bezierCurveTo(n+o,r-a,n+i,r-s,n+i,r),e.bezierCurveTo(n+i,r+s,n+o,r+a,n,r+a),e.bezierCurveTo(n-o,r+a,n-i,r+s,n-i,r),e.closePath()},t}(s_);db.prototype.type="ellipse";var dw=Math.PI,dS=2*dw,dC=Math.sin,dj=Math.cos,dT=Math.acos,dk=Math.atan2,dI=Math.abs,dM=Math.sqrt,dD=Math.max,dO=Math.min;function dA(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/dM(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,m=r+d,g=(h+f)/2,v=(p+m)/2,y=f-h,x=m-p,_=y*y+x*x,b=i-a,w=h*m-f*p,S=(x<0?-1:1)*dM(dD(0,b*b*_-w*w)),C=(w*x-y*S)/_,j=(-w*y-x*S)/_,T=(w*x+y*S)/_,k=(-w*y+x*S)/_,I=C-g,M=j-v,D=T-g,O=k-v;return I*I+M*M>D*D+O*O&&(C=T,j=k),{cx:C,cy:j,x0:-c,y0:-d,x1:C*(i/b-1),y1:j*(i/b-1)}}var dz=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},dR=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultShape=function(){return new dz},t.prototype.buildPath=function(e,t){!function(e,t){var n,r=dD(t.r,0),i=dD(t.r0||0,0),a=r>0,o=i>0;if(a||o){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,h=!!t.clockwise,p=dI(u-l),f=p>dS&&p%dS;if(f>1e-4&&(p=f),r>1e-4)if(p>dS-1e-4)e.moveTo(c+r*dj(l),d+r*dC(l)),e.arc(c,d,r,l,u,!h),i>1e-4&&(e.moveTo(c+i*dj(u),d+i*dC(u)),e.arc(c,d,i,u,l,h));else{var m=void 0,g=void 0,v=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0,j=void 0,T=void 0,k=void 0,I=void 0,M=void 0,D=void 0,O=r*dj(l),A=r*dC(l),z=i*dj(u),R=i*dC(u),P=p>1e-4;if(P){var N=t.cornerRadius;N&&(m=(n=function(e){var t;if(nQ(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(N))[0],g=n[1],v=n[2],y=n[3]);var L=dI(r-i)/2;if(x=dO(L,v),_=dO(L,y),b=dO(L,m),w=dO(L,g),j=S=dD(x,_),T=C=dD(b,w),(S>1e-4||C>1e-4)&&(k=r*dj(u),I=r*dC(u),M=i*dj(l),D=i*dC(l),p<dw)){var F=function(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,d=s-a,h=d*l-c*u;if(!(h*h<1e-4))return h=(c*(t-a)-d*(e-i))/h,[e+h*l,t+h*u]}(O,A,M,D,k,I,z,R);if(F){var E=O-F[0],B=A-F[1],H=k-F[0],V=I-F[1],W=1/dC(dT((E*H+B*V)/(dM(E*E+B*B)*dM(H*H+V*V)))/2),G=dM(F[0]*F[0]+F[1]*F[1]);j=dO(S,(r-G)/(W+1)),T=dO(C,(i-G)/(W-1))}}}if(P)if(j>1e-4){var Y=dO(v,j),U=dO(y,j),q=dA(M,D,O,A,r,Y,h),X=dA(k,I,z,R,r,U,h);e.moveTo(c+q.cx+q.x0,d+q.cy+q.y0),j<S&&Y===U?e.arc(c+q.cx,d+q.cy,j,dk(q.y0,q.x0),dk(X.y0,X.x0),!h):(Y>0&&e.arc(c+q.cx,d+q.cy,Y,dk(q.y0,q.x0),dk(q.y1,q.x1),!h),e.arc(c,d,r,dk(q.cy+q.y1,q.cx+q.x1),dk(X.cy+X.y1,X.cx+X.x1),!h),U>0&&e.arc(c+X.cx,d+X.cy,U,dk(X.y1,X.x1),dk(X.y0,X.x0),!h))}else e.moveTo(c+O,d+A),e.arc(c,d,r,l,u,!h);else e.moveTo(c+O,d+A);if(i>1e-4&&P)if(T>1e-4){var Y=dO(m,T),U=dO(g,T),q=dA(z,R,k,I,i,-U,h),X=dA(O,A,M,D,i,-Y,h);e.lineTo(c+q.cx+q.x0,d+q.cy+q.y0),T<C&&Y===U?e.arc(c+q.cx,d+q.cy,T,dk(q.y0,q.x0),dk(X.y0,X.x0),!h):(U>0&&e.arc(c+q.cx,d+q.cy,U,dk(q.y0,q.x0),dk(q.y1,q.x1),!h),e.arc(c,d,i,dk(q.cy+q.y1,q.cx+q.x1),dk(X.cy+X.y1,X.cx+X.x1),h),Y>0&&e.arc(c+X.cx,d+X.cy,Y,dk(X.y1,X.x1),dk(X.y0,X.x0),!h))}else e.lineTo(c+z,d+R),e.arc(c,d,i,u,l,h);else e.lineTo(c+z,d+R)}else e.moveTo(c,d);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(s_);dR.prototype.type="sector";var dP=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},dN=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultShape=function(){return new dP},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;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}(s_);function dL(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=function(e,t,n,r){var i,a,o,s,l=[],u=[],c=[],d=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)rb(o,o,e[h]),rw(s,s,e[h]);rb(o,o,r[0]),rw(s,s,r[1])}for(var h=0,p=e.length;h<p;h++){var f,m,g,v=e[h];if(n)i=e[h?h-1:p-1],a=e[(h+1)%p];else if(0===h||h===p-1){l.push([(f=e[h])[0],f[1]]);continue}else i=e[h-1],a=e[h+1];m=a,g=i,u[0]=m[0]-g[0],u[1]=m[1]-g[1],rg(u,u,t);var y=rv(v,i),x=rv(v,a),_=y+x;0!==_&&(y/=_,x/=_),rg(c,u,-y),rg(d,u,x);var b=rm([],v,c),w=rm([],v,d);r&&(rw(b,b,o),rb(b,b,s),rw(w,w,o),rb(w,w,s)),l.push(b),l.push(w)}return n&&l.push(l.shift()),l}(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 l=a[2*s],u=a[2*s+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}dN.prototype.type="ring";var dF=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},dE=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultShape=function(){return new dF},t.prototype.buildPath=function(e,t){dL(e,t,!0)},t}(s_);dE.prototype.type="polygon";var dB=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},dH=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dB},t.prototype.buildPath=function(e,t){dL(e,t,!1)},t}(s_);dH.prototype.type="polyline";var dV={},dW=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},dG=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dW},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,r,i,a,o=function(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&&(lb(2*r)===lb(2*i)&&(e.x1=e.x2=lw(r,s,!0)),lb(2*a)===lb(2*o)&&(e.y1=e.y2=lw(a,s,!0))),e}}(dV,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;0!==s&&(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}(s_);dG.prototype.type="line";var dY=[],dU=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function dq(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?iT:ij)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?iT:ij)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?iA:iO)(e.x1,e.cpx1,e.x2,t),(n?iA:iO)(e.y1,e.cpy1,e.y2,t)]}var dX=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dU},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,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(iR(n,o,i,c,dY),o=dY[1],i=dY[2],iR(r,s,a,c,dY),s=dY[1],a=dY[2]),e.quadraticCurveTo(o,s,i,a)):(c<1&&(iM(n,o,l,i,c,dY),o=dY[1],l=dY[2],i=dY[3],iM(r,s,u,a,c,dY),s=dY[1],u=dY[2],a=dY[3]),e.bezierCurveTo(o,s,l,u,i,a)))},t.prototype.pointAt=function(e){return dq(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t,n=dq(this.shape,e,!0),r=Math.sqrt((t=n)[0]*t[0]+t[1]*t[1]);return 0===r?(n[0]=0,n[1]=0):(n[0]=n[0]/r,n[1]=n[1]/r),n},t}(s_);dX.prototype.type="bezier-curve";var d$=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},dZ=function(e){function t(t){return e.call(this,t)||this}return n_(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new d$},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,l=Math.cos(a),u=Math.sin(a);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,a,o,!s)},t}(s_);dZ.prototype.type="arc";var dK={};function dJ(e,t,n,r){var i,a,o=new dv((i=function(e){var t,n=new so;if(!e)return n;var r=0,i=0,a=0,o=0,s=so.CMD,l=e.match(dm);if(!l)return n;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(dg)||[],f=p.length,m=0;m<f;m++)p[m]=parseFloat(p[m]);for(var g=0;g<f;){var v=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=r,j=i,T=void 0,k=void 0;switch(d){case"l":r+=p[g++],i+=p[g++],h=s.L,n.addData(h,r,i);break;case"L":r=p[g++],i=p[g++],h=s.L,n.addData(h,r,i);break;case"m":r+=p[g++],i+=p[g++],h=s.M,n.addData(h,r,i),a=r,o=i,d="l";break;case"M":r=p[g++],i=p[g++],h=s.M,n.addData(h,r,i),a=r,o=i,d="L";break;case"h":r+=p[g++],h=s.L,n.addData(h,r,i);break;case"H":r=p[g++],h=s.L,n.addData(h,r,i);break;case"v":i+=p[g++],h=s.L,n.addData(h,r,i);break;case"V":i=p[g++],h=s.L,n.addData(h,r,i);break;case"C":h=s.C,n.addData(h,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),r=p[g-2],i=p[g-1];break;case"c":h=s.C,n.addData(h,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i),r+=p[g-2],i+=p[g-1];break;case"S":v=r,y=i,T=n.len(),k=n.data,t===s.C&&(v+=r-k[T-4],y+=i-k[T-3]),h=s.C,C=p[g++],j=p[g++],r=p[g++],i=p[g++],n.addData(h,v,y,C,j,r,i);break;case"s":v=r,y=i,T=n.len(),k=n.data,t===s.C&&(v+=r-k[T-4],y+=i-k[T-3]),h=s.C,C=r+p[g++],j=i+p[g++],r+=p[g++],i+=p[g++],n.addData(h,v,y,C,j,r,i);break;case"Q":C=p[g++],j=p[g++],r=p[g++],i=p[g++],h=s.Q,n.addData(h,C,j,r,i);break;case"q":C=p[g++]+r,j=p[g++]+i,r+=p[g++],i+=p[g++],h=s.Q,n.addData(h,C,j,r,i);break;case"T":v=r,y=i,T=n.len(),k=n.data,t===s.Q&&(v+=r-k[T-4],y+=i-k[T-3]),r=p[g++],i=p[g++],h=s.Q,n.addData(h,v,y,r,i);break;case"t":v=r,y=i,T=n.len(),k=n.data,t===s.Q&&(v+=r-k[T-4],y+=i-k[T-3]),r+=p[g++],i+=p[g++],h=s.Q,n.addData(h,v,y,r,i);break;case"A":x=p[g++],_=p[g++],b=p[g++],w=p[g++],S=p[g++],C=r,j=i,r=p[g++],df(C,j,r,i=p[g++],w,S,x,_,b,h=s.A,n);break;case"a":x=p[g++],_=p[g++],b=p[g++],w=p[g++],S=p[g++],C=r,j=i,r+=p[g++],df(C,j,r,i+=p[g++],w,S,x,_,b,h=s.A,n)}}("z"===d||"Z"===d)&&(h=s.Z,n.addData(h),r=a,i=o),t=h}return n.toStatic(),n}(e),(a=nH({},t)).buildPath=function(e){if(null!=e.setData){e.setData(i.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;i.rebuildPath(t,1)}},a.applyTransform=function(e){!function(e,t){if(t){var n,r,i,a,o,s,l=e.data,u=e.len(),c=dn.M,d=dn.C,h=dn.L,p=dn.R,f=dn.A,m=dn.Q;for(i=0,a=0;i<u;){switch(n=l[i++],a=i,r=0,n){case c:case h:r=1;break;case d:r=3;break;case m:r=2;break;case f:var g=t[4],v=t[5],y=di(t[0]*t[0]+t[1]*t[1]),x=di(t[2]*t[2]+t[3]*t[3]),_=da(-t[1]/x,t[0]/y);l[i]*=y,l[i++]+=g,l[i]*=x,l[i++]+=v,l[i++]*=y,l[i++]*=x,l[i++]+=_,l[i++]+=_,i+=2,a=i;break;case p:s[0]=l[i++],s[1]=l[i++],r_(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[i++],s[1]+=l[i++],r_(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<r;o++){var b=dr[o];b[0]=l[i++],b[1]=l[i++],r_(b,b,t),l[a++]=b[0],l[a++]=b[1]}}e.increaseVersion()}}(i,e),this.dirtyShape()},a));return n&&("center"===r&&(n=dQ(n,o.getBoundingRect())),function(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}(o,n)),o}function dQ(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}function d1(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}dK.circle=dx,dK.ellipse=db,dK.sector=dR,dK.ring=dN,dK.polygon=dE,dK.polyline=dH,dK.rect=lj,dK.line=dG,dK.bezierCurve=dX,dK.arc=dZ;var d0=of(),d2=(C=of(),function(e){var t=C(e),n=e.pipelineContext,r=!!t.large,i=!!t.progressiveRender,a=t.large=!!(n&&n.large),o=t.progressiveRender=!!(n&&n.progressiveRender);return(r!==a||i!==o)&&"reset"}),d3=function(){function e(){this.group=new aJ,this.uid=lK("viewChart"),this.renderTask=ck({plan:d8,reset:d9}),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&&d5(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&d5(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){var t=this.group;if(t)if(nQ(t))for(var n=0;n<t.length;n++)d1(t[n],e);else d1(t,e)},e.markUpdateMethod=function(e,t){d0(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function d4(e,t,n){e&&s1(e)&&("emphasis"===t?sY:sU)(e,n)}function d5(e,t,n){var r,i,a=op(e,t),o=t&&null!=t.highlightKey?(null==(i=sw[r=t.highlightKey])&&sb<=32&&(i=sw[r]=sb++),i):null;null!=a?nU(oi(a),function(t){d4(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(e){d4(e,n,o)})}function d8(e){return d2(e.model)}function d9(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&d0(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),d6[l]}oS(d3,["dispose"]),oI(d3);var d6={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)}}},d7=of(),he={itemStyle:oM(lU,!0),lineStyle:oM(lW,!0)},ht={lineStyle:"stroke",itemStyle:"fill"};function hn(e,t){var n=e.visualStyleMapper||he[t];return n||(console.warn("Unknown style type '"+t+"'."),he.itemStyle)}function hr(e,t){var n=e.visualDrawType||ht[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var hi=new l$,ha=Math.PI,ho=function(){function e(e,t,n,r){this._stageTaskMap=rl(),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,o=null!=a?Math.ceil(a/i):null;return{step:i,modBy:o,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"),o="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=rl();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;nU(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});rn(!(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=r||{};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}nU(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,r.block);h.each(function(e){e.perform(p)}),c.perform(p)&&(i=!0)}else u&&u.each(function(s,l){o(r,s)&&s.dirty();var u=a.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),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){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=rl(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=o.set(s,a&&a.get(s)||ck({plan:hd,reset:hh,count:hm}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||ck({reset:hs});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=rl(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function h(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,ck({reset:hl,onDirty:hc})));n.context={model:e,overallProgress:c},n.agent=a,n.__block=c,i._pipe(e,n)}rn(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,h):u?u(n,r).each(h):(c=!1,nU(n.getSeries(),h)),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 n1(e)&&(e={overallReset:e,seriesType:function(e){F=null;try{e(hg,hv)}catch(e){}return F}(e)}),e.uid=lK("stageHandler"),t&&(e.visualType=t),e},e}();function hs(e){e.overallReset(e.ecModel,e.api,e.payload)}function hl(e){return e.overallProgress&&hu}function hu(){this.agent.dirty(),this.getDownstream().dirty()}function hc(){this.agent&&this.agent.dirty()}function hd(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function hh(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=oi(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?nq(t,function(e,t){return hf(t)}):hp}var hp=hf(0);function hf(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 hm(e){return e.data.count()}var hg={},hv={};function hy(e,t){for(var n in t.prototype)e[n]=rh}hy(hg,uG),hy(hv,u$),hg.eachSeriesByType=hg.eachRawSeriesByType=function(e){F=e},hg.eachComponent=function(e){"series"===e.mainType&&e.subType&&(F=e.subType)};var hx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],h_="#B9B8CE",hb="#100C2A",hw=function(){return{axisLine:{lineStyle:{color:h_}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},hS=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],hC={darkMode:!0,color:hS,backgroundColor:hb,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:h_},pageTextStyle:{color:h_}},textStyle:{color:h_},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:h_}},dataZoom:{borderColor:"#71708A",textStyle:{color:h_},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:h_}},timeline:{lineStyle:{color:h_},label:{color:h_},controlStyle:{color:h_,borderColor:h_}},calendar:{itemStyle:{color:hb},dayLabel:{color:h_},monthLabel:{color:h_},yearLabel:{color:h_}},timeAxis:hw(),logAxis:hw(),valueAxis:hw(),categoryAxis:hw(),line:{symbol:"circle"},graph:{color:hS},gauge:{title:{color:h_},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:h_},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};hC.categoryAxis.splitLine.show=!1;var hj=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(n0(e)){var i=ow(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};nU(e,function(e,i){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.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,l=t.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),hT=["symbol","symbolSize","symbolRotate","symbolOffset"],hk=hT.concat(["symbolKeepAspect"]);function hI(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 l=e.getData(),u=op(l,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:nQ(u)?l.getName(u[0]):l.getName(u),selected:n0(r)?r:nH({},r)})}})}function hM(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var hD=Math.round(9*Math.random()),hO="function"==typeof Object.defineProperty,hA=function(){function e(){this._id="__ec_inner_"+hD++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return hO?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)},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}(),hz=s_.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()}}),hR=s_.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()}}),hP=s_.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),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),h=Math.cos(u),p=.6*o,f=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),hN=s_.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()}}),hL={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}},hF={};nU({line:dG,rect:lj,roundRect:lj,square:lj,circle:dx,diamond:hR,pin:hP,arrow:hN,triangle:hz},function(e,t){hF[t]=new e});var hE=s_.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=aW(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=hF[r];i||(i=hF[r="rect"]),hL[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function hB(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function hH(e,t,n,r,i,a,o){var s,l,u,c,d,h=0===e.indexOf("empty");return(h&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),0===e.indexOf("image://"))?(s=e.slice(8),l=new r4(t,n,r,i),u=o?"center":"cover",d=c=new l_({style:{image:s,x:l.x,y:l.y,width:l.width,height:l.height},onload:function(e){if("center"===u){var t={width:e.width,height:e.height};c.setStyle(dQ(l,t))}}})):d=0===e.indexOf("path://")?dJ(e.slice(7),{},new r4(t,n,r,i),o?"center":"cover"):new hE({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),d.__isEmptyBrush=h,d.setColor=hB,a&&d.setColor(a),d}function hV(e){return isFinite(e)}function hW(e,t,n){for(var r,i,a,o,s,l,u,c,d,h,p="radial"===t.type?(a=Math.min(r=n.width,i=n.height),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r,t.global||(o=o*r+n.x,s=s*i+n.y,l*=a),o=hV(o)?o:.5,s=hV(s)?s:.5,l=l>=0&&hV(l)?l:.5,e.createRadialGradient(o,s,0,o,s,l)):(u=null==t.x?0:t.x,c=null==t.x2?1:t.x2,d=null==t.y?0:t.y,h=null==t.y2?0:t.y2,t.global||(u=u*n.width+n.x,c=c*n.width+n.x,d=d*n.height+n.y,h=h*n.height+n.y),u=hV(u)?u:0,c=hV(c)?c:1,d=hV(d)?d:0,h=hV(h)?h:0,e.createLinearGradient(u,d,c,h)),f=t.colorStops,m=0;m<f.length;m++)p.addColorStop(f[m].offset,f[m].color);return p}function hG(e){return parseInt(e,10)}function hY(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||hG(s[r])||hG(e.style[r]))-(hG(s[a])||0)-(hG(s[o])||0)|0}function hU(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:n2(t)?[t]:nQ(t)?t:null:null),a=r.lineDashOffset;if(i){var o=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(i=nq(i,function(e){return e/o}),a/=o)}return[i,a]}var hq=new so(!0);function hX(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function h$(e){return"string"==typeof e&&"none"!==e}function hZ(e){var t=e.fill;return null!=t&&"none"!==t}function hK(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function hJ(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function hQ(e,t,n){var r=li(t.image,t.__image,n);if(lo(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*rp),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}var h1=["shadowBlur","shadowOffsetX","shadowOffsetY"],h0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function h2(e,t,n,r,i){var a=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){h5(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?oP.opacity:o}(r||t.blend!==n.blend)&&(a||(h5(e,i),a=!0),e.globalCompositeOperation=t.blend||oP.blend);for(var s=0;s<h1.length;s++){var l=h1[s];(r||t[l]!==n[l])&&(a||(h5(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(h5(e,i),a=!0),e.shadowColor=t.shadowColor||oP.shadowColor),a}function h3(e,t,n,r,i){var a=h8(t,i.inHover),o=r?null:n&&h8(n,i.inHover)||{};if(a===o)return!1;var s=h2(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(h5(e,i),s=!0),h$(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(h5(e,i),s=!0),h$(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(h5(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(h5(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<h0.length;u++){var c=h0[u],d=c[0];(r||a[d]!==o[d])&&(s||(h5(e,i),s=!0),e[d]=a[d]||c[1])}return s}function h4(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 h5(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function h8(e,t){return t&&e.__hoverStyle||e.style}function h9(e,t){h6(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function h6(e,t,n,r){var i,a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,s=n.prevElClipPaths,l=!1,u=!1;if(!s||function(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}(o,s)){if(s&&s.length&&(h5(e,n),e.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){h5(e,n),e.save();for(var c=!1,d=0;d<o.length;d++){var h=o[d];c=c||h.isZeroArea(),h4(e,h),e.beginPath(),h.buildPath(e,h.shape),e.clip()}n.allClipped=c,l=!0}n.prevElClipPaths=o}if(n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(u=l=!0);var f=t instanceof s_&&t.autoBatch&&(v=hZ(g=t.style),y=hX(g),!(g.lineDash||!(v^y)||v&&"string"!=typeof g.fill||y&&"string"!=typeof g.stroke||g.strokePercent<1||g.strokeOpacity<1||g.fillOpacity<1));!l&&(x=p.transform,a&&x?a[0]===x[0]&&a[1]===x[1]&&a[2]===x[2]&&a[3]===x[3]&&a[4]===x[4]&&a[5]===x[5]:+(!a&&!x))?f||h5(e,n):(h5(e,n),h4(e,t));var m=h8(t,n.inHover);if(t instanceof s_)1!==n.lastDrawType&&(u=!0,n.lastDrawType=1),h3(e,t,p,u,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,a,o,s=hX(n),l=hZ(n),u=n.strokePercent,c=u<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||hq,p=t.__dirty;if(!r){var f=n.fill,m=n.stroke,g=l&&!!f.colorStops,v=s&&!!m.colorStops,y=l&&!!f.image,x=s&&!!m.image,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0;(g||v)&&(C=t.getBoundingRect()),g&&(_=p?hW(e,f,C):t.__canvasFillGradient,t.__canvasFillGradient=_),v&&(b=p?hW(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),y&&(w=p||!t.__canvasFillPattern?hQ(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=w),x&&(S=p||!t.__canvasStrokePattern?hQ(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),g?e.fillStyle=_:y&&(w?e.fillStyle=w:l=!1),v?e.strokeStyle=b:x&&(S?e.strokeStyle=S:s=!1)}var j=t.getGlobalScale();h.setScale(j[0],j[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(a=(i=hU(t))[0],o=i[1]);var T=!0;(d||4&p)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),T=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),T&&h.rebuildPath(e,c?u:1),a&&(e.setLineDash(a),e.lineDashOffset=o),!r&&(n.strokeFirst?(s&&hJ(e,n),l&&hK(e,n)):(l&&hK(e,n),s&&hJ(e,n))),a&&e.setLineDash([])}(e,t,m,f),f&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"");else if(t instanceof lv){3!==n.lastDrawType&&(u=!0,n.lastDrawType=3),h3(e,t,p,u,n);var g,v,y,x,_,b=m.text;if(null!=b&&(b+=""),b){e.font=m.font||nS,e.textAlign=m.textAlign,e.textBaseline=m.textBaseline;var w=void 0,S=void 0;e.setLineDash&&m.lineDash&&(w=(_=hU(t))[0],S=_[1]),w&&(e.setLineDash(w),e.lineDashOffset=S),m.strokeFirst?(hX(m)&&e.strokeText(b,m.x,m.y),hZ(m)&&e.fillText(b,m.x,m.y)):(hZ(m)&&e.fillText(b,m.x,m.y),hX(m)&&e.strokeText(b,m.x,m.y)),w&&e.setLineDash([])}}else t instanceof l_?(2!==n.lastDrawType&&(u=!0,n.lastDrawType=2),i=u,h2(e,h8(t,n.inHover),p&&h8(p,n.inHover),i,n),function(e,t,n){var r=t.__image=li(n.image,t.__image,t,t.onload);if(r&&lo(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,d=o-u,h=s-c;e.drawImage(r,u,c,d,h,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}(e,t,m)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(u=!0,n.lastDrawType=4),function(e,t,n){var r,i,a=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(r=t.getCursor(),i=a.length;r<i;r++){var l=a[r];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),h6(e,l,s,r===i-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=o.length;u<c;u++){var l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),h6(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n));f&&r&&h5(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}var h7=new hA,pe=new iH(100),pt=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pn(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&h7.delete(e);var a=h7.get(e);if(a)return a;var o=nV(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});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,a,s=[n],l=!0,u=0;u<pt.length;++u){var c=o[pt[u]];if(null!=c&&!nQ(c)&&!n0(c)&&!n2(c)&&"boolean"!=typeof c){l=!1;break}s.push(c)}if(l){t=s.join(",")+(i?"-svg":"");var d=pe.get(t);d&&(i?e.svgElement=d:e.image=d)}var h=function e(t){if(!t||0===t.length)return[[0,0]];if(n2(t)){var n=Math.ceil(t);return[[n,n]]}for(var r=!0,i=0;i<t.length;++i)if(!n2(t[i])){r=!1;break}if(r)return e([t]);for(var a=[],i=0;i<t.length;++i)if(n2(t[i])){var n=Math.ceil(t[i]);a.push([n,n])}else{var n=nq(t[i],function(e){return Math.ceil(e)});n.length%2==1?a.push(n.concat(n)):a.push(n)}return a}(o.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(n2(e)){var t=Math.ceil(e);return[t,t]}var n=nq(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),f=function e(t){if(!t||0===t.length)return[["rect"]];if(n0(t))return[[t]];for(var n=!0,r=0;r<t.length;++r)if(!n0(t[r])){n=!1;break}if(n)return e([t]);for(var i=[],r=0;r<t.length;++r)n0(t[r])?i.push([t[r]]):i.push(t[r]);return i}(o.symbol),m=nq(h,function(e){return pr(e)}),g=pr(p),v=!i&&nj.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=on(e,m[t]);for(var r=1,t=0,n=f.length;t<n;++t)r=on(r,f[t].length);e*=r;var i=g*m.length*f.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}();v&&(v.width=x.width*n,v.height=x.height*n,a=v.getContext("2d")),function(){a&&(a.clearRect(0,0,v.width,v.height),o.backgroundColor&&(a.fillStyle=o.backgroundColor,a.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var s=-g,l=0,u=0,c=0;s<x.height;){if(l%2==0){for(var d=u/2%f.length,m=0,_=0,b=0;m<2*x.width;){for(var w=0,t=0;t<h[c].length;++t)w+=h[c][t];if(w<=0)break;if(_%2==0){var S=(1-o.symbolSize)*.5,C=m+h[c][_]*S,j=s+p[l]*S,T=h[c][_]*o.symbolSize,k=p[l]*o.symbolSize,I=b/2%f[d].length;!function(e,t,s,l,u){var c=i?1:n,d=hH(u,e*c,t*c,s*c,l*c,o.color,o.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(d);h&&y.children.push(h)}else h9(a,d)}(C,j,T,k,f[d][I])}m+=h[c][_],++b,++_===h[c].length&&(_=0)}++c===h.length&&(c=0)}s+=p[l],++u,++l===p.length&&(l=0)}}(),l&&pe.put(t,v||y),e.image=v,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,h7.set(e,s),e.dirty=!1,s}function pr(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var pi=new rj,pa={},po="__flagInMainProcess",ps="__pendingUpdate",pl="__needsUpdateStatus",pu=/^[a-zA-Z0-9_]+$/;function pc(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.isDisposed()?void this.id:ph(this,e,t)}}function pd(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ph(this,e,t)}}function ph(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),rj.prototype[t].apply(e,n)}var pp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n_(t,e),t}(rj),pf=pp.prototype;pf.on=pd("on"),pf.off=pd("off");var pm=function(e){function t(t,n,r){var i=e.call(this,new hj)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},n0(n)&&(n=pw[n]),i._dom=t,r.ssr;var a=i._zr=a2(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:n6(r.useDirtyRect,!1),useCoarsePointer:n6(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=function(e,t,n){var r,i,a,o,s,l=0,u=0,c=null;function d(){u=new Date().getTime(),c=null,e.apply(a,o||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];r=new Date().getTime(),a=this,o=e;var p=s||t,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):i>=0?d():c=setTimeout(d,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}(nK(a.flush,a),17),(n=nE(n))&&co(n,!0),i._theme=n,i._locale=function(e){if(!n0(e))return nB(nE(e),nE(lJ.EN),!1);var t=lJ[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?nE(t):nB(nE(t),nE(lJ.EN),!1)}(r.locale||l1),i._coordSysMgr=new uK;var o=i._api=Q(i);function s(e,t){return e.__prio-t.__prio}return iu(pb,s),iu(px,s),i._scheduler=new ho(i,o,px,pb),i._messageCenter=new pp,i._initEvents(),i.resize=nK(i.resize,i),a.animation.on("frame",i._onframe,i),X(a,i),$(a,i),i[ri]=!0,i}return n_(t,e),t.prototype._onframe=function(){if(!this._disposed){et(this);var e=this._scheduler;if(this[ps]){var t=this[ps].silent;this[po]=!0;try{E(this),V.update.call(this,null,this[ps].updateParams)}catch(e){throw this[po]=!1,this[ps]=null,e}this._zr.flush(),this[po]=!1,this[ps]=null,U.call(this,t),q.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),G(this,r),e.performVisualTasks(r),J(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[po]){if(this._disposed)return void this.id;if(n3(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[po]=!0,!this._model||t){var r,i,a,o=new uQ(this._api),s=this._theme,l=this._model=new uG;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},p_);var u={seriesTransition:a,optionChanged:!0};if(n)this[ps]={silent:r,updateParams:u},this[po]=!1,this.getZr().wakeUp();else{try{E(this),V.update.call(this,null,u)}catch(e){throw this[ps]=null,this[po]=!1,e}this._ssr||this._zr.flush(),this[ps]=null,this[po]=!1,U.call(this,r),q.call(this,r)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nw.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(nw.svgSupported){var e=this._zr;return nU(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed)return void this.id;var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;nU(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="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return nU(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed)return void this.id;var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,a=1/0;if(!pj[n])return this.getDataURL(e);var o=a,s=a,l=-a,u=-a,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();nU(pC,function(a,d){if(a.group===n){var h=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(nE(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}}),o*=d,s*=d,l*=d,u*=d;var h=l-o,p=u-s,f=nj.createCanvas(),m=a2(f,{renderer:t?"svg":"canvas"});if(m.resize({width:h,height:p}),!t)return e.connectedBackgroundColor&&m.add(new lj({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),nU(c,function(e){var t=new l_({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});m.add(t)}),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"));var g="";return nU(c,function(e){var t=e.left-o,n=e.top-s;g+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()},t.prototype.convertToPixel=function(e,t){return W(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return W(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;return this._disposed?void this.id:(nU(og(this._model,e),function(e,r){r.indexOf("Models")>=0&&nU(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}},this)},this),!!n)},t.prototype.getVisual=function(e,t){var n=og(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(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)}}(r,i,t):function(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)}}(r,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,t,n,r=this;nU(pg,function(e){var t=function(t){var n,i=r.getModel(),a=t.target;if("globalout"===e?n={}:a&&hM(a,function(e){var t=oA(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return n=nH({},t.eventData),!0},!0),n){var o=n.componentType,s=n.componentIndex;("markLine"===o||"markPoint"===o||"markArea"===o)&&(o="series",s=n.seriesIndex);var l=o&&null!=s&&i.getComponent(o,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:l,view:u},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),nU(py,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),nU(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(hI("map","selectchanged",t,r,e),hI("pie","selectchanged",t,r,e)):"select"===e.fromAction?(hI("map","selected",t,r,e),hI("pie","selected",t,r,e)):"unselect"===e.fromAction&&(hI("map","unselected",t,r,e),hI("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&(e=this.getDom(),e.setAttribute?e.setAttribute(pT,""):e[pT]="");var e,t=this._api,n=this._model;nU(this._componentsViews,function(e){e.dispose(n,t)}),nU(this._chartsViews,function(e){e.dispose(n,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete pC[this.id]},t.prototype.resize=function(e){if(!this[po]){if(this._disposed)return void this.id;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[ps]&&(null==r&&(r=this[ps].silent),n=!0,this[ps]=null),this[po]=!0;try{n&&E(this),V.update.call(this,{type:"resize",animation:nH({duration:0},e&&e.animation)})}catch(e){throw this[po]=!1,e}this[po]=!1,U.call(this,r),q.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)return void this.id;if(n3(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),pS[e]){var n=pS[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=nH({},e);return t.type=py[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)return void this.id;if((n3(t)||(t={silent:!!t}),pv[e.type])&&this._model){if(this[po])return void this._pendingActions.push(e);var n=t.silent;Y.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&nw.browser.weChat&&this._throttledZrFlush(),U.call(this,n),q.call(this,n)}},t.prototype.updateLabelLayout=function(){pi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)return void this.id;var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered(function(e){return function e(t,n,r,i){var a=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(e(s[l],n,r,i),i);else t.z=n,t.zlevel=r,i=Math.max(t.z2,i);if(a&&(a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+2)),o){var u=t.textGuideLineConfig;o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}(e,n,r,-1/0),!0})}}function r(e,t){t.eachRendered(function(e){if(!s8(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(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&&(e.prevStates=null)}})}function i(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis&&!s8(e)){if(e instanceof s_&&((n=sS(e)).normalFill=e.style.fill,n.normalStroke=e.style.stroke,n.selectFill=(r=e.states.select||{}).style&&r.style.fill||null,n.selectStroke=r.style&&r.style.stroke||null),e.__dirty){var n,r,a=e.prevStates;a&&e.useStates(a)}if(i){e.stateTransition=o;var s=e.getTextContent(),l=e.getTextGuideLine();s&&(s.stateTransition=o),l&&(l.stateTransition=o)}e.__dirty&&t(e)}})}E=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),B(e,!0),B(e,!1),t.plan()},B=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,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&a[u];if(!c){var d=ow(e.type);(c=new(t?dt.getClass(d.main,d.sub):d3.getClass(d.sub))).init(n,s),a[u]=c,i.push(c),o.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},t||r.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(var l=0;l<i.length;){var c=i[l];c.__alive?l++:(t||c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),i.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},H=function(e,t,n,r,i){var a,o=e._model;if(o.setUpdatePayload(n),!r)return void nU([].concat(e._componentsViews).concat(e._chartsViews),c);var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var u=n.excludeSeriesId;function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}null!=u&&(a=rl(),nU(oi(u),function(e){var t=oc(e,null);null!=t&&a.set(t,!0)})),o&&o.eachComponent(l,function(t){if(!(a&&null!=a.get(t.id))){if(s2(n))if(t instanceof c3)n.type!==sk||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=op(i,t);a=(nQ(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=oA(o);s$(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&s$(r,c,d,n)}}}(t,n,e._api);else{var r=sK(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===sk&&i&&!n.notBlur&&sZ(t.mainType,t.componentIndex,e._api),o&&nU(o,function(e){n.type===sk?sY(e):sU(e)})}else if(s0(n)&&t instanceof c3){if(e._api,s0(n)){var s=n.dataType,l=op(t.getData(s),n);nQ(l)||(l=[l]),t[n.type===sO?"toggleSelect":n.type===sM?"select":"unselect"](l,s)}sJ(t),ee(e)}}},e),o&&o.eachComponent(l,function(t){a&&null!=a.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)},V={prepareAndUpdate:function(e){E(this),V.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,t),G(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t),Z(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");a.setBackgroundColor(l),null!=u&&"auto"!==u&&a.setDarkMode(u),pi.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent(function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,r,i,t);l&&l.update&&a.push(s)}else a.push(s)}});var o=rl();r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,r,i,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:o}),J(this,r,i,t,{},o),pi.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),d3.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Z(this,n,this._api,t,{}),pi.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),d3.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),pi.trigger("afterupdate",r,this._api))},updateLayout:function(e){V.update.call(this,e)}},W=function(e,t,n,r){if(e._disposed)return void e.id;for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=og(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&null!=(i=u[t](a,s,r)))return i}},G=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},Y=function(e,t){var n,r=this,i=this.getModel(),a=e.type,o=e.escapeConnect,s=pv[a],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),d=null!=u[0]&&ow(u[0]);this[po]=!0;var h=[e],p=!1;e.batch&&(p=!0,h=nq(e.batch,function(t){return(t=nV(nH({},t),e)).batch=null,t}));var f=[],m=s0(e),g=s2(e);if(g&&sX(this._api),nU(h,function(t){if((n=(n=s.action(t,r._model,r._api))||nH({},t)).type=l.event||n.type,f.push(n),g){var i=ov(e),a=i.queryOptionMap;H(r,c,t,i.mainTypeSpecified?a.keys()[0]:"series"),ee(r)}else m?(H(r,c,t,"series"),ee(r)):d&&H(r,c,t,d.main,d.sub)}),"none"!==c&&!g&&!m&&!d)try{this[ps]?(E(this),V.update.call(this,e),this[ps]=null):V[c].call(this,e)}catch(e){throw this[po]=!1,e}if(n=p?{type:l.event||a,escapeConnect:o,batch:f}:f[0],this[po]=!1,!t){var v=this._messageCenter;if(v.trigger(n.type,n),m){var y,x={type:"selectchanged",escapeConnect:o,selected:(y=[],i.eachSeries(function(e){nU(e.getAllData(),function(t){t.data;var n=t.type,r=e.getSelectedDataIndices();if(r.length>0){var i={dataIndex:r,seriesIndex:e.seriesIndex};null!=n&&(i.dataType=n),y.push(i)}})}),y),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(x.type,x)}}},U=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Y.call(this,n,e)}},q=function(e){e||this.trigger("updated")},X=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[ps]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},$=function(e,t){e.on("mouseover",function(e){var n,r,i,a,o,s=hM(e.target,s1);s&&(n=t._api,a=(i=sK((r=oA(s)).componentMainType,r.componentIndex,r.componentHighDownName,n)).dispatchers,o=i.focusSelf,a?(o&&sZ(r.componentMainType,r.componentIndex,n),nU(a,function(t){return sW(t,e)})):(s$(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&sZ(r.componentMainType,r.componentIndex,n),sW(s,e)),ee(t))}).on("mouseout",function(e){var n,r,i,a=hM(e.target,s1);a&&(sX(n=t._api),(i=sK((r=oA(a)).componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers)?nU(i,function(t){return sG(t,e)}):sG(a,e),ee(t))}).on("click",function(e){var n=hM(e.target,function(e){return null!=oA(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=oA(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Z=function(e,t,n,r,i){!function(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=r||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i,a,o=t.concat(n);iu(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),nU(o,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)})}}(t),K(e,t,n,r,i),nU(e._chartsViews,function(e){e.__alive=!1}),J(e,t,n,r,i),nU(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},K=function(e,t,a,o,s,l){nU(l||e._componentsViews,function(e){var s=e.__model;r(s,e),e.render(s,t,a,o),n(s,e),i(s,e)})},J=function(e,t,a,o,s,l){var u,c,d,h,p=e._scheduler;s=nH(s||{},{updatedSeries:t.getSeries()}),pi.trigger("series:beforeupdate",t,a,s);var f=!1;t.eachSeries(function(t){var n,i,a,s=e._chartsMap[t.__viewId];s.__alive=!0;var u=s.renderTask;p.updatePayload(u,o),r(t,s),l&&l.get(t.uid)&&u.dirty(),u.perform(p.getPerformArgs(u))&&(f=!0),s.group.silent=!!t.get("silent"),n=t,i=s,a=n.get("blendMode")||null,i.eachRendered(function(e){e.isGroup||(e.style.blend=a)}),sJ(t)}),p.unfinished=f||p.unfinished,pi.trigger("series:layoutlabels",t,a,s),pi.trigger("series:transition",t,a,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),i(t,r)}),u=e,c=t,d=u._zr.storage,h=0,d.traverse(function(e){!e.isGroup&&h++}),!(h>c.get("hoverLayerThreshold"))||nw.node||nw.worker||c.eachSeries(function(e){if(!e.preventUsingHoverLayer){var t=u._chartsMap[e.__viewId];t.__alive&&t.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}}),pi.trigger("series:afterupdate",t,a,s)},ee=function(e){e[pl]=!0,e.getZr().wakeUp()},et=function(e){e[pl]&&(e.getZr().storage.traverse(function(e){s8(e)||t(e)}),e[pl]=!1)},Q=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return n_(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){sY(t,n),ee(e)},n.prototype.leaveEmphasis=function(t,n){sU(t,n),ee(e)},n.prototype.enterBlur=function(t){sB(t,sN),ee(e)},n.prototype.leaveBlur=function(t){sB(t,sL),ee(e)},n.prototype.enterSelect=function(t){sB(t,sF),ee(e)},n.prototype.leaveSelect=function(t){sB(t,sE),ee(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}(u$))(e)}}(),t}(rj).prototype;pm.on=pc("on"),pm.off=pc("off"),pm.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var pg=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],pv={},py={},px=[],p_=[],pb=[],pw={},pS={},pC={},pj={},pT="_echarts_instance_";function pk(e){0>nW(p_,e)&&p_.push(e)}function pI(e,t){pR(px,e,t,2e3)}function pM(e,t){pi.on(e,t)}function pD(e,t,n){n1(t)&&(n=t,t="");var r=n3(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),py[t=e.event]||(rn(pu.test(r)&&pu.test(t)),pv[r]||(pv[r]={action:n,actionInfo:e}),py[t]=r)}function pO(e,t){pR(pb,e,t,1e3,"layout")}function pA(e,t){pR(pb,e,t,3e3,"visual")}var pz=[];function pR(e,t,n,r,i){if((n1(t)||n3(t))&&(n=t,t=r),!(nW(pz,n)>=0)){pz.push(n);var a=ho.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function pP(e){return null==e?0:e.length||1}function pN(e){return e}pA(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=hn(e,r)(i),o=i.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=hr(e,r),l=a[s],u=n1(l)?l:null,c="auto"===a.fill||"auto"===a.stroke;if(!a[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||n1(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||n1(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=nH({},a);i[s]=u(r),t.setItemVisual(n,"style",i)}}}}),pA(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=hn(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){hi.option=n[r];var o=i(hi);nH(e.ensureUniqueItemVisual(t,"style"),o),hi.option.decal&&(e.setItemVisual(t,"decal",hi.option.decal),hi.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}}),pA(4500,{performRawSeries:!0,overallReset:function(e){var t=rl();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)),d7(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=d7(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=hr(t,o);i.each(function(e){r[i.getRawIndex(e)]=e}),n.each(function(e){var o=r[e];if(i.getItemVisual(o,"colorFromPalette")){var l=i.ensureUniqueItemVisual(o,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,a,c)}})}})}}),pA(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<hT.length;o++){var s=hT[o],l=e.get(s);n1(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(nH({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=nZ(i);return{dataEach:a?function(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<u.length;o++){var s=u[o];t.setItemVisual(n,s,i[s](r,a))}}:null}}}}}),pA(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<hk.length;r++){var i=hk[r],a=n.getShallow(i,!0);null!=a&&e.setItemVisual(t,i,a)}}:null}}}),pA(7e3,function(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");n&&(r.ensureUniqueItemVisual(e,"style").decal=pn(n,t))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=pn(i,t))}})}),pk(co),pI(900,function(e){var t=rl();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.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(cs)}),pS.default=function(e,t){nV(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,r=new aJ,i=new lj({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var a=new lI({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new lj({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return r.add(o),t.showSpinner&&((n=new dZ({shape:{startAngle:-ha/2,endAngle:-ha/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*ha/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*ha/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&r?10:0)-r)/2-(t.showSpinner&&r?0:5+r/2)+(t.showSpinner?0:r/2)+(r?0:s),u=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r},pD({type:sk,event:sk,update:sk},rh),pD({type:sI,event:sI,update:sI},rh),pD({type:sM,event:sM,update:sM},rh),pD({type:sD,event:sD,update:sD},rh),pD({type:sO,event:sO,update:sO},rh),pw.light={color:hx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],hx]},pw.dark=hC;var pL=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||pN,this._newKeyGetter=r||pN,this.context=i,this._diffModeMultiple="multiple"===a}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],l=pP(s);if(l>1){var u=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(u,a)}else 1===l?(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],l=n[s],u=r[s],c=pP(l),d=pP(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}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=pP(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else 1===a&&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],l=pP(s);0===l?(t[o]=a,i&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),pF=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._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pE(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}let pB=function(e){this.otherDims={},null!=e&&nH(this,e)};var pH=of(),pV={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pW=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||(this._dimNameMap=pY(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return n6(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=cm(this.source),n=!(e>30),r="",i=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===a)s=t?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=pV[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.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 pG(e){for(var t=rl(),n=0;n<(e||[]).length;n++){var r=e[n],i=n3(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function pY(e){var t=pH(e);return t.dimNameMap||(t.dimNameMap=pG(e.dimensionsDefine))}var pU=n3,pq="u"<typeof Int32Array?Array:Int32Array,pX=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],p$=["_approximateExtent"],pZ=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;e instanceof pW?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=n0(c)?new pB({name:c}):c instanceof pB?c:new pB(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(h),i[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(o[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=rl();nU(a,function(e){f.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return -1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(n2(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(e)))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(null==t)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,i,a,o,s,l,u,c,d,h,p,f,m,g=this;if(e instanceof c$&&(m=e),!m){var v=this.dimensions,y=cu(e)||nY(e)?new cg(e,v.length):e;m=new c$;var x=nq(v,function(e){return{type:g._dimInfos[e].type,property:e}});m.initData(y,x,n)}this._store=m,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,m.count()),this._dimSummary=(r=this,i=this._schema,o=(a={}).encode={},s=rl(),l=[],u=[],c={},nU(r.dimensions,function(e){var t=r.getDimensionInfo(e),n=t.coordDim;if(n){var i,a=t.coordDimIndex;pE(o,n)[a]=e,t.isExtraCoord||(s.set(n,1),"ordinal"!==(i=t.type)&&"time"!==i&&(l[0]=e),pE(c,n)[a]=r.getDimensionIndex(t.name)),t.defaultTooltip&&u.push(e)}uD.each(function(e,n){var r=pE(o,n),i=t.otherDims[n];null!=i&&!1!==i&&(r[i]=t.name)})}),d=[],h={},s.each(function(e,t){var n=o[t];h[t]=n[0],d=d.concat(n)}),a.dataDimsOnCoord=d,a.dataDimIndicesOnCoord=nq(d,function(e){return r.getDimensionInfo(e).storeDimIndex}),a.encodeFirstDimNotExtra=h,(p=o.label)&&p.length&&(l=p.slice()),(f=o.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),o.defaultedLabel=l,o.defaultedTooltip=u,a.userOutput=new pF(c,i),a),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&&el(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 null==this._idDimIdx&&e.getSource().sourceFormat!==uP&&!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===uO&&!n.pure)for(var a=[],o=e;o<t;o++){var s,l=n.getItem(o,a);if(!(!this.hasItemOption&&n3(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==r[o]&&null!=u&&(r[o]=oc(u,null));var c=l.id;null==i[o]&&null!=c&&(i[o]=oc(c,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)el(this,o);en(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){pU(e)?nH(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=ei(this,this._nameDimIdx,t)),null==n&&(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 er(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 nQ(e)?r.getValues(nq(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 null==r||isNaN(r)?-1:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){n1(e)&&(n=t,t=e,e=[]);var r=n||this,i=nq(ea(e),this._getStoreDimIndex,this);this._store.each(i,r?nK(t,r):t)},e.prototype.filterSelf=function(e,t,n){n1(e)&&(n=t,t=e,e=[]);var r=n||this,i=nq(ea(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?nK(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=nZ(e),i=[];return nU(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){n1(e)&&(n=t,t=e,e=[]),n=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=nq(ea(e),this._getStoreDimIndex,this),o=es(this);return o._store=this._store.map(a,i?nK(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=nq(ea(e),this._getStoreDimIndex,this);this._store.modify(a,i?nK(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=es(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=es(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=es(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 l$(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pL(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return er(e,t)},function(e){return er(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||{},pU(e)?nH(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(nQ(i=this.getVisual(t))?i=i.slice():pU(i)&&(i=nH({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,pU(t)?nH(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){pU(e)?nH(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?nH(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){oz(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){nU(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:nq(this.dimensions,this._getDimInfo,this),this.hostModel)),eo(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];n1(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(re(arguments)))})},e.internalField=void(en=function(e){var t=e._invertedIndicesMap;nU(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new pq(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},ei=function(e,t,n){return oc(e._getCategory(t,n),null)},er=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=ei(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},ea=function(e){return nQ(e)||(e=null!=e?[e]:[]),e},es=function(t){var n=new e(t._schema?t._schema:nq(t.dimensions,t._getDimInfo,t),t.hostModel);return eo(n,t),n},eo=function(e,t){nU(pX.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,nU(p$,function(n){e[n]=nE(t[n])}),e._calculationInfo=nH({},t._calculationInfo)},el=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=ei(e,i,t)),null==s&&null!=a&&(r[t]=s=ei(e,a,t)),null==s&&null!=o){var l=e._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),r[t]=s}}),e}();function pK(e,t){return function(e,t){cu(e)||(e=cd(e));var n,r,i,a,o,s=(t=t||{}).coordDimensions||[],l=t.dimensionsDefine||e.dimensionsDefine||[],u=rl(),c=[],d=(n=e,r=s,i=l,a=t.dimensionsCount,o=Math.max(n.dimensionsDetectedCount||1,r.length,i.length,a||0),nU(r,function(e){var t;n3(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))}),o),h=t.canOmitUnusedDimensions&&d>30,p=l===e.dimensionsDefine,f=p?pY(e):pG(l),m=t.encodeDefine;!m&&t.encodeDefaulter&&(m=t.encodeDefaulter(e,d));for(var g=rl(m),v=new cW(d),y=0;y<v.length;y++)v[y]=-1;function x(e){var t=v[e];if(t<0){var n=l[e],r=n3(n)?n:{name:n},i=new pB,a=r.name;null!=a&&null!=f.get(a)&&(i.name=i.displayName=a),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var o=c.length;return v[e]=o,i.storeDimIndex=e,c.push(i),i}return c[t]}if(!h)for(var y=0;y<d;y++)x(y);g.each(function(e,t){var n=oi(e).slice();if(1===n.length&&!n0(n[0])&&n[0]<0)return void g.set(t,!1);var r=g.set(t,[]);nU(n,function(e,n){var i=n0(e)?f.get(e):e;null!=i&&i<d&&(r[n]=i,b(x(i),t,n))})});var _=0;function b(e,t,n){null!=uD.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,u.set(t,!0))}nU(s,function(e){if(n0(e))i=e,r={};else{var t,n,r,i=(r=e).name,a=r.ordinalMeta;r.ordinalMeta=null,(r=nH({},r)).ordinalMeta=a,t=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var o=g.get(i);if(!1!==o){if(!(o=oi(o)).length)for(var s=0;s<(t&&t.length||1);s++){for(;_<d&&null!=x(_).coordDim;)_++;_<d&&o.push(_++)}nU(o,function(e,a){var o=x(e);if(p&&null!=r.type&&(o.type=r.type),b(nV(o,r),i,a),null==o.name&&t){var s=t[a];n3(s)||(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}n&&nV(o.otherDims,n)})}});var w=t.generateCoord,S=t.generateCoordCount,C=null!=S;S=w?S||1:0;var j=w||"value";function T(e){null==e.name&&(e.name=e.coordDim)}if(h)nU(c,function(e){T(e)}),c.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var k=0;k<d;k++){var I=x(k);null==I.coordDim&&(I.coordDim=function(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}(j,u,C),I.coordDimIndex=0,(!w||S<=0)&&(I.isExtraCoord=!0),S--),T(I),null==I.type&&(1===uE(e,k)||I.isExtraCoord&&(null!=I.otherDims.itemName||null!=I.otherDims.seriesName))&&(I.type="ordinal")}return function(e){for(var t=rl(),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)}}(c),new pW({source:e,dimensions:c,fullDimensionCount:d,dimensionOmitted:h})}(e,t).dimensions}var pJ=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},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}();oI(pJ);var pQ=0,p1=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++pQ}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&nq(r,p0);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!n0(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=rl(this.categories))},e}();function p0(e){return n3(e)&&null!=e.value?e.value:e+""}function p2(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function p3(e,t){return e>=t[0]&&e<=t[1]}function p4(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function p5(e,t){return e*(t[1]-t[0])+t[0]}var p8=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new p1({})),nQ(r)&&(r=new p1({categories:nq(r,function(e){return n3(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return n_(t,e),t.prototype.parse=function(e){return null==e?NaN:n0(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return p3(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return p4(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(p5(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(null==e){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 l=0;i<a;++i){for(;null!=r[l];)l++;n.push(l),r[l]=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 null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},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}(pJ);pJ.registerClass(p8);var p9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return n_(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p3(e,this._extent)},t.prototype.normalize=function(e){return p4(e,this._extent)},t.prototype.scale=function(e){return p5(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a5(e)+2},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;n[0]<r[0]&&(e?a.push({value:a4(r[0]-t,i)}):a.push({value:n[0]}));for(var o=r[0];o<=r[1]&&(a.push({value:o}),(o=a4(o+t,i))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:a4(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,l=[],u=(a.value-o.value)/e;s<e-1;){var c=a4(o.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=a5(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=a4(e.value,n,!0);if(isNaN(oe(r)))return n0(r)?r:"-";var i=(r+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a,o,s,l,u,c,d=(s=e,u=(l={}).interval=a7((r[1]-r[0])/s,!0),null!=t&&u<t&&(u=l.interval=t),null!=n&&u>n&&(u=l.interval=n),c=l.intervalPrecision=a5(u)+2,a=l.niceTickExtent=[a4(Math.ceil(r[0]/u)*u,c),a4(Math.floor(r[1]/u)*u,c)],o=r,isFinite(a[0])||(a[0]=o[0]),isFinite(a[1])||(a[1]=o[1]),p2(a,0,o),p2(a,1,o),a[0]>a[1]&&(a[0]=a[1]),l);this._intervalPrecision=d.intervalPrecision,this._interval=d.interval,this._niceExtent=d.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;isFinite(t[1]-t[0])||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=a4(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=a4(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(pJ);pJ.registerClass(p9);var p6=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},p7=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return n_(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return l7(e.value,l4[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(l6(this._minLevelUnit))]||l4.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var a=null;if(n0(n))a=n;else if(n1(n))a=n(e.value,t,{level:e.level});else{var o=nH({},l2);if(e.level>0)for(var s=0;s<l5.length;++s)o[l5[s]]="{primary|"+o[l5[s]]+"}";var l=n?!1===n.inherit?n:nV(n,o):o,u=ue(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=l8.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(nQ(a)){var d=null==e.level?0:e.level>=0?e.level:a.length+e.level;d=Math.min(d,a.length-1),a=a[d]}}return l7(new Date(e.value),a,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){for(var i=0,a=[],o=[],s=0,l=0,u=0;u<l8.length&&i++<1e4;++u){var c,d=l6(l8[u]);if((c=l8[u])===l6(c)&&(!function(e,i,a){var o=[],s=!i.length;if(!function(e,t,n,r){var i=a9(t),a=a9(n),o=function(e){return ut(i,e,r)===ut(a,e,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},h=function(){return d()&&o("second")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(l6(e),r[0],r[1],n)){s&&(i=[{value:function(e,t,n){var r=new Date(e);switch(l6(t)){case"year":case"month":r[uu(n)](0);case"day":r[uc(n)](1);case"hour":r[ud(n)](0);case"minute":r[uh(n)](0);case"second":r[up(n)](0),r[uf(n)](0)}return r.getTime()}(new Date(r[0]),e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,c=i[l+1].value;if(u!==c){var d,h,p,f=void 0,m=void 0,g=void 0;switch(e){case"year":f=Math.max(1,Math.round(t/864e5/365)),m=un(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":f=(d=t/2592e6)>6?6:d>3?3:d>2?2:1,m=ur(n),g=uu(n);break;case"week":case"half-week":case"day":f=(h=t/864e5)>16?16:h>7.5?7:h>3.5?4:h>1.5?2:1,m=ui(n),g=uc(n);break;case"half-day":case"quarter-day":case"hour":f=(p=t/36e5)>12?12:p>6?6:p>3.5?4:p>2?2:1,m=ua(n),g=ud(n);break;case"minute":f=ft(t,!0),m=uo(n),g=uh(n);break;case"second":f=ft(t,!1),m=us(n),g=up(n);break;case"millisecond":f=a7(t,!0),m=ul(n),g=uf(n)}!function(e,t,n,i,a,o,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}(f,u,c,m,g,0,o),"year"===e&&a.length>1&&0===l&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}(l8[u],a[a.length-1]||[],o),d!==(l8[u+1]?l6(l8[u+1]):null))){if(o.length){l=s,o.sort(function(e,t){return e.value-t.value});for(var h=[],p=0;p<o.length;++p){var f=o[p].value;(0===p||o[p-1].value!==f)&&(h.push(o[p]),f>=r[0]&&f<=r[1]&&s++)}var m=(r[1]-r[0])/t;if(s>1.5*m&&l>m/1.5||(a.push(h),s>m||e===l8[u]))break}o=[]}}for(var g=n$(nq(a,function(e){return n$(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),v=[],y=g.length-1,u=0;u<g.length;++u)for(var x=g[u],_=0;_<x.length;++_)v.push({value:x[_].value,level:y-u});v.sort(function(e,t){return e.value-t.value});for(var b=[],u=0;u<v.length;++u)(0===u||v[u].value!==v[u-1].value)&&b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=864e5,t[1]+=864e5),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]-864e5}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=fe.length,o=Math.min(p6(fe,this._approxInterval,0,a),a-1);this._interval=fe[o][1],this._minLevelUnit=fe[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return n2(e)?e:+a9(e)},t.prototype.contain=function(e){return p3(this.parse(e),this._extent)},t.prototype.normalize=function(e){return p4(this.parse(e),this._extent)},t.prototype.scale=function(e){return p5(e,this._extent)},t.type="time",t}(p9),fe=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function ft(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}pJ.registerClass(p7);var fn=pJ.prototype,fr=p9.prototype,fi=Math.floor,fa=Math.ceil,fo=Math.pow,fs=Math.log,fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new p9,t._interval=0,t}return n_(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return nq(fr.getTicks.call(this,e),function(e){var t=e.value,i=a4(fo(this.base,t));return i=t===n[0]&&this._fixMin?a4(i,a5(r[0])):i,{value:i=t===n[1]&&this._fixMax?a4(i,a5(r[1])):i}},this)},t.prototype.setExtent=function(e,t){var n=fs(this.base);e=fs(Math.max(0,e))/n,t=fs(Math.max(0,t))/n,fr.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e,t,n=this.base,r=fn.getExtent.call(this);r[0]=fo(n,r[0]),r[1]=fo(n,r[1]);var i=this._originalScale.getExtent();return this._fixMin&&(r[0]=(e=r[0],a4(e,a5(i[0])))),this._fixMax&&(r[1]=(t=r[1],a4(t,a5(i[1])))),r},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=fs(e[0])/fs(t),e[1]=fs(e[1])/fs(t),fn.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(n!==1/0&&!(n<=0)){var r=Math.pow(10,a6(n));for(e/n*r<=.5&&(r*=10);!isNaN(r)&&1>Math.abs(r)&&Math.abs(r)>0;)r*=10;var i=[a4(fa(t[0]/r)*r),a4(fi(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){fr.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p3(e=fs(e)/fs(this.base),this._extent)},t.prototype.normalize=function(e){return p4(e=fs(e)/fs(this.base),this._extent)},t.prototype.scale=function(e){return e=p5(e,this._extent),fo(this.base,e)},t.type="log",t}(pJ),fu=fl.prototype;function fc(e,t,n){this._prepareParams(e,t,n)}fu.getMinorTicks=fr.getMinorTicks,fu.getLabel=fr.getLabel,pJ.registerClass(fl),fc.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="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var a=this._modelMinRaw=i;n1(a)?this._modelMinNum=fp(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=fp(e,a));var o=this._modelMaxRaw=t.get("max",!0);if(n1(o)?this._modelMaxNum=fp(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=fp(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=nQ(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[aV(l[0],1),aV(l[1],1)]}},fc.prototype.calculate=function(){var e,t,n=this._isOrdinal,r=this._dataMin,i=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=n?null:i-r||Math.abs(r),l="dataMin"===this._modelMinRaw?r:this._modelMinNum,u="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,c=null!=l,d=null!=u;null==l&&(l=n?a?0:NaN:r-o[0]*s),null==u&&(u=n?a?a-1:NaN:i+o[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=u&&isFinite(u)||(u=NaN);var h=(e=l)!=e||(t=u)!=t||n&&!a;this._needCrossZero&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!d&&(u=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(l=p,c=!0),null!=f&&(u=f,d=!0),{min:l,max:u,minFixed:c,maxFixed:d,isBlank:h}},fc.prototype.modifyDataMinMax=function(e,t){this[fh[e]]=t},fc.prototype.setDeterminedMinMax=function(e,t){this[fd[e]]=t},fc.prototype.freeze=function(){this.frozen=!0};var fd={min:"_determinedMin",max:"_determinedMax"},fh={min:"_dataMin",max:"_dataMax"};function fp(e,t){return null==t?null:t!=t?NaN:e.parse(t)}function ff(){}function fm(e,t){var n;return function(e,t,n,r,i){n=n||s9;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||s9).rich;if(n){t=t||{};for(var r=nZ(n),i=0;i<r.length;i++)t[r[i]]=1}e=e.parentModel}return t}(t);if(l){for(var u in a={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);lt(a[u]={},c,s,n,r,i,!1,!0)}}a&&(e.rich=a);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h),lt(e,t,s,n,r,i,!0,!1)}(n={},e,null,"normal"!==(t=t||{}).state,void 0),n}ff.prototype.getNeedCrossZero=function(){return!this.option.scale},ff.prototype.getCoordSysModel=function(){};var fg=[];function fv(){var e=null!==oE&&oE.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}n_(fv,oE),fv.prototype.traverse=function(e,t){e.call(t,this)},fv.prototype.useStyle=function(){this.style={}},fv.prototype.getCursor=function(){return this._cursor},fv.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},fv.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},fv.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},fv.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},fv.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},fv.prototype.getDisplayables=function(){return this._displayables},fv.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},fv.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])},fv.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}},fv.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new r4(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(fg)),e.union(r)}this._rect=e}return this._rect},fv.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};var fy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return n_(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=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),s_.prototype.getBoundingRect.call(this)},t}(s_),fx=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();function f_(e){var t=c3.extend(e);return c3.registerClass(t),t}function fb(e){var t=d3.extend(e);return d3.registerClass(t),t}n_(function(e,t,n,r,i,a){var o=j.call(this,i)||this;return o.x=null==e?0:e,o.y=null==t?0:t,o.x2=null==n?1:n,o.y2=null==r?0:r,o.type="linear",o.global=a||!1,o},j=fx),n_(function(e,t,n,r,i){var a=T.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==t?.5:t,a.r=null==n?.5:n,a.type="radial",a.global=i||!1,a},T=fx);var fw=[],fS={registerPreprocessor:pk,registerProcessor:pI,registerPostInit:function(e){pM("afterinit",e)},registerPostUpdate:function(e){pM("afterupdate",e)},registerUpdateLifecycle:pM,registerAction:pD,registerCoordinateSystem:function(e,t){uK.register(e,t)},registerLayout:pO,registerVisual:pA,registerTransform:function(e){var t=(e=nE(e)).type;t||cD("");var n=t.split(":");2!==n.length&&cD("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,cF.set(t,e)},registerLoading:function(e,t){pS[e]=t},registerMap:function(e,t,n){var r=pa.registerMap;r&&r(e,t,n)},registerImpl:function(e,t){pa[e]=t},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:uC,ComponentView:dt,SeriesModel:c3,ChartView:d3,registerComponentModel:function(e){uC.registerClass(e)},registerComponentView:function(e){dt.registerClass(e)},registerSeriesModel:function(e){c3.registerClass(e)},registerChartView:function(e){d3.registerClass(e)},registerSubTypeDefaulter:function(e,t){uC.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){aQ[e]=t}};function fC(e){nQ(e)?nU(e,function(e){fC(e)}):nW(fw,e)>=0||(fw.push(e),n1(e)&&(e={install:e}),e.install(fS))}var fj=2*Math.PI,fT=so.CMD,fk=["top","right","bottom","left"];function fI(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=Math.sqrt(l*l+u*u),d=((i-e)*(l/=c)+(a-t)*(u/=c))/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var h=o[0]=e+d*l,p=o[1]=t+d*u;return Math.sqrt((h-i)*(h-i)+(p-a)*(p-a))}function fM(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var fD=[],fO=new r$,fA=new r$,fz=new r$,fR=new r$,fP=new r$;function fN(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||fk,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),d=c&&rX([],c),h=t.get("length2")||0;u&&fz.copy(u);for(var p=0;p<o.length;p++){!function(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-0),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+0),i.set(0,1);break;case"left":r.set(n.x-0,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+0,n.y+o/2),i.set(1,0)}}(o[p],0,s,fO,fR),r$.scaleAndAdd(fA,fO,fR,h),fA.transform(d);var f=e.getBoundingRect(),m=u?u.distance(fA):e instanceof s_?function(e,t,n){for(var r,i,a=0,o=0,s=0,l=0,u=1/0,c=t.data,d=e.x,h=e.y,p=0;p<c.length;){var f=c[p++];1===p&&(a=c[p],o=c[p+1],s=a,l=o);var m=u;switch(f){case fT.M:s=c[p++],l=c[p++],a=s,o=l;break;case fT.L:m=fI(a,o,c[p],c[p+1],d,h,fD,!0),a=c[p++],o=c[p++];break;case fT.C:m=iD(a,o,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],d,h,fD),a=c[p++],o=c[p++];break;case fT.Q:m=iP(a,o,c[p++],c[p++],c[p],c[p+1],d,h,fD),a=c[p++],o=c[p++];break;case fT.A:var g=c[p++],v=c[p++],y=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);r=Math.cos(_)*y+g,i=Math.sin(_)*x+v,p<=1&&(s=r,l=i);var S=(d-g)*x/y+g;m=function(e,t,n,r,i,a,o,s,l){var u=Math.sqrt((o-=e)*o+(s-=t)*s),c=(o/=u)*n+e,d=(s/=u)*n+t;if(Math.abs(r-i)%fj<1e-4)return l[0]=c,l[1]=d,u-n;if(a){var h=r;r=su(i),i=su(h)}else r=su(r),i=su(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 l[0]=c,l[1]=d,u-n;var f=n*Math.cos(r)+e,m=n*Math.sin(r)+t,g=n*Math.cos(i)+e,v=n*Math.sin(i)+t,y=(f-o)*(f-o)+(m-s)*(m-s),x=(g-o)*(g-o)+(v-s)*(v-s);return y<x?(l[0]=f,l[1]=m,Math.sqrt(y)):(l[0]=g,l[1]=v,Math.sqrt(x))}(g,v,x,_,_+b,w,S,h,fD),a=Math.cos(_+b)*y+g,o=Math.sin(_+b)*x+v;break;case fT.R:m=fM(s=a=c[p++],l=o=c[p++],c[p++],c[p++],d,h,fD);break;case fT.Z:m=fI(a,o,s,l,d,h,fD,!0),a=s,o=l}m<u&&(u=m,n.set(fD[0],fD[1]))}return u}(fA,e.path,fz):function(e,t,n){var r=fM(t.x,t.y,t.width,t.height,e.x,e.y,fD);return n.set(fD[0],fD[1]),r}(fA,f,fz);m<l&&(l=m,fA.transform(c),fz.transform(c),fz.toArray(a[0]),fA.toArray(a[1]),fO.toArray(a[2]))}(function(e,t){if(t<=180&&t>0){t=t/180*Math.PI,fO.fromArray(e[0]),fA.fromArray(e[1]),fz.fromArray(e[2]),r$.sub(fR,fO,fA),r$.sub(fP,fz,fA);var n=fR.len(),r=fP.len();if(!(n<.001)&&!(r<.001)&&(fR.scale(1/n),fP.scale(1/r),Math.cos(t)<fR.dot(fP))){var i=fI(fA.x,fA.y,fz.x,fz.y,fO.x,fO.y,fL,!1);fF.fromArray(fL),fF.scaleAndAdd(fP,i/Math.tan(Math.PI-t));var a=fz.x!==fA.x?(fF.x-fA.x)/(fz.x-fA.x):(fF.y-fA.y)/(fz.y-fA.y);if(isNaN(a))return;a<0?r$.copy(fF,fA):a>1&&r$.copy(fF,fz),fF.toArray(e[1])}}})(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var fL=[],fF=new r$;function fE(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(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 fB(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=rv(r[0],r[1]),a=rv(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=rx([],r[1],r[0],o/i),l=rx([],r[1],r[2],o/a),u=rx([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}var fH=[0,0],fV=[0,0],fW=new r$,fG=new r$,fY=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r$;for(var n=0;n<2;n++)this._axes[n]=new r$;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 l=0;l<4;l++)n[l].transform(t);r$.sub(r[0],n[1],n[0]),r$.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return(fW.set(1/0,1/0),fG.set(0,0),!this._intersectCheckOneSide(this,e,fW,fG,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,fW,fG,r,-1)&&(n=!1,r))?n:(r||r$.copy(t,n?fW:fG),n)},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,fH),this._getProjMinMaxOnAxis(s,t._corners,fV),fH[1]<fV[0]||fH[0]>fV[1]){if(o=!1,i)return o;var u=Math.abs(fV[0]-fH[1]),c=Math.abs(fH[0]-fV[1]);Math.min(u,c)>r.len()&&(u<c?r$.scale(r,l,-u*a):r$.scale(r,l,c*a))}else if(n){var u=Math.abs(fV[0]-fH[1]),c=Math.abs(fH[0]-fV[1]);Math.min(u,c)<n.len()&&(u<c?r$.scale(n,l,u*a):r$.scale(n,l,-c*a))}}return o},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,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},e}();function fU(e,t,n,r,i,a){var o,s,l,u=e.length;if(!(u<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var c=0,d=!1,h=[],p=0,f=0;f<u;f++){var m=e[f],g=m.rect;(o=g[t]-c)<0&&(g[t]-=o,m.label[t]-=o,d=!0);var v=Math.max(-o,0);h.push(v),p+=v,c=g[t]+g[n]}p>0&&a&&w(-p/u,0,u);var y=e[0],x=e[u-1];return _(),s<0&&S(-s,.8),l<0&&S(l,.8),_(),b(s,l,1),b(l,s,-1),_(),s<0&&C(-s),l<0&&C(l),d}function _(){s=y.rect[t]-r,l=i-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,u);var i=r+e;i<0&&S(-i*n,1)}else S(-e*n,1)}}function w(n,r,i){0!==n&&(d=!0);for(var a=r;a<i;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function S(r,i){for(var a=[],o=0,s=1;s<u;s++){var l=e[s-1].rect,c=Math.max(e[s].rect[t]-l[t]-l[n],0);a.push(c),o+=c}if(o){var d=Math.min(Math.abs(r)/o,i);if(r>0)for(var s=0;s<u-1;s++){var h=a[s]*d;w(h,0,s+1)}else for(var s=u-1;s>0;s--){var h=a[s-1]*d;w(-h,s,u)}}}function C(e){for(var t=e<0?-1:1,n=Math.ceil((e=Math.abs(e))/(u-1)),r=0;r<u-1;r++)if(t>0?w(n,0,r+1):w(-n,u-r-1,u),(e-=n)<=0)return}}var fq=["align","verticalAlign","width","height","fontSize"],fX=new aR,f$=of(),fZ=of();function fK(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var fJ=["x","y","rotation"],fQ=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,o=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();r4.applyTransform(u,u,l),l?fX.setLocalTransform(l):(fX.x=fX.y=fX.rotation=fX.originX=fX.originY=0,fX.scaleX=fX.scaleY=1),fX.rotation=su(fX.rotation);var c=r.__hostTarget;if(c){a=c.getBoundingRect().plain();var d=c.getComputedTransform();r4.applyTransform(a,a,d)}var h=a&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:h,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:a,priority:a?a.width*a.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:h&&h.ignore,x:fX.x,y:fX.y,scaleX:fX.scaleX,scaleY:fX.scaleY,rotation:fX.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(n1(r)||nZ(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=oA(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),r=0;r<this._labelList.length;r++){var i=this._labelList[r],a=i.label,o=a.__hostTarget,s=i.defaultAttr,l=void 0;l=(l=n1(i.layoutOption)?i.layoutOption(function(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:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(r&&r.shape.points)}}(i,o)):i.layoutOption)||{},i.computedLayoutOption=l;var u=Math.PI/180;o&&o.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var c=!1;if(null!=l.x?(a.x=a3(l.x,t),a.setStyle("x",0),c=!0):(a.x=s.x,a.setStyle("x",s.style.x)),null!=l.y?(a.y=a3(l.y,n),a.setStyle("y",0),c=!0):(a.y=s.y,a.setStyle("y",s.style.y)),l.labelLinePoints){var d=o.getTextGuideLine();d&&(d.setShape({points:l.labelLinePoints}),c=!1)}f$(a).needsUpdateLabelLine=c,a.rotation=null!=l.rotate?l.rotate*u:s.rotation,a.scaleX=s.scaleX,a.scaleY=s.scaleY;for(var h=0;h<fq.length;h++){var p=fq[h];a.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(a.draggable=!0,a.cursor="move",o){var f=i.seriesModel;null!=i.dataIndex&&(f=i.seriesModel.getData(i.dataType).getItemModel(i.dataIndex)),a.on("drag",function(e,t){return function(){fN(e,t)}}(o,f.getModel("labelLine")))}}else a.off("drag"),a.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new fY(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}(this._labelList),i=n$(r,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=n$(r,function(e){return"shiftY"===e.layoutOption.moveOverlap});fU(i,"x","width",0,t,void 0),fU(a,"y","height",0,n,void 0),function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new r4(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)&&(o&&f.axisAligned||(f.obb||(f.obb=new fY(f.localRect,f.transform)),d||(d=new fY(s,l)),d.intersect(f.obb)))){h=!0;break}}h?(r(u),c&&r(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}(n$(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;nU(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=f$(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=oA(e),i=r.dataIndex;if(n&&null!=i){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style");l&&(s.stroke=l[a.getVisual("drawType")]);var u=o.getModel("labelLine");!function(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,l=0;l<sT.length;l++){var u=sT[l],c=t[u],d="normal"===u;if(c){var h=c.get("show");if((d?s:n6(i.states[u]&&i.states[u].ignore,s))||!n6(h,o)){var p=d?r:r&&r.states[u];p&&(p.ignore=!0),r&&fE(r,!0,u,c);continue}!r&&(r=new dH,e.setTextGuideLine(r),d||!s&&o||fE(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),fE(r,!1,u,c)}}if(r){nV(r.style,n),r.style.fill=null;var f=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=fB}}(e,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<sj.length;r++){var i=sj[r];n[i]=e.getModel([i,t])}return n}(o),s),fN(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!s8(e))){var i=f$(n),a=i.oldLayout,o=oA(e),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(o.dataType);if(a){n.attr(a);var c=e.prevStates;c&&(nW(c,"select")>=0&&n.attr(i.oldLayoutSelect),nW(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),s4(n,l,t,s)}else if(n.attr(l),!ln(n).valueAnimation){var d=n6(n.style.opacity,1);n.style.opacity=0,s5(n,{style:{opacity:d}},t,s)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};fK(h,l,fJ),fK(h,n.states.select,fJ)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};fK(p,l,fJ),fK(p,n.states.emphasis,fJ)}var f=ln(n);if(f.valueAnimation&&f.prevValue!==f.value){var m=f.defaultInterpolatedText,g=n6(f.interpolatedValue,f.prevValue),v=f.value;n.percent=0,(null==f.prevValue?s5:s4)(n,{percent:1},t,s,null,function(e){var r=function(e,t,n,r,i){var a=null==t||"auto"===t;if(null==r)return r;if(n2(r)){var o,s=(r-(o=n||0))*i+o;return a4(s,a?Math.max(a5(n||0),a5(r)):t)}if(n0(r))return i<1?n:r;for(var l=[],u=Math.max(n?n.length:0,r.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)l[c]=(i<1&&n?n:r)[c];else{var h=n&&n[c]?n[c]:0,p=r[c],s=(p-h)*i+h;l[c]=a4(s,a?Math.max(a5(h),a5(p)):t)}}return l}(u,f.precision,g,v,e);f.interpolatedValue=1===e?null:r,function(e,t){for(var n=0;n<sj.length;n++){var r=sj[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)}(n,function(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=n1(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:r},u=0;u<sj.length;u++){var c=sj[u],d=t[c];l[c]=n6(i?i.getFormattedLabel(a,c,null,o,d&&d.get("formatter")):null,r)}return l}({labelDataIndex:s,labelFetcher:t,defaultText:m?m(r):r+""},f.statesModels,r))})}}if(r&&!r.ignore&&!r.invisible){var i=fZ(r),a=i.oldLayout,y={points:r.shape.points};a?(r.attr({shape:a}),s4(r,{shape:y},t)):(r.setShape(y),r.style.strokePercent=0,s5(r,{style:{strokePercent:1}},t)),i.oldLayout=y}},e}(),f1=of();function f0(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var r=f1(t).labelManager;r||(r=f1(t).labelManager=new fQ),r.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var r=f1(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function f2(e,t,n){var r=nj.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}fC(f0);var f3=function(e){function t(t,n,r){var i,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||aj,"string"==typeof t?i=f2(t,n,r):n3(t)&&(t=(i=t).id),a.id=t,a.dom=i;var o=i.style;return o&&(rc(i),i.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=r,a}return n_(t,e),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=f2("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,l=new r4(0,0,0,0);function u(e){if(!(!e.isFinite()||e.isZero()))if(0===a.length){var t=new r4(0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,r=1/0,i=0,u=0;u<a.length;++u){var c=a[u];if(c.intersect(e)){var d=new r4(0,0,0,0);d.copy(c),d.union(e),a[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height-h-p;f<r&&(r=f,i=u)}}if(s&&(a[i].union(e),n=!0),!n){var t=new r4(0,0,0,0);t.copy(e),a.push(t)}s||(s=a.length>=o)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=e[c];if(d){var h=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(1&d.__dirty||!h)?d.getPrevPaintRect():null;p&&u(p);var f=h&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;f&&u(f)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d=t[c],h=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&u(p)}}do{i=!1;for(var c=0;c<a.length;){if(a[c].isZero()){a.splice(c,1);continue}for(var m=c+1;m<a.length;)a[c].intersect(a[m])?(i=!0,a[c].union(a[m]),a.splice(m,1)):m++;c++}}while(i);return this._paintRects=a,a},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,1!==n&&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=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/u,o/u));var d=this.domBack;function h(e,n,r,a){if(i.clearRect(e,n,r,a),t&&"transparent"!==t){var o=void 0;n9(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||hW(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,o=hQ(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(d,e,n,r,a),i.restore())}!n||s?h(0,0,a,o):n.length&&nU(n,function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(rj),f4=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||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=nH({},n||{}),this.dpr=n.devicePixelRatio||aj,this._singleCanvas=i,this.root=e,e.style&&(rc(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e.width,l=e.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,e.width=s*this.dpr,e.height=l*this.dpr,this._width=s,this._height=l;var u=new f3(e,this,this.dpr);u.__builtin__=!0,u.initContext(),o[314159]=u,u.zlevel=314159,a.push(314159),this._domRoot=e}else{this._width=hY(e,0,n),this._height=hY(e,1,n);var c,d,h,p=this._domRoot=(c=this._width,d=this._height,(h=document.createElement("div")).style.cssText=["position:relative","width:"+c+"px","height:"+d+"px","padding:0;margin:0;border-width:0"].join(";")+";",h);e.appendChild(p)}}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=0===i?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,n=e.length,r=this._hoverlayer;if(r&&r.clear(),n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<n;a++){var o=e[a];o.__inHover&&(r||(r=this._hoverlayer=this.getLayer(1e5)),t||(t=r.ctx).save(),h6(t,o,i,a===n-1))}t&&t.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){h9(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=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;I(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(314159).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],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,d=this,h=0;h<i.length;h++)!function(o){var s,l=i[o],h=l.ctx,p=a&&l.createRepaintRects(e,t,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,m=!n&&l.incremental&&Date.now,g=m&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,p);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,a,t,n,s===l.__endIndex-1),m&&Date.now()-g>15)break}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b<p.length;++b){var w=p[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)}(h);return nw.wxa&&nU(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},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))&&(h6(o,e,i,a),e.setPrevPaintRect(s))}else h6(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var n=this._layers[e];return n||((n=new f3("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?nB(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&nB(n,this._layerConfig[e-.01],!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]){if(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)){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 l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(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){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n,r,i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0;for(r=0;r<e.length;r++){var a=e[r],l=a.zlevel,u=void 0;n!==l&&(n=l,s=0),a.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,s=1):u=this.getLayer(l+.01*(s>0),this._needsManuallyCompositing),u.__builtin__||nF("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,t(r),o=u),1&a.__dirty&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}t(r),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,nU(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?nB(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];(i===e||i===e+.01)&&nB(this._layers[i],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(nW(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(null!=e&&(r.width=e),null!=t&&(r.height=t),e=hY(i,0,r),t=hY(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(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).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=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new f3("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,l=o.length;s<l;s++)h6(n,o[s],a,s===l-1);return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),f5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return n_(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new cZ(this),cK(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),cK(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:uL},t}(uC),f8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return n_(t,e),t.type="dataset",t}(dt);fC([function(e){e.registerPainter("canvas",f4)},function(e){e.registerComponentModel(f5),e.registerComponentView(f8)}]),fC(f0),f_({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(e){return{fill:e.get("color")}},visualDrawType:"fill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new pZ(pK(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),fb({type:"wordCloud",render:function(e,t,n){var r=this.group;r.removeAll();var i=e.getData(),a=e.get("gridSize");e.layoutInstance.ondraw=function(t,n,o,s){var l=i.getItemModel(o),u=new lI({style:fm(l.getModel("textStyle")),scaleX:1/s.info.mu,scaleY:1/s.info.mu,x:(s.gx+s.info.gw/2)*a,y:(s.gy+s.info.gh/2)*a,rotation:s.rot});u.setStyle({x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*n,text:t,verticalAlign:"middle",fill:i.getItemVisual(o,"style").fill,fontSize:n}),r.add(u),i.setItemGraphicEl(o,u),u.ensureState("emphasis").style=fm(l.getModel(["emphasis","textStyle"]),{state:"emphasis"}),u.ensureState("blur").style=fm(l.getModel(["blur","textStyle"]),{state:"blur"}),sQ(u,l.get(["emphasis","focus"]),l.get(["emphasis","blurScope"])),u.stateTransition={duration:e.get("animation")?e.get(["stateAnimation","duration"]):0,easing:e.get(["stateAnimation","easing"])},u.__highDownDispatcher=!0},this._model=e},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(n){if("string"==typeof n.data&&n.data.substr(0,t.length)===t){n.stopImmediatePropagation();var r=parseInt(n.data.substr(t.length),36);e[r]&&(e[r](),e[r]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},function(n){var r=e.length;return e.push(n),window.postMessage(t+r.toString(36),"*"),r}}()||function(e){window.setTimeout(e,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)});var f9=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!!t&&!!t.getImageData&&!!t.fillText&&!!Array.prototype.some&&!!Array.prototype.push}(),f6=function(){if(f9){for(var e,t,n=document.createElement("canvas").getContext("2d"),r=20;r;){if(n.font=r.toString(10)+"px sans-serif",n.measureText("W").width===e&&n.measureText("m").width===t)return r+1;e=n.measureText("W").width,t=n.measureText("m").width,r--}return 0}}(),f7=function(e){if(!Array.isArray(e))return[];var t=e.slice();return t.splice(0,2),t},me=function(e){for(var t,n,r=e.length;r;)t=Math.floor(Math.random()*r),n=e[--r],e[r]=e[t],e[t]=n;return e},mt={},mn=function(e,t){if(f9){var n,r,i,a,o,s,l,u,c,d=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(t,n){if("string"==typeof t){if(e[n]=document.getElementById(t),!e[n])throw Error("The element id specified is not found.")}else if(!t.tagName&&!t.appendChild)throw Error("You must pass valid HTML elements, or ID of the element.")});var h={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var p in t)p in h&&(h[p]=t[p]);if("function"!=typeof h.weightFactor){var f=h.weightFactor;h.weightFactor=function(e){return e*f}}if("function"!=typeof h.shape)switch(h.shape){case"circle":default:h.shape="circle";break;case"cardioid":h.shape=function(e){return 1-Math.sin(e)};break;case"diamond":h.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"square":h.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":h.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":h.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":h.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":h.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}h.gridSize=Math.max(Math.floor(h.gridSize),4);var m=h.gridSize,g=m-h.maskGapWidth,v=Math.abs(h.maxRotation-h.minRotation),y=Math.min(h.maxRotation,h.minRotation),x=h.rotationStep;switch(h.color){case"random-dark":l=function(){return N(10,50)};break;case"random-light":l=function(){return N(50,90)};break;default:"function"==typeof h.color&&(l=h.color)}"function"==typeof h.fontWeight&&(u=h.fontWeight);var _=null;"function"==typeof h.classes&&(_=h.classes);var b=!1,w=[],S=function(e){var t,n,r=e.currentTarget,i=r.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,n=e.touches[0].clientY):(t=e.clientX,n=e.clientY);var a=t-i.left,o=n-i.top,s=Math.floor(a*(r.width/i.width||1)/m),l=Math.floor(o*(r.height/i.height||1)/m);return w[s]?w[s][l]:null},C=function(e){var t=S(e);if(c!==t){if(c=t,!t)return void h.hover(void 0,void 0,e);h.hover(t.item,t.dimension,e)}},j=function(e){var t=S(e);t&&(h.click(t.item,t.dimension,e),e.preventDefault())},T=[],k=function(e){if(T[e])return T[e];var t=8*e,n=t,r=[];for(0===e&&r.push([a[0],a[1],0]);n--;){var i=1;"circle"!==h.shape&&(i=h.shape(n/t*2*Math.PI)),r.push([a[0]+e*i*Math.cos(-n/t*2*Math.PI),a[1]+e*i*Math.sin(-n/t*2*Math.PI)*h.ellipticity,n/t*2*Math.PI])}return T[e]=r,r},I=function(){return h.abortThreshold>0&&new Date().getTime()-s>h.abortThreshold},M=function(e,t,n,r){var i,a,o,s,l=h.weightFactor(t);if(l<=h.minSize)return!1;var c=1;l<f6&&(c=function(){for(var e=2;e*l<f6;)e+=2;return e}()),i=u?u(e,t,l,r):h.fontWeight;var d=document.createElement("canvas"),p=d.getContext("2d",{willReadFrequently:!0});p.font=i+" "+(l*c).toString(10)+"px "+h.fontFamily;var f=p.measureText(e).width/c,g=Math.max(l*c,p.measureText("m").width,p.measureText("W").width)/c,v=f+2*g,y=3*g,x=Math.ceil(v/m),_=Math.ceil(y/m),b=-f/2,w=-(.4*g),S=Math.ceil(((v=x*m)*Math.abs(Math.sin(n))+(y=_*m)*Math.abs(Math.cos(n)))/m),C=Math.ceil((v*Math.abs(Math.cos(n))+y*Math.abs(Math.sin(n)))/m),j=C*m,T=S*m;d.setAttribute("width",j),d.setAttribute("height",T),p.scale(1/c,1/c),p.translate(j*c/2,T*c/2),p.rotate(-n),p.font=i+" "+(l*c).toString(10)+"px "+h.fontFamily,p.fillStyle="#000",p.textBaseline="middle",p.fillText(e,b*c,(w+.5*l)*c);var k=p.getImageData(0,0,j,T).data;if(I())return!1;for(var M=[],D=C,O=[S/2,C/2,S/2,C/2];D--;)for(a=S;a--;){s=m;n:for(;s--;)for(o=m;o--;)if(k[((a*m+s)*j+(D*m+o))*4+3]){M.push([D,a]),D<O[3]&&(O[3]=D),D>O[1]&&(O[1]=D),a<O[0]&&(O[0]=a),a>O[2]&&(O[2]=a);break n}}return{mu:c,occupied:M,bounds:O,gw:C,gh:S,fillTextOffsetX:b,fillTextOffsetY:w,fillTextWidth:f,fillTextHeight:g,fontSize:l}},D=function(e,t,a,o,s){for(var l=s.length;l--;){var u=e+s[l][0],c=t+s[l][1];if(u>=r||c>=i||u<0||c<0){if(!h.drawOutOfBound)return!1;continue}if(!n[u][c])return!1}return!0},O=function(t,n,r,i,a,o,s,c,d,p){var f,g,v,y=r.fontSize;f=l?l(i,a,y,o,s,p):h.color,g=u?u(i,a,y,p):h.fontWeight,v=_?_(i,a,y,p):h.classes,e.forEach(function(e){if(e.getContext){var a=e.getContext("2d"),o=r.mu;a.save(),a.scale(1/o,1/o),a.font=g+" "+(y*o).toString(10)+"px "+h.fontFamily,a.fillStyle=f,a.translate((t+r.gw/2)*m*o,(n+r.gh/2)*m*o),0!==c&&a.rotate(-c),a.textBaseline="middle",a.fillText(i,r.fillTextOffsetX*o,(r.fillTextOffsetY+.5*y)*o),a.restore()}else{var s=document.createElement("span"),l="";l="rotate("+-c/Math.PI*180+"deg) ",1!==r.mu&&(l+="translateX(-"+r.fillTextWidth/4+"px) scale("+1/r.mu+")");var u={position:"absolute",display:"block",font:g+" "+y*r.mu+"px "+h.fontFamily,left:(t+r.gw/2)*m+r.fillTextOffsetX+"px",top:(n+r.gh/2)*m+r.fillTextOffsetY+"px",width:r.fillTextWidth+"px",height:r.fillTextHeight+"px",lineHeight:y+"px",whiteSpace:"nowrap",transform:l,webkitTransform:l,msTransform:l,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var p in f&&(u.color=f),s.textContent=i,u)s.style[p]=u[p];if(d)for(var x in d)s.setAttribute(x,d[x]);v&&(s.className+=v),e.appendChild(s)}})},A=function(t,a,o,s,l){t>=r||a>=i||t<0||a<0||(n[t][a]=!1,o&&e[0].getContext("2d").fillRect(t*m,a*m,g,g),b&&(w[t][a]={item:l,dimension:s}))},z=function(t,n,a,o,s,l){var u,c,d=s.occupied,p=h.drawMask;if(p&&((u=e[0].getContext("2d")).save(),u.fillStyle=h.maskColor),b){var f=s.bounds;c={x:(t+f[3])*m,y:(n+f[0])*m,w:(f[1]-f[3]+1)*m,h:(f[2]-f[0]+1)*m}}for(var g=d.length;g--;){var v=t+d[g][0],y=n+d[g][1];v>=r||y>=i||v<0||y<0||A(v,y,p,c,l)}p&&u.restore()},R=function e(t,n){if(n>20)return null;Array.isArray(t)?(a=t[0],s=t[1]):(a=t.word,s=t.weight,l=t.attributes);var a,s,l,u=0===h.rotateRatio||Math.random()>h.rotateRatio?0:0===v?y:y+Math.round(Math.random()*v/x)*x,c=f7(t),d=M(a,s,u,c);if(!d||I())return!1;if(!h.drawOutOfBound&&!h.shrinkToFit){var p=d.bounds;if(p[1]-p[3]+1>r||p[2]-p[0]+1>i)return!1}for(var f=o+1;f--;){var m=k(o-f);h.shuffle&&me(m=[].concat(m));for(var g=0;g<m.length;g++){var _=function(e){var n=Math.floor(e[0]-d.gw/2),r=Math.floor(e[1]-d.gh/2),i=d.gw,h=d.gh;return!!D(n,r,i,h,d.occupied)&&(O(n,r,d,a,s,o-f,e[2],u,l,c),z(n,r,i,h,d,t),{gx:n,gy:r,rot:u,info:d})}(m[g]);if(_)return _}}return h.shrinkToFit?(Array.isArray(t)?t[1]=3*t[1]/4:t.weight=3*t.weight/4,e(t,n+1)):null},P=function(t,n,r){if(n)return!e.some(function(e){var n=new CustomEvent(t,{detail:r||{}});return!e.dispatchEvent(n)},this);e.forEach(function(e){var n=new CustomEvent(t,{detail:r||{}});e.dispatchEvent(n)},this)};!function(){var t,l,u=e[0];if(u.getContext)r=Math.ceil(u.width/m),i=Math.ceil(u.height/m);else{var p=u.getBoundingClientRect();r=Math.ceil(p.width/m),i=Math.ceil(p.height/m)}if(P("wordcloudstart",!0)){if(a=h.origin?[h.origin[0]/m,h.origin[1]/m]:[r/2,i/2],o=Math.floor(Math.sqrt(r*r+i*i)),n=[],!u.getContext||h.clearCanvas)for(e.forEach(function(e){if(e.getContext){var t=e.getContext("2d");t.fillStyle=h.backgroundColor,t.clearRect(0,0,r*(m+1),i*(m+1)),t.fillRect(0,0,r*(m+1),i*(m+1))}else e.textContent="",e.style.backgroundColor=h.backgroundColor,e.style.position="relative"}),f=r;f--;)for(n[f]=[],g=i;g--;)n[f][g]=!0;else{var f,g,v,y,x,_=document.createElement("canvas").getContext("2d");_.fillStyle=h.backgroundColor,_.fillRect(0,0,1,1);var S=_.getImageData(0,0,1,1).data,T=u.getContext("2d").getImageData(0,0,r*m,i*m).data;for(f=r;f--;)for(n[f]=[],g=i;g--;){x=m;n:for(;x--;)for(y=m;y--;)for(v=4;v--;)if(T[((g*m+x)*r*m+(f*m+y))*4+v]!==S[v]){n[f][g]=!1;break n}!1!==n[f][g]&&(n[f][g]=!0)}T=_=S=void 0}if(h.hover||h.click){for(b=!0,f=r+1;f--;)w[f]=[];h.hover&&u.addEventListener("mousemove",C),h.click&&(u.addEventListener("click",j),u.addEventListener("touchstart",j),u.addEventListener("touchend",function(e){e.preventDefault()}),u.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),u.addEventListener("wordcloudstart",function e(){u.removeEventListener("wordcloudstart",e),u.removeEventListener("mousemove",C),u.removeEventListener("click",j),c=void 0})}v=0;var k=!0;h.layoutAnimation?0!==h.wait?(t=window.setTimeout,l=window.clearTimeout):(t=window.setImmediate,l=window.clearImmediate):(t=function(e){e()},l=function(){k=!1});var M=function(t,n){e.forEach(function(e){e.removeEventListener(t,n)},this)},D=function e(){M("wordcloudstart",e),l(mt[d])};!function(t,n){e.forEach(function(e){e.addEventListener(t,n)},this)}("wordcloudstart",D),mt[d]=(h.layoutAnimation?t:setTimeout)(function e(){if(k){if(v>=h.list.length){l(mt[d]),P("wordcloudstop",!1),M("wordcloudstart",D),delete mt[d];return}s=new Date().getTime();var n=R(h.list[v],0),r=!P("wordclouddrawn",!0,{item:h.list[v],drawn:n});if(I()||r){l(mt[d]),h.abort(),P("wordcloudabort",!1),P("wordcloudstop",!1),M("wordcloudstart",D);return}v++,mt[d]=t(e,h.wait)}},h.wait)}}()}function N(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}};if(mn.isSupported=f9,mn.minFontSize=f6,!mn.isSupported)throw Error("Sorry your browser not support wordCloud");pO(function(e,t){e.eachSeriesByType("wordCloud",function(n){var r,i,a,o,s=function(e,t,n){n=rt(n||0);var r=t.width,i=t.height,a=a3(e.left,r),o=a3(e.top,i),s=a3(e.right,r),l=a3(e.bottom,i),u=a3(e.width,r),c=a3(e.height,i),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=r-s-h-a),isNaN(c)&&(c=i-l-d-o),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(a)&&(a=r-s-u-h),isNaN(o)&&(o=i-l-c-d),e.left||e.right){case"center":a=r/2-u/2-n[3];break;case"right":a=r-u-h}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-n[0];break;case"bottom":o=i-c-d}a=a||0,o=o||0,isNaN(u)&&(u=r-h-a-(s||0)),isNaN(c)&&(c=i-d-o-(l||0));var f=new r4(a+n[3],o+n[0],u,c);return f.margin=n,f}(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=n.get("keepAspect"),u=n.get("maskImage"),c=u?u.width/u.height:1;l&&(r=s,i=c,a=r.width,a>(o=r.height)*i?(r.x+=(a-o*i)/2,r.width=o*i):(r.y+=(o-a/i)/2,r.height=a/i));var d=n.getData(),h=document.createElement("canvas");h.width=s.width,h.height=s.height;var p=h.getContext("2d");if(u)try{p.drawImage(u,0,0,h.width,h.height),function(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),r=t.createImageData(n),i=0,a=0,o=0;o<n.data.length;o+=4){var s=n.data[o+3];if(s>128){var l=n.data[o]+n.data[o+1]+n.data[o+2];i+=l,++a}}for(var u=i/a,o=0;o<n.data.length;o+=4){var l=n.data[o]+n.data[o+1]+n.data[o+2],s=n.data[o+3];s<128||l>u?(r.data[o]=0,r.data[o+1]=0,r.data[o+2]=0,r.data[o+3]=0):(r.data[o]=255,r.data[o+1]=255,r.data[o+2]=255,r.data[o+3]=255)}t.putImageData(r,0,0)}(h)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var f=n.get("sizeRange"),m=n.get("rotationRange"),g=d.getDataExtent("value"),v=Math.PI/180,y=n.get("gridSize");function x(e){var t=e.detail.item;e.detail.drawn&&n.layoutInstance.ondraw&&(e.detail.drawn.gx+=s.x/y,e.detail.drawn.gy+=s.y/y,n.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}mn(h,{list:d.mapArray("value",function(e,t){var n,r,i,a,o,s,l,u,c,h=d.getItemModel(t);return[d.getName(t),h.get("textStyle.fontSize",!0)||(n=e,r=g,i=f,a=r[0],o=r[1],s=i[0],l=i[1],u=o-a,c=l-s,0===u?0===c?s:(s+l)/2:n===a?s:n===o?l:(n-a)/u*c+s),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:n.get("textStyle.fontFamily")||n.get("emphasis.textStyle.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.fontWeight")||n.get("emphasis.textStyle.fontWeight")||e.get("textStyle.fontWeight"),gridSize:y,ellipticity:s.height/s.width,minRotation:m[0]*v,maxRotation:m[1]*v,clearCanvas:!u,rotateRatio:1,rotationStep:n.get("rotationStep")*v,drawOutOfBound:n.get("drawOutOfBound"),shrinkToFit:n.get("shrinkToFit"),layoutAnimation:n.get("layoutAnimation"),shuffle:!1,shape:n.get("shape")}),h.addEventListener("wordclouddrawn",x),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){h.removeEventListener("wordclouddrawn",x),h.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),pk(function(e){var t=(e||{}).series;nQ(t)||(t=t?[t]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function r(e){e&&nU(n,function(t){e.hasOwnProperty(t)&&(e["text"+(t?t.charAt(0).toUpperCase()+t.substr(1):t)]=e[t])})}nU(t,function(e){if(e&&"wordCloud"===e.type){var t=e.textStyle||{};r(t.normal),r(t.emphasis)}})}),f_({type:"series.liquidFill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new pZ(pK(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});let mr=(k={type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(e,t){null==t.radiusY&&(t.radiusY=t.radius);for(var n=Math.max(2*Math.ceil(2*t.radius/t.waveLength*4),8);t.phase<-(2*Math.PI);)t.phase+=2*Math.PI;for(;t.phase>0;)t.phase-=2*Math.PI;var r=t.phase/Math.PI/2*t.waveLength,i=t.cx-t.radius+r-2*t.radius;e.moveTo(i,t.waterLevel);for(var a=0,o=0;o<n;++o){var s,l,u,c,d=o%4,h=(s=o*t.waveLength/4,l=d,u=t.waveLength,c=t.amplitude,0===l?[[s+.5*u/Math.PI/2,c/2],[s+.5*u/Math.PI,c],[s+u/4,c]]:1===l?[[s+.5*u/Math.PI/2*(Math.PI-2),c],[s+.5*u/Math.PI/2*(Math.PI-1),c/2],[s+u/4,0]]:2===l?[[s+.5*u/Math.PI/2,-c/2],[s+.5*u/Math.PI,-c],[s+u/4,-c]]:[[s+.5*u/Math.PI/2*(Math.PI-2),-c],[s+.5*u/Math.PI/2*(Math.PI-1),-c/2],[s+u/4,0]]);e.bezierCurveTo(h[0][0]+i,-h[0][1]+t.waterLevel,h[1][0]+i,-h[1][1]+t.waterLevel,h[2][0]+i,-h[2][1]+t.waterLevel),o===n-1&&(a=h[2][0])}t.inverse?(e.lineTo(a+i,t.cy-t.radiusY),e.lineTo(i,t.cy-t.radiusY)):(e.lineTo(a+i,t.cy+t.radiusY),e.lineTo(i,t.cy+t.radiusY)),e.lineTo(i,t.waterLevel),e.closePath()}},s_.extend(k));function mi(e){return e&&0===e.indexOf("path://")}fb({type:"liquidFill",render:function(e,t,n){var r,i,a,o,s,l,u,c,d,h,p,f,m,g,v,y,x,_,b,w,S=this,C=this.group;C.removeAll();var j=e.getData(),T=j.getItemModel(0),k=T.get("center"),I=T.get("radius"),M=n.getWidth(),D=n.getHeight(),O=Math.min(M,D),A=0,z=0,R=e.get("outline.show");R&&(A=e.get("outline.borderDistance"),z=a3(e.get("outline.itemStyle.borderWidth"),O));var P=a3(k[0],M),N=a3(k[1],D),L=!1,F=e.get("shape");"container"===F?(L=!0,b=[(_=[M/2,D/2])[0]-z/2,_[1]-z/2],w=[a3(A,M),a3(A,D)],I=[Math.max(b[0]-w[0],0),Math.max(b[1]-w[1],0)]):I=Math.max((b=(_=a3(I,O)/2)-z/2)-(w=a3(A,O)),0),R&&(Y().style.lineWidth=z,C.add(Y()));var E=L?0:P-I,B=L?0:N-I,H=null;C.add(((r=G(I)).setStyle(e.getModel("backgroundStyle").getItemStyle()),r.style.fill=null,r.z2=5,(i=G(I)).setStyle(e.getModel("backgroundStyle").getItemStyle()),i.style.stroke=null,(a=new aJ).add(r),a.add(i),a));var V=this._data,W=[];function G(e,t){if(F)if(mi(F)){var n=dJ(F.slice(7),{}),r=n.getBoundingRect(),i=r.width,a=r.height;i>a?(a=2*e/i*a,i=2*e):(i=2*e/a*i,a=2*e);var o=t?0:P-i/2,s=t?0:N-a/2;return n=dJ(F.slice(7),{},new r4(o,s,i,a)),t&&(n.x=-i/2,n.y=-a/2),n}else if(L){var l=t?-e[0]:P-e[0],u=t?-e[1]:N-e[1];return hH("rect",l,u,2*e[0],2*e[1])}else{var l=t?-e:P-e,u=t?-e:N-e;return"pin"===F?u+=e:"arrow"===F&&(u-=e),hH(F,l,u,2*e,2*e)}return new dx({shape:{cx:t?0:P,cy:t?0:N,r:e}})}function Y(){var t=G(_);return t.style.fill=null,t.setStyle(e.getModel("outline.itemStyle").getItemStyle()),t}function U(t,n,r){var i=L?I[0]:I,a=L?D/2:I,o=j.getItemModel(t),s=o.getModel("itemStyle"),l=o.get("phase"),u=a3(o.get("amplitude"),2*a),c=a3(o.get("waveLength"),2*i),d=a-j.get("value",t)*a*2;l=r?r.shape.phase:"auto"===l?t*Math.PI/4:l;var h=s.getItemStyle();if(!h.fill){var p=e.get("color"),f=t%p.length;h.fill=p[f]}var m=new mr({shape:{waveLength:c,radius:i,radiusY:a,cx:2*i,cy:0,waterLevel:d,amplitude:u,phase:l,inverse:n},style:h,x:P,y:N});m.shape._waterLevel=d;var g=o.getModel("emphasis.itemStyle").getItemStyle();g.lineWidth=0,m.ensureState("emphasis").style=g,sQ(m);var v=G(I,!0);return v.setStyle({fill:"white"}),m.setClipPath(v),m}function q(e,t,n){var r,i=j.getItemModel(e),a=i.get("period"),o=i.get("direction"),s=j.get("value",e),l=i.get("phase");l=n?n.shape.phase:"auto"===l?e*Math.PI/4:l;var u=0;u="auto"===a?0===(r=j.count())?5e3:5e3*(.2+(r-e)/r*.8):"function"==typeof a?a(s,e):a;var c=0;"right"===o||null==o?c=Math.PI:"left"===o?c=-Math.PI:"none"===o?c=0:console.error("Illegal direction value for liquid fill."),"none"!==o&&i.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:l}).when(u/2,{phase:c+l}).when(u,{phase:2*c+l}).during(function(){H&&H.dirty(!0)}).start()}j.diff(V).add(function(t){var n=U(t,!1),r=n.shape.waterLevel;n.shape.waterLevel=L?D/2:I,s5(n,{shape:{waterLevel:r}},e),n.z2=2,q(t,n,null),C.add(n),j.setItemGraphicEl(t,n),W.push(n)}).update(function(t,n){for(var r=V.getItemGraphicEl(n),i=U(t,!1,r),a={},o=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],s=0;s<o.length;++s){var l=o[s];i.shape.hasOwnProperty(l)&&(a[l]=i.shape[l])}for(var u={},c=["fill","opacity","shadowBlur","shadowColor"],s=0;s<c.length;++s){var l=c[s];i.style.hasOwnProperty(l)&&(u[l]=i.style[l])}L&&(a.radiusY=D/2),s4(r,{shape:a,x:i.x,y:i.y},e),e.isUniversalTransitionEnabled&&e.isUniversalTransitionEnabled()?s4(r,{style:u},e):r.useStyle(u);var d=r.getClipPath(),h=i.getClipPath();r.setClipPath(i.getClipPath()),r.shape.inverse=i.inverse,d&&h&&S._shape===F&&!mi(F)&&s4(h,{shape:d.shape},e,{isFrom:!0}),q(t,r,r),C.add(r),j.setItemGraphicEl(t,r),W.push(r)}).remove(function(e){var t=V.getItemGraphicEl(e);C.remove(t)}).execute(),T.get("label.show")&&C.add((o=W,c=T.getModel("label"),d={z2:10,shape:{x:E,y:B,width:(L?I[0]:I)*2,height:(L?I[1]:I)*2},style:{fill:"transparent"},textConfig:{position:c.get("position")||"inside"},silent:!0},Object.assign((h={style:{text:(s=e.getFormattedLabel(0,"normal"),l=100*j.get("value",0),u=j.getName(0)||e.name,isNaN(l)||(u=l.toFixed(0)+"%"),null==s?u:s),textAlign:c.get("align"),textVerticalAlign:c.get("baseline")}}).style,fm(c)),p=new lj(d),(f=new lj(d)).disableLabelAnimation=!0,p.disableLabelAnimation=!0,m=new lI(h),g=new lI(h),p.setTextContent(m),f.setTextContent(g),v=c.get("insideColor"),g.style.fill=v,(y=new aJ).add(p),y.add(f),x=G(I,!0),(H=new fy({shape:{paths:o},x:P,y:N})).setClipPath(x),f.setClipPath(H),y)),this._shape=F,this._data=j},dispose:function(){}});var ma=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"65","size":"550","name":"新疆维吾尔自治区","cp":[84.9023,42.148],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[96.416,42.7588],[96.416,42.7148],[95.9766,42.4951],[96.0645,42.3193],[96.2402,42.2314],[95.9766,41.9238],[95.2734,41.6162],[95.1855,41.792],[94.5703,41.4844],[94.043,41.0889],[93.8672,40.6934],[93.0762,40.6494],[92.6367,39.6387],[92.373,39.3311],[92.373,39.1113],[92.373,39.0234],[90.1758,38.4961],[90.3516,38.2324],[90.6152,38.3203],[90.5273,37.8369],[91.0547,37.4414],[91.3184,37.0898],[90.7031,36.7822],[90.791,36.6064],[91.0547,36.5186],[91.0547,36.0791],[90.8789,36.0352],[90,36.2549],[89.9121,36.0791],[89.7363,36.0791],[89.209,36.2988],[88.7695,36.3428],[88.5938,36.4746],[87.3633,36.4307],[86.2207,36.167],[86.1328,35.8594],[85.6055,35.6836],[85.0781,35.7275],[84.1992,35.376],[83.1445,35.4199],[82.8809,35.6836],[82.4414,35.7275],[82.002,35.332],[81.6504,35.2441],[80.4199,35.4199],[80.2441,35.2881],[80.332,35.1563],[80.2441,35.2002],[79.8926,34.8047],[79.8047,34.4971],[79.1016,34.4531],[79.0137,34.3213],[78.2227,34.7168],[78.0469,35.2441],[78.0469,35.5078],[77.4316,35.4639],[76.8164,35.6396],[76.5527,35.8594],[76.2012,35.8154],[75.9375,36.0352],[76.0254,36.4746],[75.8496,36.6943],[75.498,36.7383],[75.4102,36.958],[75.0586,37.002],[74.8828,36.9141],[74.7949,37.0459],[74.5313,37.0898],[74.5313,37.2217],[74.8828,37.2217],[75.1465,37.4414],[74.8828,37.5732],[74.9707,37.749],[74.8828,38.4521],[74.3555,38.6719],[74.1797,38.6719],[74.0918,38.54],[73.8281,38.584],[73.7402,38.8477],[73.8281,38.9795],[73.4766,39.375],[73.916,39.5068],[73.916,39.6826],[73.8281,39.7705],[74.0039,40.0342],[74.8828,40.3418],[74.7949,40.5176],[75.2344,40.4297],[75.5859,40.6494],[75.7617,40.2979],[76.377,40.3857],[76.9043,41.001],[77.6074,41.001],[78.1348,41.2207],[78.1348,41.3965],[80.1563,42.0557],[80.2441,42.2754],[80.1563,42.627],[80.2441,42.8467],[80.5078,42.8906],[80.4199,43.0664],[80.7715,43.1982],[80.4199,44.165],[80.4199,44.6045],[79.9805,44.8242],[79.9805,44.9561],[81.7383,45.3955],[82.0898,45.2197],[82.5293,45.2197],[82.2656,45.6592],[83.0566,47.2412],[83.6719,47.0215],[84.7266,47.0215],[84.9023,46.8896],[85.5176,47.0654],[85.6934,47.2852],[85.5176,48.1201],[85.7813,48.4277],[86.5723,48.5596],[86.8359,48.8232],[86.748,48.9551],[86.8359,49.1309],[87.8027,49.1748],[87.8906,48.999],[87.7148,48.9111],[88.0664,48.7354],[87.9785,48.6035],[88.5059,48.3838],[88.6816,48.1641],[89.1211,47.9883],[89.5605,48.0322],[89.7363,47.8564],[90.0879,47.8564],[90.3516,47.6807],[90.5273,47.2412],[90.8789,46.9775],[91.0547,46.582],[90.8789,46.3184],[91.0547,46.0107],[90.7031,45.7471],[90.7031,45.5273],[90.8789,45.2197],[91.582,45.0879],[93.5156,44.9561],[94.7461,44.3408],[95.3613,44.2969],[95.3613,44.0332],[95.5371,43.9014],[95.8887,43.2422],[96.3281,42.9346],[96.416,42.7588]]]}},{"type":"Feature","properties":{"id":"54","size":"550","name":"西藏自治区","cp":[87.8695,31.6846],"childNum":7},"geometry":{"type":"Polygon","coordinates":[[[79.0137,34.3213],[79.1016,34.4531],[79.8047,34.4971],[79.8926,34.8047],[80.2441,35.2002],[80.332,35.1563],[80.2441,35.2881],[80.4199,35.4199],[81.6504,35.2441],[82.002,35.332],[82.4414,35.7275],[82.8809,35.6836],[83.1445,35.4199],[84.1992,35.376],[85.0781,35.7275],[85.6055,35.6836],[86.1328,35.8594],[86.2207,36.167],[87.3633,36.4307],[88.5938,36.4746],[88.7695,36.3428],[89.209,36.2988],[89.7363,36.0791],[89.3848,36.0352],[89.4727,35.9033],[89.7363,35.7715],[89.7363,35.4199],[89.4727,35.376],[89.4727,35.2441],[89.5605,34.8926],[89.8242,34.8486],[89.7363,34.6729],[89.8242,34.3652],[89.6484,34.0137],[90.0879,33.4863],[90.7031,33.1348],[91.4063,33.1348],[91.9336,32.8271],[92.1973,32.8271],[92.2852,32.7393],[92.9883,32.7393],[93.5156,32.4756],[93.7793,32.5635],[94.1309,32.4316],[94.6582,32.6074],[95.1855,32.4316],[95.0098,32.2998],[95.1855,32.3438],[95.2734,32.2119],[95.3613,32.168],[95.3613,31.9922],[95.4492,31.8164],[95.8008,31.6846],[95.9766,31.8164],[96.1523,31.5967],[96.2402,31.9482],[96.5039,31.7285],[96.8555,31.6846],[96.7676,31.9922],[97.2949,32.0801],[97.3828,32.5635],[97.7344,32.5195],[98.1738,32.3438],[98.4375,31.8604],[98.877,31.4209],[98.6133,31.2012],[98.9648,30.7617],[99.1406,29.2676],[98.9648,29.1357],[98.9648,28.8281],[98.7891,28.8721],[98.7891,29.0039],[98.7012,28.916],[98.6133,28.5205],[98.7891,28.3447],[98.7012,28.2129],[98.3496,28.125],[98.2617,28.3887],[98.1738,28.125],[97.5586,28.5205],[97.2949,28.0811],[97.3828,27.9053],[97.0313,27.7295],[96.5039,28.125],[95.7129,28.2568],[95.3613,28.125],[95.2734,27.9492],[94.2188,27.5537],[93.8672,27.0264],[93.6035,26.9385],[92.1094,26.8506],[92.0215,27.4658],[91.582,27.5537],[91.582,27.9053],[91.4063,28.0371],[91.0547,27.8613],[90.7031,28.0811],[89.8242,28.2129],[89.6484,28.1689],[89.1211,27.5977],[89.1211,27.334],[89.0332,27.2021],[88.7695,27.4219],[88.8574,27.9932],[88.6816,28.125],[88.1543,27.9053],[87.8906,27.9492],[87.7148,27.8174],[87.0996,27.8174],[86.748,28.125],[86.5723,28.125],[86.4844,27.9053],[86.1328,28.125],[86.0449,27.9053],[85.6934,28.3447],[85.6055,28.2568],[85.166,28.3447],[85.166,28.6523],[84.9023,28.5645],[84.4629,28.7402],[84.2871,28.8721],[84.1992,29.2236],[84.1113,29.2676],[83.584,29.1797],[83.2324,29.5752],[82.1777,30.0586],[82.0898,30.3223],[81.3867,30.3662],[81.2109,30.0146],[81.0352,30.2344],[80.0684,30.5859],[79.7168,30.9375],[79.0137,31.0693],[78.75,31.333],[78.8379,31.5967],[78.6621,31.8164],[78.75,31.9043],[78.4863,32.124],[78.3984,32.5195],[78.75,32.6953],[78.9258,32.3438],[79.2773,32.5635],[79.1016,33.1787],[78.6621,33.6621],[78.6621,34.1016],[78.9258,34.1455],[79.0137,34.3213]]]}},{"type":"Feature","properties":{"id":"15","size":"450","name":"内蒙古自治区","cp":[112.5977,46.3408],"childNum":12},"geometry":{"type":"Polygon","coordinates":[[[97.207,42.8027],[99.4922,42.583],[100.8105,42.6709],[101.7773,42.4951],[102.041,42.2314],[102.7441,42.1436],[103.3594,41.8799],[103.8867,41.792],[104.502,41.8799],[104.502,41.6602],[105.0293,41.5723],[105.7324,41.9238],[107.4023,42.4512],[109.4238,42.4512],[110.3906,42.7588],[111.0059,43.3301],[111.9727,43.6816],[111.9727,43.8135],[111.4453,44.3848],[111.7969,45],[111.9727,45.0879],[113.6426,44.7363],[114.1699,44.9561],[114.5215,45.3955],[115.6641,45.4395],[116.1914,45.7031],[116.2793,45.9668],[116.543,46.2744],[117.334,46.3623],[117.4219,46.582],[117.7734,46.5381],[118.3008,46.7578],[118.7402,46.7139],[118.916,46.7578],[119.0918,46.6699],[119.707,46.626],[119.9707,46.7139],[119.707,47.1973],[118.4766,47.9883],[117.8613,48.0322],[117.334,47.6807],[116.8066,47.9004],[116.1914,47.8564],[115.9277,47.6807],[115.5762,47.9004],[115.4883,48.1641],[115.8398,48.252],[115.8398,48.5596],[116.7188,49.834],[117.7734,49.5264],[118.5645,49.9219],[119.2676,50.0977],[119.3555,50.3174],[119.1797,50.3613],[119.5313,50.7568],[119.5313,50.8887],[119.707,51.0645],[120.1465,51.6797],[120.6738,51.9434],[120.7617,52.1191],[120.7617,52.251],[120.5859,52.3389],[120.6738,52.5146],[120.4102,52.6465],[120.0586,52.6025],[120.0586,52.7344],[120.8496,53.2617],[121.4648,53.3496],[121.8164,53.042],[121.2012,52.5586],[121.6406,52.4268],[121.7285,52.2949],[121.9922,52.2949],[122.168,52.5146],[122.6953,52.251],[122.6074,52.0752],[122.959,51.3281],[123.3105,51.2402],[123.6621,51.3721],[124.3652,51.2842],[124.541,51.3721],[124.8926,51.3721],[125.0684,51.6357],[125.332,51.6357],[126.0352,51.0205],[125.7715,50.7568],[125.7715,50.5371],[125.332,50.1416],[125.1563,49.834],[125.2441,49.1748],[124.8047,49.1309],[124.4531,48.1201],[124.2773,48.5156],[122.4316,47.373],[123.0469,46.7139],[123.3984,46.8896],[123.3984,46.9775],[123.4863,46.9775],[123.5742,46.8457],[123.5742,46.8896],[123.5742,46.6699],[123.0469,46.582],[123.2227,46.2305],[122.7832,46.0107],[122.6953,45.7031],[122.4316,45.8789],[122.2559,45.791],[121.8164,46.0107],[121.7285,45.7471],[121.9043,45.7031],[122.2559,45.2637],[122.0801,44.8682],[122.3438,44.2529],[123.1348,44.4727],[123.4863,43.7256],[123.3105,43.5059],[123.6621,43.374],[123.5742,43.0225],[123.3105,42.9785],[123.1348,42.8027],[122.7832,42.7148],[122.3438,42.8467],[122.3438,42.6709],[121.9922,42.7148],[121.7285,42.4512],[121.4648,42.4951],[120.498,42.0996],[120.1465,41.7041],[119.8828,42.1875],[119.5313,42.3633],[119.3555,42.2754],[119.2676,41.7041],[119.4434,41.6162],[119.2676,41.3086],[118.3887,41.3086],[118.125,41.748],[118.3008,41.792],[118.3008,42.0996],[118.125,42.0557],[117.9492,42.2314],[118.0371,42.4072],[117.7734,42.627],[117.5098,42.583],[117.334,42.4512],[116.8945,42.4072],[116.8066,42.0117],[116.2793,42.0117],[116.0156,41.792],[115.9277,41.9238],[115.2246,41.5723],[114.9609,41.6162],[114.873,42.0996],[114.5215,42.1436],[114.1699,41.792],[114.2578,41.5723],[113.9063,41.4404],[113.9941,41.2207],[113.9063,41.1328],[114.082,40.7373],[114.082,40.5176],[113.8184,40.5176],[113.5547,40.3418],[113.2031,40.3857],[112.7637,40.166],[112.3242,40.2539],[111.9727,39.5947],[111.4453,39.6387],[111.3574,39.4189],[111.0938,39.375],[111.0938,39.5947],[110.6543,39.2871],[110.127,39.4629],[110.2148,39.2871],[109.8633,39.2432],[109.9512,39.1553],[108.9844,38.3203],[109.0723,38.0127],[108.8965,37.9688],[108.8086,38.0127],[108.7207,37.7051],[108.1934,37.6172],[107.666,37.8809],[107.3145,38.1006],[106.7871,38.1885],[106.5234,38.3203],[106.9629,38.9795],[106.7871,39.375],[106.3477,39.2871],[105.9082,38.7158],[105.8203,37.793],[104.3262,37.4414],[103.4473,37.8369],[103.3594,38.0127],[103.5352,38.1445],[103.4473,38.3643],[104.2383,38.9795],[104.0625,39.4189],[103.3594,39.3311],[103.0078,39.1113],[102.4805,39.2432],[101.8652,39.1113],[102.041,38.8916],[101.7773,38.6719],[101.3379,38.7598],[101.25,39.0234],[100.9863,38.9355],[100.8105,39.4189],[100.5469,39.4189],[100.0195,39.7705],[99.4922,39.8584],[100.1074,40.2539],[100.1953,40.6494],[99.9316,41.001],[99.2285,40.8691],[99.0527,40.6934],[98.9648,40.7813],[98.7891,40.6055],[98.5254,40.7373],[98.6133,40.6494],[98.3496,40.5615],[98.3496,40.9131],[97.4707,41.4844],[97.8223,41.6162],[97.8223,41.748],[97.207,42.8027]]]}},{"type":"Feature","properties":{"id":"63","size":"800","name":"青海省","cp":[95.2402,35.4199],"childNum":8},"geometry":{"type":"Polygon","coordinates":[[[89.7363,36.0791],[89.9121,36.0791],[90,36.2549],[90.8789,36.0352],[91.0547,36.0791],[91.0547,36.5186],[90.791,36.6064],[90.7031,36.7822],[91.3184,37.0898],[91.0547,37.4414],[90.5273,37.8369],[90.6152,38.3203],[90.3516,38.2324],[90.1758,38.4961],[92.373,39.0234],[92.373,39.1113],[93.1641,39.1992],[93.1641,38.9795],[93.6914,38.9355],[93.8672,38.7158],[94.3066,38.7598],[94.5703,38.3643],[95.0098,38.4082],[95.4492,38.2764],[95.7129,38.3643],[96.2402,38.1006],[96.416,38.2324],[96.6797,38.1885],[96.6797,38.4521],[97.1191,38.584],[97.0313,39.1992],[98.1738,38.8037],[98.3496,39.0234],[98.6133,38.9355],[98.7891,39.0674],[99.1406,38.9355],[99.8438,38.3643],[100.1953,38.2764],[100.0195,38.4521],[100.1074,38.4961],[100.459,38.2764],[100.7227,38.2324],[101.1621,37.8369],[101.5137,37.8809],[101.7773,37.6172],[101.9531,37.7051],[102.1289,37.4414],[102.5684,37.1777],[102.4805,36.958],[102.6563,36.8262],[102.5684,36.7383],[102.832,36.3428],[103.0078,36.2549],[102.9199,36.0791],[102.9199,35.9033],[102.6563,35.7715],[102.832,35.5957],[102.4805,35.5957],[102.3047,35.4199],[102.3926,35.2002],[101.9531,34.8486],[101.9531,34.6289],[102.2168,34.4092],[102.1289,34.2773],[101.6895,34.1016],[100.9863,34.3652],[100.8105,34.2773],[101.25,33.6621],[101.5137,33.7061],[101.6016,33.5303],[101.7773,33.5303],[101.6895,33.3105],[101.7773,33.2227],[101.6016,33.1348],[101.1621,33.2227],[101.25,32.6953],[100.7227,32.6514],[100.7227,32.5195],[100.3711,32.7393],[100.1074,32.6514],[100.1074,32.8711],[99.8438,33.0029],[99.7559,32.7393],[99.2285,32.915],[99.2285,33.0469],[98.877,33.1787],[98.4375,34.0576],[97.8223,34.1895],[97.6465,34.1016],[97.7344,33.9258],[97.3828,33.8818],[97.4707,33.5742],[97.7344,33.3984],[97.3828,32.8711],[97.4707,32.6953],[97.7344,32.5195],[97.3828,32.5635],[97.2949,32.0801],[96.7676,31.9922],[96.8555,31.6846],[96.5039,31.7285],[96.2402,31.9482],[96.1523,31.5967],[95.9766,31.8164],[95.8008,31.6846],[95.4492,31.8164],[95.3613,31.9922],[95.3613,32.168],[95.2734,32.2119],[95.1855,32.3438],[95.0098,32.2998],[95.1855,32.4316],[94.6582,32.6074],[94.1309,32.4316],[93.7793,32.5635],[93.5156,32.4756],[92.9883,32.7393],[92.2852,32.7393],[92.1973,32.8271],[91.9336,32.8271],[91.4063,33.1348],[90.7031,33.1348],[90.0879,33.4863],[89.6484,34.0137],[89.8242,34.3652],[89.7363,34.6729],[89.8242,34.8486],[89.5605,34.8926],[89.4727,35.2441],[89.4727,35.376],[89.7363,35.4199],[89.7363,35.7715],[89.4727,35.9033],[89.3848,36.0352],[89.7363,36.0791]]]}},{"type":"Feature","properties":{"id":"51","size":"900","name":"四川省","cp":[101.9199,30.1904],"childNum":21},"geometry":{"type":"Polygon","coordinates":[[[101.7773,33.5303],[101.8652,33.5742],[101.9531,33.4424],[101.8652,33.0908],[102.4805,33.4424],[102.2168,33.9258],[102.9199,34.3213],[103.0957,34.1895],[103.1836,33.7939],[104.1504,33.6182],[104.2383,33.3984],[104.4141,33.3105],[104.3262,33.2227],[104.4141,33.0469],[104.3262,32.8711],[104.4141,32.7393],[105.2051,32.6074],[105.3809,32.7393],[105.3809,32.8711],[105.4688,32.915],[105.5566,32.7393],[106.084,32.8711],[106.084,32.7393],[106.3477,32.6514],[107.0508,32.6953],[107.1387,32.4756],[107.2266,32.4316],[107.4023,32.5195],[108.0176,32.168],[108.2813,32.2559],[108.5449,32.2119],[108.3691,32.168],[108.2813,31.9043],[108.5449,31.6846],[108.1934,31.5088],[107.9297,30.8496],[107.4902,30.8496],[107.4023,30.7617],[107.4902,30.6299],[107.0508,30.0146],[106.7871,30.0146],[106.6113,30.3223],[106.2598,30.1904],[105.8203,30.4541],[105.6445,30.2783],[105.5566,30.1025],[105.7324,29.8828],[105.293,29.5313],[105.4688,29.3115],[105.7324,29.2676],[105.8203,28.96],[106.2598,28.8721],[106.3477,28.5205],[105.9961,28.7402],[105.6445,28.4326],[105.9082,28.125],[106.1719,28.125],[106.3477,27.8174],[105.6445,27.6416],[105.5566,27.7734],[105.293,27.7295],[105.2051,27.9932],[105.0293,28.0811],[104.8535,27.9053],[104.4141,27.9492],[104.3262,28.0371],[104.4141,28.125],[104.4141,28.2568],[104.2383,28.4326],[104.4141,28.6084],[103.8867,28.6523],[103.7988,28.3008],[103.4473,28.125],[103.4473,27.7734],[102.9199,27.29],[103.0078,26.3672],[102.6563,26.1914],[102.5684,26.3672],[102.1289,26.1035],[101.8652,26.0596],[101.6016,26.2354],[101.6895,26.3672],[101.4258,26.5869],[101.4258,26.8066],[101.4258,26.7188],[101.1621,27.0264],[101.1621,27.1582],[100.7227,27.8613],[100.3711,27.8174],[100.2832,27.7295],[100.0195,28.125],[100.1953,28.3447],[99.668,28.8281],[99.4043,28.5205],[99.4043,28.1689],[99.2285,28.3008],[99.1406,29.2676],[98.9648,30.7617],[98.6133,31.2012],[98.877,31.4209],[98.4375,31.8604],[98.1738,32.3438],[97.7344,32.5195],[97.4707,32.6953],[97.3828,32.8711],[97.7344,33.3984],[97.4707,33.5742],[97.3828,33.8818],[97.7344,33.9258],[97.6465,34.1016],[97.8223,34.1895],[98.4375,34.0576],[98.877,33.1787],[99.2285,33.0469],[99.2285,32.915],[99.7559,32.7393],[99.8438,33.0029],[100.1074,32.8711],[100.1074,32.6514],[100.3711,32.7393],[100.7227,32.5195],[100.7227,32.6514],[101.25,32.6953],[101.1621,33.2227],[101.6016,33.1348],[101.7773,33.2227],[101.6895,33.3105],[101.7773,33.5303]]]}},{"type":"Feature","properties":{"id":"23","size":"700","name":"黑龙江省","cp":[126.1445,48.7156],"childNum":13},"geometry":{"type":"Polygon","coordinates":[[[121.4648,53.3496],[123.6621,53.5693],[124.8926,53.0859],[125.0684,53.2178],[125.5957,53.0859],[125.6836,52.9102],[126.123,52.7783],[126.0352,52.6025],[126.2109,52.5146],[126.3867,52.2949],[126.3867,52.207],[126.5625,52.1631],[126.4746,51.9434],[126.9141,51.3721],[126.8262,51.2842],[127.002,51.3281],[126.9141,51.1084],[127.2656,50.7568],[127.3535,50.2734],[127.6172,50.2295],[127.5293,49.8779],[127.793,49.6143],[128.7598,49.5703],[129.1113,49.3506],[129.4629,49.4385],[130.2539,48.8672],[130.6934,48.8672],[130.5176,48.6475],[130.8691,48.2959],[130.6934,48.1201],[131.0449,47.6807],[132.5391,47.7246],[132.627,47.9443],[133.0664,48.1201],[133.5059,48.1201],[134.209,48.3838],[135.0879,48.4277],[134.7363,48.252],[134.5605,47.9883],[134.7363,47.6807],[134.5605,47.4609],[134.3848,47.4609],[134.209,47.2852],[134.209,47.1533],[133.8574,46.5381],[133.9453,46.2744],[133.5059,45.835],[133.418,45.5713],[133.2422,45.5273],[133.0664,45.1318],[132.8906,45.0439],[131.9238,45.3516],[131.5723,45.0439],[131.0449,44.8682],[131.3086,44.0771],[131.2207,43.7256],[131.3086,43.4619],[130.8691,43.418],[130.5176,43.6377],[130.3418,43.9893],[129.9902,43.8574],[129.9023,44.0332],[129.8145,43.9014],[129.2871,43.8135],[129.1992,43.5938],[128.8477,43.5498],[128.4961,44.165],[128.4082,44.4727],[128.0566,44.3408],[128.0566,44.1211],[127.7051,44.1211],[127.5293,44.6045],[127.0898,44.6045],[127.002,44.7803],[127.0898,45],[126.9141,45.1318],[126.5625,45.2637],[126.0352,45.1758],[125.7715,45.3076],[125.6836,45.5273],[125.0684,45.3955],[124.8926,45.5273],[124.3652,45.4395],[124.0137,45.7471],[123.9258,46.2305],[123.2227,46.2305],[123.0469,46.582],[123.5742,46.6699],[123.5742,46.8896],[123.5742,46.8457],[123.4863,46.9775],[123.3984,46.9775],[123.3984,46.8896],[123.0469,46.7139],[122.4316,47.373],[124.2773,48.5156],[124.4531,48.1201],[124.8047,49.1309],[125.2441,49.1748],[125.1563,49.834],[125.332,50.1416],[125.7715,50.5371],[125.7715,50.7568],[126.0352,51.0205],[125.332,51.6357],[125.0684,51.6357],[124.8926,51.3721],[124.541,51.3721],[124.3652,51.2842],[123.6621,51.3721],[123.3105,51.2402],[122.959,51.3281],[122.6074,52.0752],[122.6953,52.251],[122.168,52.5146],[121.9922,52.2949],[121.7285,52.2949],[121.6406,52.4268],[121.2012,52.5586],[121.8164,53.042],[121.4648,53.3496]]]}},{"type":"Feature","properties":{"id":"62","size":"690","name":"甘肃省","cp":[99.7129,38.166],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[96.416,42.7148],[97.207,42.8027],[97.8223,41.748],[97.8223,41.6162],[97.4707,41.4844],[98.3496,40.9131],[98.3496,40.5615],[98.6133,40.6494],[98.5254,40.7373],[98.7891,40.6055],[98.9648,40.7813],[99.0527,40.6934],[99.2285,40.8691],[99.9316,41.001],[100.1953,40.6494],[100.1074,40.2539],[99.4922,39.8584],[100.0195,39.7705],[100.5469,39.4189],[100.8105,39.4189],[100.9863,38.9355],[101.25,39.0234],[101.3379,38.7598],[101.7773,38.6719],[102.041,38.8916],[101.8652,39.1113],[102.4805,39.2432],[103.0078,39.1113],[103.3594,39.3311],[104.0625,39.4189],[104.2383,38.9795],[103.4473,38.3643],[103.5352,38.1445],[103.3594,38.0127],[103.4473,37.8369],[104.3262,37.4414],[104.5898,37.4414],[104.5898,37.2217],[104.8535,37.2217],[105.293,36.8262],[105.2051,36.6943],[105.4688,36.123],[105.293,35.9912],[105.3809,35.7715],[105.7324,35.7275],[105.8203,35.5518],[105.9961,35.4639],[105.9082,35.4199],[105.9961,35.4199],[106.084,35.376],[106.2598,35.4199],[106.3477,35.2441],[106.5234,35.332],[106.4355,35.6836],[106.6992,35.6836],[106.9629,35.8154],[106.875,36.123],[106.5234,36.2549],[106.5234,36.4746],[106.4355,36.5625],[106.6113,36.7822],[106.6113,37.0898],[107.3145,37.0898],[107.3145,36.9141],[108.7207,36.3428],[108.6328,35.9912],[108.5449,35.8594],[108.6328,35.5518],[108.5449,35.2881],[107.7539,35.2881],[107.7539,35.1123],[107.8418,35.0244],[107.666,34.9365],[107.2266,34.8926],[106.9629,35.0684],[106.6113,35.0684],[106.5234,34.7607],[106.3477,34.585],[106.6992,34.3213],[106.5234,34.2773],[106.6113,34.1455],[106.4355,33.9258],[106.5234,33.5303],[105.9961,33.6182],[105.7324,33.3984],[105.9961,33.1787],[105.9082,33.0029],[105.4688,32.915],[105.3809,32.8711],[105.3809,32.7393],[105.2051,32.6074],[104.4141,32.7393],[104.3262,32.8711],[104.4141,33.0469],[104.3262,33.2227],[104.4141,33.3105],[104.2383,33.3984],[104.1504,33.6182],[103.1836,33.7939],[103.0957,34.1895],[102.9199,34.3213],[102.2168,33.9258],[102.4805,33.4424],[101.8652,33.0908],[101.9531,33.4424],[101.8652,33.5742],[101.7773,33.5303],[101.6016,33.5303],[101.5137,33.7061],[101.25,33.6621],[100.8105,34.2773],[100.9863,34.3652],[101.6895,34.1016],[102.1289,34.2773],[102.2168,34.4092],[101.9531,34.6289],[101.9531,34.8486],[102.3926,35.2002],[102.3047,35.4199],[102.4805,35.5957],[102.832,35.5957],[102.6563,35.7715],[102.9199,35.9033],[102.9199,36.0791],[103.0078,36.2549],[102.832,36.3428],[102.5684,36.7383],[102.6563,36.8262],[102.4805,36.958],[102.5684,37.1777],[102.1289,37.4414],[101.9531,37.7051],[101.7773,37.6172],[101.5137,37.8809],[101.1621,37.8369],[100.7227,38.2324],[100.459,38.2764],[100.1074,38.4961],[100.0195,38.4521],[100.1953,38.2764],[99.8438,38.3643],[99.1406,38.9355],[98.7891,39.0674],[98.6133,38.9355],[98.3496,39.0234],[98.1738,38.8037],[97.0313,39.1992],[97.1191,38.584],[96.6797,38.4521],[96.6797,38.1885],[96.416,38.2324],[96.2402,38.1006],[95.7129,38.3643],[95.4492,38.2764],[95.0098,38.4082],[94.5703,38.3643],[94.3066,38.7598],[93.8672,38.7158],[93.6914,38.9355],[93.1641,38.9795],[93.1641,39.1992],[92.373,39.1113],[92.373,39.3311],[92.6367,39.6387],[93.0762,40.6494],[93.8672,40.6934],[94.043,41.0889],[94.5703,41.4844],[95.1855,41.792],[95.2734,41.6162],[95.9766,41.9238],[96.2402,42.2314],[96.0645,42.3193],[95.9766,42.4951],[96.416,42.7148]]]}},{"type":"Feature","properties":{"id":"53","size":"1200","name":"云南省","cp":[101.0652,25.1807],"childNum":16},"geometry":{"type":"Polygon","coordinates":[[[98.1738,28.125],[98.2617,28.3887],[98.3496,28.125],[98.7012,28.2129],[98.7891,28.3447],[98.6133,28.5205],[98.7012,28.916],[98.7891,29.0039],[98.7891,28.8721],[98.9648,28.8281],[98.9648,29.1357],[99.1406,29.2676],[99.2285,28.3008],[99.4043,28.1689],[99.4043,28.5205],[99.668,28.8281],[100.1953,28.3447],[100.0195,28.125],[100.2832,27.7295],[100.3711,27.8174],[100.7227,27.8613],[101.1621,27.1582],[101.1621,27.0264],[101.4258,26.7188],[101.4258,26.8066],[101.4258,26.5869],[101.6895,26.3672],[101.6016,26.2354],[101.8652,26.0596],[102.1289,26.1035],[102.5684,26.3672],[102.6563,26.1914],[103.0078,26.3672],[102.9199,27.29],[103.4473,27.7734],[103.4473,28.125],[103.7988,28.3008],[103.8867,28.6523],[104.4141,28.6084],[104.2383,28.4326],[104.4141,28.2568],[104.4141,28.125],[104.3262,28.0371],[104.4141,27.9492],[104.8535,27.9053],[105.0293,28.0811],[105.2051,27.9932],[105.293,27.7295],[105.2051,27.3779],[104.5898,27.334],[104.4141,27.4658],[104.1504,27.2461],[103.8867,27.4219],[103.623,27.0264],[103.7109,26.9824],[103.7109,26.7627],[103.8867,26.543],[104.4141,26.6748],[104.6777,26.4111],[104.3262,25.708],[104.8535,25.2246],[104.5898,25.0488],[104.6777,24.9609],[104.502,24.7412],[104.6777,24.3457],[104.7656,24.4775],[105.0293,24.4336],[105.2051,24.082],[105.4688,24.0381],[105.5566,24.126],[105.9961,24.126],[106.1719,23.8184],[106.1719,23.5547],[105.6445,23.4229],[105.5566,23.2031],[105.293,23.3789],[104.8535,23.1592],[104.7656,22.8516],[104.3262,22.6758],[104.1504,22.8076],[103.9746,22.5439],[103.623,22.7637],[103.5352,22.5879],[103.3594,22.8076],[103.0957,22.4561],[102.4805,22.7637],[102.3047,22.4121],[101.8652,22.3682],[101.7773,22.5],[101.6016,22.1924],[101.8652,21.6211],[101.7773,21.1377],[101.6016,21.2256],[101.25,21.1816],[101.1621,21.7529],[100.6348,21.4453],[100.1074,21.4893],[99.9316,22.0605],[99.2285,22.1484],[99.4043,22.5879],[99.3164,22.7197],[99.4922,23.0713],[98.877,23.2031],[98.7012,23.9502],[98.877,24.126],[98.1738,24.082],[97.7344,23.8623],[97.5586,23.9063],[97.7344,24.126],[97.6465,24.4336],[97.5586,24.4336],[97.5586,24.7412],[97.7344,24.8291],[97.8223,25.2686],[98.1738,25.4004],[98.1738,25.6201],[98.3496,25.5762],[98.5254,25.8398],[98.7012,25.8838],[98.6133,26.0596],[98.7012,26.1475],[98.7891,26.5869],[98.7012,27.5098],[98.5254,27.6416],[98.3496,27.5098],[98.1738,28.125]]]}},{"type":"Feature","properties":{"id":"45","size":"1450","name":"广西壮族自治区","cp":[107.7813,23.6426],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[104.502,24.7412],[104.6777,24.6094],[105.2051,24.9609],[105.9961,24.6533],[106.1719,24.7852],[106.1719,24.9609],[106.875,25.1807],[107.0508,25.2686],[106.9629,25.4883],[107.2266,25.6201],[107.4902,25.2246],[107.7539,25.2246],[107.8418,25.1367],[108.1055,25.2246],[108.1934,25.4443],[108.3691,25.5322],[108.6328,25.3125],[108.6328,25.5762],[109.0723,25.5322],[108.9844,25.752],[109.3359,25.708],[109.5117,26.0156],[109.7754,25.8838],[109.9512,26.1914],[110.2148,25.9717],[110.5664,26.3232],[111.1816,26.3232],[111.2695,26.2354],[111.2695,25.8838],[111.4453,25.8398],[111.0059,25.0049],[111.0938,24.9609],[111.3574,25.1367],[111.5332,24.6533],[111.709,24.7852],[112.0605,24.7412],[111.8848,24.6533],[112.0605,24.3457],[111.8848,24.2139],[111.8848,23.9941],[111.7969,23.8184],[111.6211,23.8184],[111.6211,23.6865],[111.3574,23.4668],[111.4453,23.0273],[111.2695,22.8076],[110.7422,22.5439],[110.7422,22.2803],[110.6543,22.1484],[110.3027,22.1484],[110.3027,21.8848],[109.9512,21.8408],[109.8633,21.665],[109.7754,21.6211],[109.7754,21.4014],[109.5996,21.4453],[109.1602,21.3574],[109.248,20.874],[109.0723,20.9619],[109.0723,21.5332],[108.7207,21.5332],[108.6328,21.665],[108.2813,21.4893],[107.8418,21.6211],[107.4023,21.6211],[107.0508,21.7969],[107.0508,21.9287],[106.6992,22.0166],[106.6113,22.4121],[106.7871,22.7637],[106.6992,22.8955],[105.9082,22.9395],[105.5566,23.0713],[105.5566,23.2031],[105.6445,23.4229],[106.1719,23.5547],[106.1719,23.8184],[105.9961,24.126],[105.5566,24.126],[105.4688,24.0381],[105.2051,24.082],[105.0293,24.4336],[104.7656,24.4775],[104.6777,24.3457],[104.502,24.7412]]]}},{"type":"Feature","properties":{"id":"43","size":"1700","name":"湖南省","cp":[111.5332,27.3779],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[109.248,28.4766],[109.248,29.1357],[109.5117,29.6191],[109.6875,29.6191],[109.7754,29.751],[110.4785,29.6631],[110.6543,29.751],[110.4785,30.0146],[110.8301,30.1465],[111.7969,29.9268],[112.2363,29.5313],[112.5,29.6191],[112.6758,29.5752],[112.9395,29.7949],[113.0273,29.751],[112.9395,29.4873],[113.0273,29.4434],[113.5547,29.8389],[113.5547,29.707],[113.7305,29.5752],[113.6426,29.3115],[113.7305,29.0918],[113.9063,29.0479],[114.1699,28.8281],[114.082,28.5645],[114.2578,28.3447],[113.7305,27.9492],[113.6426,27.5977],[113.6426,27.3779],[113.8184,27.29],[113.7305,27.1143],[113.9063,26.9385],[113.9063,26.6309],[114.082,26.5869],[113.9941,26.1914],[114.2578,26.1475],[113.9941,26.0596],[113.9063,25.4443],[113.6426,25.3125],[113.2031,25.5322],[112.8516,25.3564],[113.0273,25.2246],[113.0273,24.9609],[112.8516,24.917],[112.5879,25.1367],[112.2363,25.1807],[112.1484,24.873],[112.0605,24.7412],[111.709,24.7852],[111.5332,24.6533],[111.3574,25.1367],[111.0938,24.9609],[111.0059,25.0049],[111.4453,25.8398],[111.2695,25.8838],[111.2695,26.2354],[111.1816,26.3232],[110.5664,26.3232],[110.2148,25.9717],[109.9512,26.1914],[109.7754,25.8838],[109.5117,26.0156],[109.4238,26.2793],[109.248,26.3232],[109.4238,26.5869],[109.3359,26.7188],[109.5117,26.8066],[109.5117,27.0264],[109.3359,27.1582],[108.8965,27.0264],[108.8086,27.1143],[109.4238,27.5977],[109.3359,27.9053],[109.3359,28.2568],[109.248,28.4766]]]}},{"type":"Feature","properties":{"id":"61","size":"1150","name":"陕西省","cp":[109.5996,35.7396],"childNum":10},"geometry":{"type":"Polygon","coordinates":[[[105.4688,32.915],[105.9082,33.0029],[105.9961,33.1787],[105.7324,33.3984],[105.9961,33.6182],[106.5234,33.5303],[106.4355,33.9258],[106.6113,34.1455],[106.5234,34.2773],[106.6992,34.3213],[106.3477,34.585],[106.5234,34.7607],[106.6113,35.0684],[106.9629,35.0684],[107.2266,34.8926],[107.666,34.9365],[107.8418,35.0244],[107.7539,35.1123],[107.7539,35.2881],[108.5449,35.2881],[108.6328,35.5518],[108.5449,35.8594],[108.6328,35.9912],[108.7207,36.3428],[107.3145,36.9141],[107.3145,37.0898],[107.3145,37.6172],[107.666,37.8809],[108.1934,37.6172],[108.7207,37.7051],[108.8086,38.0127],[108.8965,37.9688],[109.0723,38.0127],[108.9844,38.3203],[109.9512,39.1553],[109.8633,39.2432],[110.2148,39.2871],[110.127,39.4629],[110.6543,39.2871],[111.0938,39.5947],[111.0938,39.375],[111.1816,39.2432],[110.918,38.7158],[110.8301,38.4961],[110.4785,38.1885],[110.4785,37.9688],[110.8301,37.6611],[110.3906,37.002],[110.4785,36.123],[110.5664,35.6396],[110.2148,34.8926],[110.2148,34.6729],[110.3906,34.585],[110.4785,34.2334],[110.6543,34.1455],[110.6543,33.8379],[111.0059,33.5303],[111.0059,33.2666],[110.7422,33.1348],[110.5664,33.2666],[110.3027,33.1787],[109.5996,33.2666],[109.4238,33.1348],[109.7754,33.0469],[109.7754,32.915],[110.127,32.7393],[110.127,32.6074],[109.6875,32.6074],[109.5117,32.4316],[109.5996,31.7285],[109.248,31.7285],[109.0723,31.9482],[108.5449,32.2119],[108.2813,32.2559],[108.0176,32.168],[107.4023,32.5195],[107.2266,32.4316],[107.1387,32.4756],[107.0508,32.6953],[106.3477,32.6514],[106.084,32.7393],[106.084,32.8711],[105.5566,32.7393],[105.4688,32.915]]]}},{"type":"Feature","properties":{"id":"44","size":"1600","name":"广东省","cp":[113.4668,22.8076],"childNum":21},"geometry":{"type":"Polygon","coordinates":[[[109.7754,21.4014],[109.7754,21.6211],[109.8633,21.665],[109.9512,21.8408],[110.3027,21.8848],[110.3027,22.1484],[110.6543,22.1484],[110.7422,22.2803],[110.7422,22.5439],[111.2695,22.8076],[111.4453,23.0273],[111.3574,23.4668],[111.6211,23.6865],[111.6211,23.8184],[111.7969,23.8184],[111.8848,23.9941],[111.8848,24.2139],[112.0605,24.3457],[111.8848,24.6533],[112.0605,24.7412],[112.1484,24.873],[112.2363,25.1807],[112.5879,25.1367],[112.8516,24.917],[113.0273,24.9609],[113.0273,25.2246],[112.8516,25.3564],[113.2031,25.5322],[113.6426,25.3125],[113.9063,25.4443],[113.9941,25.2686],[114.6094,25.4004],[114.7852,25.2686],[114.6973,25.1367],[114.4336,24.9609],[114.1699,24.6973],[114.4336,24.5215],[115.4004,24.7852],[115.8398,24.5654],[115.752,24.7852],[115.9277,24.917],[116.2793,24.7852],[116.3672,24.873],[116.543,24.6094],[116.7188,24.6533],[116.9824,24.1699],[116.9824,23.9063],[117.1582,23.5547],[117.334,23.2471],[116.8945,23.3789],[116.6309,23.1152],[116.543,22.8516],[115.9277,22.7197],[115.6641,22.7637],[115.5762,22.6318],[115.0488,22.6758],[114.6094,22.3682],[114.3457,22.5439],[113.9941,22.5],[113.8184,22.1924],[114.3457,22.1484],[114.4336,22.0166],[114.082,21.9287],[113.9941,21.7969],[113.5547,22.0166],[113.1152,21.8408],[112.9395,21.5771],[112.4121,21.4453],[112.2363,21.5332],[111.5332,21.4893],[111.2695,21.3574],[110.7422,21.3574],[110.6543,21.2256],[110.7422,20.918],[110.4785,20.874],[110.6543,20.2588],[110.5664,20.2588],[110.3906,20.127],[110.0391,20.127],[109.8633,20.127],[109.8633,20.3027],[109.5996,20.918],[109.7754,21.4014],[109.7754,21.4014]],[[113.5986,22.1649],[113.6096,22.1265],[113.5547,22.11],[113.5437,22.2034],[113.5767,22.2034],[113.5986,22.1649]]]}},{"type":"Feature","properties":{"id":"22","size":"1120","name":"吉林省","cp":[125.7746,43.5938],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[123.2227,46.2305],[123.9258,46.2305],[124.0137,45.7471],[124.3652,45.4395],[124.8926,45.5273],[125.0684,45.3955],[125.6836,45.5273],[125.7715,45.3076],[126.0352,45.1758],[126.5625,45.2637],[126.9141,45.1318],[127.0898,45],[127.002,44.7803],[127.0898,44.6045],[127.5293,44.6045],[127.7051,44.1211],[128.0566,44.1211],[128.0566,44.3408],[128.4082,44.4727],[128.4961,44.165],[128.8477,43.5498],[129.1992,43.5938],[129.2871,43.8135],[129.8145,43.9014],[129.9023,44.0332],[129.9902,43.8574],[130.3418,43.9893],[130.5176,43.6377],[130.8691,43.418],[131.3086,43.4619],[131.3086,43.3301],[131.1328,42.9346],[130.4297,42.7148],[130.6055,42.6709],[130.6055,42.4512],[130.2539,42.7588],[130.2539,42.8906],[130.166,42.9785],[129.9023,43.0225],[129.7266,42.4951],[129.375,42.4512],[128.9355,42.0117],[128.0566,42.0117],[128.3203,41.5723],[128.1445,41.3525],[127.0898,41.5283],[127.1777,41.5723],[126.9141,41.792],[126.6504,41.6602],[126.4746,41.3965],[126.123,40.957],[125.6836,40.8691],[125.5957,40.9131],[125.7715,41.2207],[125.332,41.6602],[125.332,41.9678],[125.4199,42.0996],[125.332,42.1436],[124.8926,42.8027],[124.8926,43.0664],[124.7168,43.0664],[124.4531,42.8467],[124.2773,43.2422],[123.8379,43.4619],[123.6621,43.374],[123.3105,43.5059],[123.4863,43.7256],[123.1348,44.4727],[122.3438,44.2529],[122.0801,44.8682],[122.2559,45.2637],[121.9043,45.7031],[121.7285,45.7471],[121.8164,46.0107],[122.2559,45.791],[122.4316,45.8789],[122.6953,45.7031],[122.7832,46.0107],[123.2227,46.2305]]]}},{"type":"Feature","properties":{"id":"13","size":"1300","name":"河北省","cp":[115.4004,39.4688],"childNum":11},"geometry":{"type":"MultiPolygon","coordinates":[[[[114.5215,39.5068],[114.3457,39.8584],[113.9941,39.9902],[114.5215,40.3418],[114.3457,40.3857],[114.2578,40.6055],[114.082,40.7373],[113.9063,41.1328],[113.9941,41.2207],[113.9063,41.4404],[114.2578,41.5723],[114.1699,41.792],[114.5215,42.1436],[114.873,42.0996],[114.9609,41.6162],[115.2246,41.5723],[115.9277,41.9238],[116.0156,41.792],[116.2793,42.0117],[116.8066,42.0117],[116.8945,42.4072],[117.334,42.4512],[117.5098,42.583],[117.7734,42.627],[118.0371,42.4072],[117.9492,42.2314],[118.125,42.0557],[118.3008,42.0996],[118.3008,41.792],[118.125,41.748],[118.3887,41.3086],[119.2676,41.3086],[118.8281,40.8252],[119.2676,40.5176],[119.5313,40.5615],[119.707,40.1221],[119.8828,39.9463],[119.5313,39.6826],[119.4434,39.4189],[118.916,39.0674],[118.4766,38.9355],[118.125,39.0234],[118.0371,39.1992],[118.0371,39.2432],[117.8613,39.4189],[117.9492,39.5947],[117.6855,39.5947],[117.5098,39.7705],[117.5098,39.9902],[117.6855,39.9902],[117.6855,40.0781],[117.4219,40.21],[117.2461,40.5176],[117.4219,40.6494],[116.9824,40.6934],[116.6309,41.0449],[116.3672,40.9131],[116.4551,40.7813],[116.1914,40.7813],[116.1035,40.6055],[115.752,40.5615],[115.9277,40.2539],[115.4004,39.9463],[115.4883,39.6387],[115.752,39.5068],[116.1914,39.5947],[116.3672,39.4629],[116.543,39.5947],[116.8066,39.5947],[116.8945,39.1113],[116.7188,38.9355],[116.7188,38.8037],[117.2461,38.54],[117.5977,38.6279],[117.9492,38.3203],[117.4219,37.8369],[116.8066,37.8369],[116.4551,37.4854],[116.2793,37.5732],[116.2793,37.3535],[116.0156,37.3535],[115.752,36.9141],[115.3125,36.5186],[115.4883,36.167],[115.3125,36.0791],[115.1367,36.2109],[114.9609,36.0791],[114.873,36.123],[113.7305,36.3428],[113.4668,36.6504],[113.7305,36.8701],[113.7305,37.1338],[114.1699,37.6611],[113.9941,37.7051],[113.8184,38.1445],[113.5547,38.2764],[113.5547,38.54],[113.8184,38.8037],[113.8184,38.9355],[113.9063,39.0234],[114.3457,39.0674],[114.5215,39.5068]]],[[[117.2461,40.0781],[117.1582,39.8145],[117.1582,39.6387],[116.8945,39.6826],[116.8945,39.8145],[116.8066,39.9902],[117.2461,40.0781]]]]}},{"type":"Feature","properties":{"id":"42","size":"1500","name":"湖北省","cp":[112.2363,31.1572],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[110.2148,31.1572],[110.127,31.377],[109.6875,31.5527],[109.7754,31.6846],[109.5996,31.7285],[109.5117,32.4316],[109.6875,32.6074],[110.127,32.6074],[110.127,32.7393],[109.7754,32.915],[109.7754,33.0469],[109.4238,33.1348],[109.5996,33.2666],[110.3027,33.1787],[110.5664,33.2666],[110.7422,33.1348],[111.0059,33.2666],[111.5332,32.6074],[112.3242,32.3438],[113.2031,32.4316],[113.4668,32.2998],[113.7305,32.4316],[113.8184,31.8604],[113.9941,31.7725],[114.1699,31.8604],[114.5215,31.7725],[114.6094,31.5527],[114.7852,31.4648],[115.1367,31.5967],[115.2246,31.4209],[115.4004,31.4209],[115.5762,31.2012],[116.0156,31.0254],[115.752,30.6738],[116.1035,30.1904],[116.1035,29.8389],[115.9277,29.707],[115.4883,29.7949],[114.873,29.3994],[114.2578,29.3555],[113.9063,29.0479],[113.7305,29.0918],[113.6426,29.3115],[113.7305,29.5752],[113.5547,29.707],[113.5547,29.8389],[113.0273,29.4434],[112.9395,29.4873],[113.0273,29.751],[112.9395,29.7949],[112.6758,29.5752],[112.5,29.6191],[112.2363,29.5313],[111.7969,29.9268],[110.8301,30.1465],[110.4785,30.0146],[110.6543,29.751],[110.4785,29.6631],[109.7754,29.751],[109.6875,29.6191],[109.5117,29.6191],[109.248,29.1357],[109.0723,29.3555],[108.9844,29.3115],[108.6328,29.8389],[108.457,29.7949],[108.5449,30.2344],[108.457,30.4102],[108.6328,30.5859],[108.8086,30.498],[109.0723,30.6299],[109.1602,30.542],[109.248,30.6299],[109.4238,30.542],[109.8633,30.8936],[110.0391,30.8057],[110.2148,31.1572]]]}},{"type":"Feature","properties":{"id":"52","size":"2000","name":"贵州省","cp":[106.6113,26.9385],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[104.1504,27.2461],[104.4141,27.4658],[104.5898,27.334],[105.2051,27.3779],[105.293,27.7295],[105.5566,27.7734],[105.6445,27.6416],[106.3477,27.8174],[106.1719,28.125],[105.9082,28.125],[105.6445,28.4326],[105.9961,28.7402],[106.3477,28.5205],[106.5234,28.5645],[106.4355,28.7842],[106.5234,28.7842],[106.6113,28.6523],[106.6113,28.5205],[106.6992,28.4766],[106.875,28.7842],[107.4023,28.8721],[107.4023,29.1797],[107.5781,29.2236],[107.8418,29.1357],[107.8418,29.0039],[108.2813,29.0918],[108.3691,28.6523],[108.5449,28.6523],[108.5449,28.3887],[108.7207,28.4766],[108.7207,28.2129],[109.0723,28.2129],[109.248,28.4766],[109.3359,28.2568],[109.3359,27.9053],[109.4238,27.5977],[108.8086,27.1143],[108.8965,27.0264],[109.3359,27.1582],[109.5117,27.0264],[109.5117,26.8066],[109.3359,26.7188],[109.4238,26.5869],[109.248,26.3232],[109.4238,26.2793],[109.5117,26.0156],[109.3359,25.708],[108.9844,25.752],[109.0723,25.5322],[108.6328,25.5762],[108.6328,25.3125],[108.3691,25.5322],[108.1934,25.4443],[108.1055,25.2246],[107.8418,25.1367],[107.7539,25.2246],[107.4902,25.2246],[107.2266,25.6201],[106.9629,25.4883],[107.0508,25.2686],[106.875,25.1807],[106.1719,24.9609],[106.1719,24.7852],[105.9961,24.6533],[105.2051,24.9609],[104.6777,24.6094],[104.502,24.7412],[104.6777,24.9609],[104.5898,25.0488],[104.8535,25.2246],[104.3262,25.708],[104.6777,26.4111],[104.4141,26.6748],[103.8867,26.543],[103.7109,26.7627],[103.7109,26.9824],[103.623,27.0264],[103.8867,27.4219],[104.1504,27.2461]]]}},{"type":"Feature","properties":{"id":"37","size":"1500","name":"山东省","cp":[118.7402,36.4307],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[115.4883,36.167],[115.3125,36.5186],[115.752,36.9141],[116.0156,37.3535],[116.2793,37.3535],[116.2793,37.5732],[116.4551,37.4854],[116.8066,37.8369],[117.4219,37.8369],[117.9492,38.3203],[118.125,38.1445],[118.916,38.1445],[119.3555,37.6611],[119.0039,37.5293],[119.0039,37.3535],[119.3555,37.1338],[119.707,37.1338],[119.8828,37.3975],[120.498,37.8369],[120.5859,38.1445],[120.9375,38.4521],[121.0254,37.8369],[121.2012,37.6611],[121.9043,37.4854],[122.168,37.6172],[122.2559,37.4854],[122.6074,37.4854],[122.6953,37.3535],[122.6074,36.9141],[122.4316,36.7822],[121.8164,36.8701],[121.7285,36.6943],[121.1133,36.6064],[121.1133,36.4307],[121.377,36.2549],[120.7617,36.167],[120.9375,35.8594],[120.6738,36.0352],[119.707,35.4639],[119.9707,34.9805],[119.3555,35.0244],[119.2676,35.1123],[118.916,35.0244],[118.7402,34.7168],[118.4766,34.6729],[118.3887,34.4092],[118.2129,34.4092],[118.125,34.6289],[117.9492,34.6729],[117.5977,34.4531],[117.334,34.585],[117.2461,34.4531],[116.8066,34.9365],[116.4551,34.8926],[116.3672,34.6289],[116.1914,34.585],[115.5762,34.585],[115.4004,34.8486],[114.7852,35.0684],[115.0488,35.376],[115.2246,35.4199],[115.4883,35.7275],[116.1035,36.0791],[115.3125,35.8154],[115.4883,36.167]]]}},{"type":"Feature","properties":{"id":"36","size":"1700","name":"江西省","cp":[116.0156,27.29],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[114.2578,28.3447],[114.082,28.5645],[114.1699,28.8281],[113.9063,29.0479],[114.2578,29.3555],[114.873,29.3994],[115.4883,29.7949],[115.9277,29.707],[116.1035,29.8389],[116.2793,29.7949],[116.7188,30.0586],[116.8945,29.9268],[116.7188,29.751],[116.7188,29.6191],[117.1582,29.707],[117.0703,29.8389],[117.1582,29.9268],[117.5098,29.6191],[118.0371,29.5752],[118.2129,29.3994],[118.0371,29.1797],[118.0371,29.0479],[118.3887,28.7842],[118.4766,28.3447],[118.4766,28.3008],[118.3008,28.0811],[117.7734,27.8174],[117.5098,27.9932],[116.9824,27.6416],[117.1582,27.29],[117.0703,27.1143],[116.543,26.8066],[116.6309,26.4551],[116.3672,26.2354],[116.4551,26.1035],[116.1914,25.8838],[116.0156,25.2686],[115.8398,25.2246],[115.9277,24.917],[115.752,24.7852],[115.8398,24.5654],[115.4004,24.7852],[114.4336,24.5215],[114.1699,24.6973],[114.4336,24.9609],[114.6973,25.1367],[114.7852,25.2686],[114.6094,25.4004],[113.9941,25.2686],[113.9063,25.4443],[113.9941,26.0596],[114.2578,26.1475],[113.9941,26.1914],[114.082,26.5869],[113.9063,26.6309],[113.9063,26.9385],[113.7305,27.1143],[113.8184,27.29],[113.6426,27.3779],[113.6426,27.5977],[113.7305,27.9492],[114.2578,28.3447]]]}},{"type":"Feature","properties":{"id":"41","size":"1700","name":"河南省","cp":[113.0668,33.8818],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[110.3906,34.585],[110.8301,34.6289],[111.1816,34.8047],[111.5332,34.8486],[111.7969,35.0684],[112.0605,35.0684],[112.0605,35.2881],[112.7637,35.2002],[113.1152,35.332],[113.6426,35.6836],[113.7305,36.3428],[114.873,36.123],[114.9609,36.0791],[115.1367,36.2109],[115.3125,36.0791],[115.4883,36.167],[115.3125,35.8154],[116.1035,36.0791],[115.4883,35.7275],[115.2246,35.4199],[115.0488,35.376],[114.7852,35.0684],[115.4004,34.8486],[115.5762,34.585],[116.1914,34.585],[116.1914,34.4092],[116.543,34.2773],[116.6309,33.9258],[116.1914,33.7061],[116.0156,33.9697],[115.6641,34.0576],[115.5762,33.9258],[115.5762,33.6621],[115.4004,33.5303],[115.3125,33.1787],[114.873,33.1348],[114.873,33.0029],[115.1367,32.8711],[115.2246,32.6074],[115.5762,32.4316],[115.8398,32.5195],[115.9277,31.7725],[115.4883,31.6846],[115.4004,31.4209],[115.2246,31.4209],[115.1367,31.5967],[114.7852,31.4648],[114.6094,31.5527],[114.5215,31.7725],[114.1699,31.8604],[113.9941,31.7725],[113.8184,31.8604],[113.7305,32.4316],[113.4668,32.2998],[113.2031,32.4316],[112.3242,32.3438],[111.5332,32.6074],[111.0059,33.2666],[111.0059,33.5303],[110.6543,33.8379],[110.6543,34.1455],[110.4785,34.2334],[110.3906,34.585]]]}},{"type":"Feature","properties":{"id":"21","size":"1500","name":"辽宁省","cp":[122.0438,41.0889],"childNum":14},"geometry":{"type":"Polygon","coordinates":[[[119.2676,41.3086],[119.4434,41.6162],[119.2676,41.7041],[119.3555,42.2754],[119.5313,42.3633],[119.8828,42.1875],[120.1465,41.7041],[120.498,42.0996],[121.4648,42.4951],[121.7285,42.4512],[121.9922,42.7148],[122.3438,42.6709],[122.3438,42.8467],[122.7832,42.7148],[123.1348,42.8027],[123.3105,42.9785],[123.5742,43.0225],[123.6621,43.374],[123.8379,43.4619],[124.2773,43.2422],[124.4531,42.8467],[124.7168,43.0664],[124.8926,43.0664],[124.8926,42.8027],[125.332,42.1436],[125.4199,42.0996],[125.332,41.9678],[125.332,41.6602],[125.7715,41.2207],[125.5957,40.9131],[125.6836,40.8691],[124.541,40.21],[124.1016,39.6826],[123.3984,39.6826],[123.1348,39.4189],[123.1348,39.0234],[122.0801,39.0234],[121.5527,38.7158],[121.1133,38.6719],[120.9375,38.9795],[121.377,39.1992],[121.2012,39.5508],[122.0801,40.3857],[121.9922,40.6934],[121.7285,40.8252],[121.2012,40.8252],[120.5859,40.21],[119.8828,39.9463],[119.707,40.1221],[119.5313,40.5615],[119.2676,40.5176],[118.8281,40.8252],[119.2676,41.3086]]]}},{"type":"Feature","properties":{"id":"14","size":"1450","name":"山西省","cp":[112.4121,37.6611],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[110.918,38.7158],[111.1816,39.2432],[111.0938,39.375],[111.3574,39.4189],[111.4453,39.6387],[111.9727,39.5947],[112.3242,40.2539],[112.7637,40.166],[113.2031,40.3857],[113.5547,40.3418],[113.8184,40.5176],[114.082,40.5176],[114.082,40.7373],[114.2578,40.6055],[114.3457,40.3857],[114.5215,40.3418],[113.9941,39.9902],[114.3457,39.8584],[114.5215,39.5068],[114.3457,39.0674],[113.9063,39.0234],[113.8184,38.9355],[113.8184,38.8037],[113.5547,38.54],[113.5547,38.2764],[113.8184,38.1445],[113.9941,37.7051],[114.1699,37.6611],[113.7305,37.1338],[113.7305,36.8701],[113.4668,36.6504],[113.7305,36.3428],[113.6426,35.6836],[113.1152,35.332],[112.7637,35.2002],[112.0605,35.2881],[112.0605,35.0684],[111.7969,35.0684],[111.5332,34.8486],[111.1816,34.8047],[110.8301,34.6289],[110.3906,34.585],[110.2148,34.6729],[110.2148,34.8926],[110.5664,35.6396],[110.4785,36.123],[110.3906,37.002],[110.8301,37.6611],[110.4785,37.9688],[110.4785,38.1885],[110.8301,38.4961],[110.918,38.7158]]]}},{"type":"Feature","properties":{"id":"34","size":"1700","name":"安徽省","cp":[117.2461,32.0361],"childNum":17},"geometry":{"type":"Polygon","coordinates":[[[116.6309,33.9258],[116.543,34.2773],[116.1914,34.4092],[116.1914,34.585],[116.3672,34.6289],[116.8945,34.4092],[117.1582,34.0576],[117.5977,34.0137],[117.7734,33.7061],[118.125,33.75],[117.9492,33.2227],[118.0371,33.1348],[118.2129,33.2227],[118.3008,32.7832],[118.7402,32.7393],[118.916,32.959],[119.1797,32.8271],[119.1797,32.4756],[118.5645,32.5635],[118.6523,32.2119],[118.4766,32.168],[118.3887,31.9482],[118.916,31.5527],[118.7402,31.377],[118.8281,31.2451],[119.3555,31.2891],[119.4434,31.1572],[119.6191,31.1133],[119.6191,31.0693],[119.4434,30.6738],[119.2676,30.6299],[119.3555,30.4102],[118.916,30.3223],[118.916,29.9707],[118.7402,29.707],[118.2129,29.3994],[118.0371,29.5752],[117.5098,29.6191],[117.1582,29.9268],[117.0703,29.8389],[117.1582,29.707],[116.7188,29.6191],[116.7188,29.751],[116.8945,29.9268],[116.7188,30.0586],[116.2793,29.7949],[116.1035,29.8389],[116.1035,30.1904],[115.752,30.6738],[116.0156,31.0254],[115.5762,31.2012],[115.4004,31.4209],[115.4883,31.6846],[115.9277,31.7725],[115.8398,32.5195],[115.5762,32.4316],[115.2246,32.6074],[115.1367,32.8711],[114.873,33.0029],[114.873,33.1348],[115.3125,33.1787],[115.4004,33.5303],[115.5762,33.6621],[115.5762,33.9258],[115.6641,34.0576],[116.0156,33.9697],[116.1914,33.7061],[116.6309,33.9258]]]}},{"type":"Feature","properties":{"id":"35","size":"2000","name":"福建省","cp":[118.3008,25.9277],"childNum":9},"geometry":{"type":"Polygon","coordinates":[[[118.4766,28.3008],[118.8281,28.2568],[118.7402,28.0371],[118.916,27.4658],[119.2676,27.4219],[119.6191,27.6855],[119.7949,27.29],[120.2344,27.4219],[120.4102,27.1582],[120.7617,27.0264],[120.6738,26.8945],[120.2344,26.8506],[120.2344,26.7188],[120.4102,26.6748],[120.498,26.3672],[120.2344,26.2793],[120.4102,26.1475],[120.0586,26.1914],[119.9707,25.9277],[119.7949,25.9277],[119.9707,25.4004],[119.7949,25.2686],[119.5313,25.1367],[119.4434,25.0049],[119.2676,25.0928],[118.916,24.8291],[118.6523,24.5215],[118.4766,24.5215],[118.4766,24.4336],[118.2129,24.3457],[118.2129,24.1699],[117.8613,23.9941],[117.7734,23.7744],[117.5098,23.5986],[117.1582,23.5547],[116.9824,23.9063],[116.9824,24.1699],[116.7188,24.6533],[116.543,24.6094],[116.3672,24.873],[116.2793,24.7852],[115.9277,24.917],[115.8398,25.2246],[116.0156,25.2686],[116.1914,25.8838],[116.4551,26.1035],[116.3672,26.2354],[116.6309,26.4551],[116.543,26.8066],[117.0703,27.1143],[117.1582,27.29],[116.9824,27.6416],[117.5098,27.9932],[117.7734,27.8174],[118.3008,28.0811],[118.4766,28.3008]]]}},{"type":"Feature","properties":{"id":"33","size":"2100","name":"浙江省","cp":[120.498,29.0918],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[118.2129,29.3994],[118.7402,29.707],[118.916,29.9707],[118.916,30.3223],[119.3555,30.4102],[119.2676,30.6299],[119.4434,30.6738],[119.6191,31.0693],[119.6191,31.1133],[119.9707,31.1572],[120.498,30.8057],[120.9375,31.0254],[121.2891,30.6738],[121.9922,30.8057],[122.6953,30.8936],[122.8711,30.7178],[122.959,30.1465],[122.6074,30.1025],[122.6074,29.9268],[122.168,29.5313],[122.3438,28.8721],[121.9922,28.8721],[121.9922,28.4326],[121.7285,28.3447],[121.7285,28.2129],[121.4648,28.2129],[121.5527,28.0371],[121.2891,27.9492],[121.1133,27.4219],[120.6738,27.334],[120.6738,27.1582],[120.9375,27.0264],[120.7617,27.0264],[120.4102,27.1582],[120.2344,27.4219],[119.7949,27.29],[119.6191,27.6855],[119.2676,27.4219],[118.916,27.4658],[118.7402,28.0371],[118.8281,28.2568],[118.4766,28.3008],[118.4766,28.3447],[118.3887,28.7842],[118.0371,29.0479],[118.0371,29.1797],[118.2129,29.3994]]]}},{"type":"Feature","properties":{"id":"32","size":"1950","name":"江苏省","cp":[118.8586,32.915],"childNum":13},"geometry":{"type":"Polygon","coordinates":[[[116.3672,34.6289],[116.4551,34.8926],[116.8066,34.9365],[117.2461,34.4531],[117.334,34.585],[117.5977,34.4531],[117.9492,34.6729],[118.125,34.6289],[118.2129,34.4092],[118.3887,34.4092],[118.4766,34.6729],[118.7402,34.7168],[118.916,35.0244],[119.2676,35.1123],[119.3555,35.0244],[119.3555,34.8486],[119.707,34.585],[120.3223,34.3652],[120.9375,33.0469],[121.0254,32.6514],[121.377,32.4756],[121.4648,32.168],[121.9043,31.9922],[121.9922,31.6846],[121.9922,31.5967],[121.2012,31.8604],[121.1133,31.7285],[121.377,31.5088],[121.2012,31.4648],[120.9375,31.0254],[120.498,30.8057],[119.9707,31.1572],[119.6191,31.1133],[119.4434,31.1572],[119.3555,31.2891],[118.8281,31.2451],[118.7402,31.377],[118.916,31.5527],[118.3887,31.9482],[118.4766,32.168],[118.6523,32.2119],[118.5645,32.5635],[119.1797,32.4756],[119.1797,32.8271],[118.916,32.959],[118.7402,32.7393],[118.3008,32.7832],[118.2129,33.2227],[118.0371,33.1348],[117.9492,33.2227],[118.125,33.75],[117.7734,33.7061],[117.5977,34.0137],[117.1582,34.0576],[116.8945,34.4092],[116.3672,34.6289]]]}},{"type":"Feature","properties":{"id":"50","size":"2380","name":"重庆市","cp":[107.7539,30.1904],"childNum":40},"geometry":{"type":"Polygon","coordinates":[[[108.5449,31.6846],[108.2813,31.9043],[108.3691,32.168],[108.5449,32.2119],[109.0723,31.9482],[109.248,31.7285],[109.5996,31.7285],[109.7754,31.6846],[109.6875,31.5527],[110.127,31.377],[110.2148,31.1572],[110.0391,30.8057],[109.8633,30.8936],[109.4238,30.542],[109.248,30.6299],[109.1602,30.542],[109.0723,30.6299],[108.8086,30.498],[108.6328,30.5859],[108.457,30.4102],[108.5449,30.2344],[108.457,29.7949],[108.6328,29.8389],[108.9844,29.3115],[109.0723,29.3555],[109.248,29.1357],[109.248,28.4766],[109.0723,28.2129],[108.7207,28.2129],[108.7207,28.4766],[108.5449,28.3887],[108.5449,28.6523],[108.3691,28.6523],[108.2813,29.0918],[107.8418,29.0039],[107.8418,29.1357],[107.5781,29.2236],[107.4023,29.1797],[107.4023,28.8721],[106.875,28.7842],[106.6992,28.4766],[106.6113,28.5205],[106.6113,28.6523],[106.5234,28.7842],[106.4355,28.7842],[106.5234,28.5645],[106.3477,28.5205],[106.2598,28.8721],[105.8203,28.96],[105.7324,29.2676],[105.4688,29.3115],[105.293,29.5313],[105.7324,29.8828],[105.5566,30.1025],[105.6445,30.2783],[105.8203,30.4541],[106.2598,30.1904],[106.6113,30.3223],[106.7871,30.0146],[107.0508,30.0146],[107.4902,30.6299],[107.4023,30.7617],[107.4902,30.8496],[107.9297,30.8496],[108.1934,31.5088],[108.5449,31.6846]]]}},{"type":"Feature","properties":{"id":"64","size":"2100","name":"宁夏回族自治区","cp":[105.9961,37.3096],"childNum":5},"geometry":{"type":"Polygon","coordinates":[[[104.3262,37.4414],[105.8203,37.793],[105.9082,38.7158],[106.3477,39.2871],[106.7871,39.375],[106.9629,38.9795],[106.5234,38.3203],[106.7871,38.1885],[107.3145,38.1006],[107.666,37.8809],[107.3145,37.6172],[107.3145,37.0898],[106.6113,37.0898],[106.6113,36.7822],[106.4355,36.5625],[106.5234,36.4746],[106.5234,36.2549],[106.875,36.123],[106.9629,35.8154],[106.6992,35.6836],[106.4355,35.6836],[106.5234,35.332],[106.3477,35.2441],[106.2598,35.4199],[106.084,35.376],[105.9961,35.4199],[106.084,35.4639],[105.9961,35.4639],[105.8203,35.5518],[105.7324,35.7275],[105.3809,35.7715],[105.293,35.9912],[105.4688,36.123],[105.2051,36.6943],[105.293,36.8262],[104.8535,37.2217],[104.5898,37.2217],[104.5898,37.4414],[104.3262,37.4414]]]}},{"type":"Feature","properties":{"id":"46","size":"4500","name":"海南省","cp":[109.9512,19.2041],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[108.6328,19.3799],[109.0723,19.6436],[109.248,19.9512],[109.5996,20.0391],[110.0391,20.127],[110.3906,20.127],[110.5664,20.2588],[110.6543,20.2588],[111.0938,19.9512],[111.2695,19.9951],[110.6543,19.1602],[110.5664,18.6768],[110.2148,18.5889],[110.0391,18.3691],[109.8633,18.3691],[109.6875,18.1055],[108.9844,18.2813],[108.6328,18.457],[108.6328,19.3799]]]}},{"type":"Feature","properties":{"id":"71","size":"3000","name":"台湾省","cp":[120.0254,23.5986],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[121.9043,25.0488],[121.9922,25.0049],[121.8164,24.7412],[121.9043,24.5654],[121.6406,24.0381],[121.377,23.1152],[121.0254,22.6758],[120.8496,22.0605],[120.7617,21.9287],[120.6738,22.3242],[120.2344,22.5879],[120.0586,23.0713],[120.1465,23.6865],[121.0254,25.0488],[121.5527,25.3125],[121.9043,25.0488]]]}},{"type":"Feature","properties":{"id":"11","size":"5000","name":"北京市","cp":[116.4551,40.2539],"childNum":19},"geometry":{"type":"Polygon","coordinates":[[[117.4219,40.21],[117.334,40.1221],[117.2461,40.0781],[116.8066,39.9902],[116.8945,39.8145],[116.8945,39.6826],[116.8066,39.5947],[116.543,39.5947],[116.3672,39.4629],[116.1914,39.5947],[115.752,39.5068],[115.4883,39.6387],[115.4004,39.9463],[115.9277,40.2539],[115.752,40.5615],[116.1035,40.6055],[116.1914,40.7813],[116.4551,40.7813],[116.3672,40.9131],[116.6309,41.0449],[116.9824,40.6934],[117.4219,40.6494],[117.2461,40.5176],[117.4219,40.21]]]}},{"type":"Feature","properties":{"id":"12","size":"5000","name":"天津市","cp":[117.4219,39.4189],"childNum":18},"geometry":{"type":"Polygon","coordinates":[[[116.8066,39.5947],[116.8945,39.6826],[117.1582,39.6387],[117.1582,39.8145],[117.2461,40.0781],[117.334,40.1221],[117.4219,40.21],[117.6855,40.0781],[117.6855,39.9902],[117.5098,39.9902],[117.5098,39.7705],[117.6855,39.5947],[117.9492,39.5947],[117.8613,39.4189],[118.0371,39.2432],[118.0371,39.1992],[117.8613,39.1113],[117.5977,38.6279],[117.2461,38.54],[116.7188,38.8037],[116.7188,38.9355],[116.8945,39.1113],[116.8066,39.5947]]]}},{"type":"Feature","properties":{"id":"31","size":"7500","name":"上海市","cp":[121.4648,31.2891],"childNum":19},"geometry":{"type":"Polygon","coordinates":[[[120.9375,31.0254],[121.2012,31.4648],[121.377,31.5088],[121.1133,31.7285],[121.2012,31.8604],[121.9922,31.5967],[121.9043,31.1572],[121.9922,30.8057],[121.2891,30.6738],[120.9375,31.0254]]]}},{"type":"Feature","properties":{"id":"81","size":"18000","name":"香港特别行政区","cp":[114.1178,22.3242],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[114.6094,22.4121],[114.5215,22.1484],[114.3457,22.1484],[113.9063,22.1484],[113.8184,22.1924],[113.9063,22.4121],[114.1699,22.5439],[114.3457,22.5439],[114.4336,22.5439],[114.4336,22.4121],[114.6094,22.4121]]]}},{"type":"Feature","properties":{"id":"82","size":"27","name":"澳门特别行政区","cp":[111.5547,22.1484],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[113.5986,22.1649],[113.6096,22.1265],[113.5547,22.11],[113.5437,22.2034],[113.5767,22.2034],[113.5986,22.1649]]]}}]}');let mo=e=>{let t=(e.events||[]).reduce((e,t)=>(e[t.name]=t.script,e),{}),{callMethod:n}=(e=>{let{handleMethod:t}=(0,eh.useContext)(eg);return{callMethod:(n,r,i)=>t(e,n,r,i)}})(e);return{handleEvent:(r,i)=>{let a=t[r];if(a&&a)try{return Function("console","Math","Date","Array","Object","String","Number","Boolean","callMethod","param",`
|
|
1147
1147
|
"use strict";
|
|
1148
1148
|
const window = undefined;
|
|
1149
1149
|
const document = undefined;
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
const module = undefined;
|
|
1154
1154
|
const exports = undefined;
|
|
1155
1155
|
${a}
|
|
1156
|
-
`)(console,Math,Date,Array,Object,String,Number,Boolean,n,{item:e,sourceId:e.id,arg:i})}catch(e){return console.error("点击事件脚本执行失败:",e),null}}}};ny.registerMap("china",
|
|
1156
|
+
`)(console,Math,Date,Array,Object,String,Number,Boolean,n,{item:e,sourceId:e.id,arg:i})}catch(e){return console.error("点击事件脚本执行失败:",e),null}}}};ny.registerMap("china",ma);var ms=d(185),ml=d.n(ms);let mu=em().div`
|
|
1157
1157
|
text-align: center;
|
|
1158
1158
|
color: #a7a7a7;
|
|
1159
1159
|
background: #f5f5f5;
|
|
@@ -1161,7 +1161,7 @@
|
|
|
1161
1161
|
user-select: none;
|
|
1162
1162
|
cursor: pointer;
|
|
1163
1163
|
font-size: 12px;
|
|
1164
|
-
`,
|
|
1164
|
+
`,mc=em().div`
|
|
1165
1165
|
text-align: center;
|
|
1166
1166
|
color: #a7a7a7;
|
|
1167
1167
|
background: #f5f5f5;
|
|
@@ -1169,7 +1169,7 @@
|
|
|
1169
1169
|
user-select: none;
|
|
1170
1170
|
cursor: pointer;
|
|
1171
1171
|
font-size: 12px;
|
|
1172
|
-
`,
|
|
1172
|
+
`,md=[{group:"基础组件",key:"b-text",label:"文本",icon:"icon-text",component:e=>{let{id:t,text:n,item:r,style:i={},customStyle:a={},className:o,classNames:s=[]}=e,l=(0,eh.useMemo)(()=>({...(null==r?void 0:r.style)||{},...a||{},...i||{}}),[r,a,i]);return(0,ed.jsx)("span",{id:t,style:l,className:(s||[]).join(" ")+" "+o,children:n})},formComponent:e=>{var t,n,r,i,a,o;let{model:s,onChange:l}=e,u=(e,t)=>l&&l({...s,[e]:t}),c=(e,t)=>{let n={...s.customStyle||{},[e]:t};l&&l({...s,customStyle:n})};return(0,ed.jsxs)(tn.Form,{layout:"vertical",children:[(0,ed.jsx)(tn.Form.Item,{label:"文本内容",children:(0,ed.jsx)(tn.Input.TextArea,{size:"small",value:s.text,onChange:e=>u("text",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"类名",children:(0,ed.jsx)(tn.Select,{size:"small",value:s.classNames,mode:"tags",onChange:e=>u("classNames",e)})}),(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,ed.jsxs)(tn.Space.Compact,{children:[(0,ed.jsxs)(tn.Select,{size:"small",value:null==(t=s.customStyle)?void 0:t.fontFamily,style:{width:90},onChange:e=>c("fontFamily",e),children:[(0,ed.jsx)(tn.Select.Option,{value:"'黑体', 'SimHei', sans-serif",children:"黑体"}),(0,ed.jsx)(tn.Select.Option,{value:"'宋体', 'SimSun', serif",children:"宋体"}),(0,ed.jsx)(tn.Select.Option,{value:"'仿宋', 'FangSong', serif",children:"仿宋"}),(0,ed.jsx)(tn.Select.Option,{value:"'楷体', 'KaiTi', serif",children:"楷体"}),(0,ed.jsx)(tn.Select.Option,{value:"Arial, sans-serif",children:"Arial"})]}),(0,ed.jsx)(tn.Select,{size:"small",value:null==(n=s.customStyle)?void 0:n.fontSize,style:{width:90},onChange:e=>c("fontSize",e),children:["12px","14px","16px","20px","22px","24px","32px","48px"].map(e=>(0,ed.jsx)(tn.Select.Option,{value:e,children:e},e))}),(0,ed.jsx)(tn.ColorPicker,{size:"small",value:null==(r=s.customStyle)?void 0:r.color,onChange:e=>c("color",e.toHexString()),allowClear:!0})]}),(0,ed.jsxs)(tn.Space.Compact,{children:[(0,ed.jsx)(tn.Button,{type:(null==(i=s.customStyle)?void 0:i.fontWeight)==="bold"?"primary":void 0,size:"small",onClick:()=>{var e;return c("fontWeight",(null==(e=s.customStyle)?void 0:e.fontWeight)==="bold"?"normal":"bold")},children:"B"}),(0,ed.jsx)(tn.Button,{type:(null==(a=s.customStyle)?void 0:a.fontStyle)==="italic"?"primary":void 0,size:"small",onClick:()=>{var e;return c("fontStyle",(null==(e=s.customStyle)?void 0:e.fontStyle)==="italic"?"normal":"italic")},children:"I"}),(0,ed.jsx)(tn.Button,{type:(null==(o=s.customStyle)?void 0:o.textDecoration)==="underline"?"primary":void 0,size:"small",onClick:()=>{var e;return c("textDecoration",(null==(e=s.customStyle)?void 0:e.textDecoration)==="underline"?"none":"underline")},children:"U"})]})]})]})},defaultOptions:{style:{},props:{text:"文本内容",classNames:[],customStyle:{fontSize:14,color:"#444444",fontFamily:"'宋体', 'SimSun', serif",fontWeight:"normal",fontStyle:"normal",textDecoration:"none"}}}},{group:"基础组件",key:"b-image",label:"图片",icon:"icon-image",component:e=>{let{id:t,src:n,alt:r,width:i,height:a,href:o,className:s}=e,l=(0,ed.jsx)("img",{id:t,src:n,alt:r,style:{width:i,height:a},className:s});return o&&o.length?(0,ed.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",children:l}):(0,ed.jsx)("div",{children:l})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i={Authorization:`Bearer ${localStorage.getItem("ASKDATA_TOKEN")||""}`};return(0,ed.jsxs)(tn.Form,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:["图片URL",(0,ed.jsx)(tn.Upload,{name:"file",multiple:!1,accept:".png,.jpg,.jpeg",headers:i,action:"/api/datareport/upload",showUploadList:!1,beforeUpload:e=>{let t=e.type.startsWith("image/");return t||tn.message.error("上传封面只能是图片文件"),t},onChange:e=>{if("done"===e.file.status){var t;r("src",null==(t=e.file.response)?void 0:t.data),tn.message.success("上传成功")}else"error"===e.file.status&&tn.message.error("上传失败")},children:(0,ed.jsx)(tn.Button,{size:"small",type:"link",icon:(0,ed.jsx)(e7.UploadOutlined,{})})})]}),children:(0,ed.jsx)(tn.Input,{size:"small",value:t.src,onChange:e=>r("src",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"图片替代文本",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.alt,onChange:e=>r("alt",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"图片链接",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.href,onChange:e=>r("href",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"图片宽度",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.width,onChange:e=>r("width",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"图片高度",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.height,onChange:e=>r("height",e.target.value)})})]})},defaultOptions:{props:{src:"https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png",alt:"",href:"",width:"100%",height:"auto"}}},{group:"基础组件",key:"b-button",label:"按钮",icon:"icon-button",component:e=>{let{id:t,text:n="按钮",type:r="middle",icon:i,size:a,block:o=!1,shape:s="default",ghost:l=!1,item:u,style:c,className:d}=e,{handleCallback:h}=(0,eh.useContext)(eg),{handleEvent:p}=mo(u),f="danger"===r,m="string"==typeof i?i?(0,ed.jsx)(tt,{type:i}):void 0:i;return(0,ed.jsx)(tn.Button,{id:t,type:f?"default":r,icon:m,size:a,block:o,shape:["round","circle"].includes(s)?s:void 0,ghost:l,danger:f,onClick:()=>{h(u,!1,(e,t)=>{console.log("点击回调:",{target:e,data:t})}),p("click")},style:c,className:d,children:n})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"文本",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.text,onChange:e=>r("text",e.target.value),placeholder:"请输入按钮文本"})}),(0,ed.jsx)(tn.Form.Item,{label:"图标",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.icon,onChange:e=>r("icon",e.target.value),placeholder:"请输入按钮图标(antdv 1.7.8)"})}),(0,ed.jsx)(tn.Form.Item,{label:"类型",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.type,onChange:e=>r("type",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(tn.Radio.Button,{value:"link",children:"链接"}),(0,ed.jsx)(tn.Radio.Button,{value:"dashed",children:"虚线"}),(0,ed.jsx)(tn.Radio.Button,{value:"text",children:"文本"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"形状",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.shape,onChange:e=>r("shape",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"round",children:"圆角"}),(0,ed.jsx)(tn.Radio.Button,{value:"circle",children:"圆形"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"块级",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.block,onChange:e=>r("block",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"幽灵",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.ghost,onChange:e=>r("ghost",e)})})]})},defaultOptions:{props:{type:"primary",size:"default",shape:"default",block:!1,ghost:!1,text:"按钮文本",icon:""},cascadeIds:[],events:[]},events:[{name:"点击",handler:"click"}]},{group:"基础组件",key:"b-page-header",label:"页面标题",icon:"icon-page-header",component:e=>{let{id:t,title:n,subTitle:r,item:i,ancestors:a,style:o={},className:s}=e,l=(0,eh.useMemo)(()=>!i.children||Array.isArray(i.children)||"object"!=typeof i.children?null:i.children.extra||[],[i]),[u,c]=(0,eh.useState)(l||[]);return(0,eh.useEffect)(()=>{c(l||[])},[l]),(0,ed.jsxs)(ns,{id:t,style:{...o},className:s,children:[(0,ed.jsxs)("div",{className:"title",children:[(0,ed.jsx)("span",{className:"main",children:n}),r&&(0,ed.jsx)("span",{className:"sub",children:r})]}),(0,ed.jsx)("div",{children:(0,ed.jsx)(tm,{list:u,ancestors:[...a,i],onListChange:e=>{let t=[...e];i.children.extra=t,c(t)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{layout:"vertical",children:[(0,ed.jsx)(tn.Form.Item,{label:"标题",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.title,onChange:e=>r("title",e.target.value),placeholder:"请输入标题"})}),(0,ed.jsx)(tn.Form.Item,{label:"副标题",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.subTitle,onChange:e=>r("subTitle",e.target.value),placeholder:"请输入副标题"})})]})},defaultOptions:{props:{title:"标题",subTitle:"副标题"},children:{extra:[]}}},{group:"基础组件",key:"b-table",label:"数据表格",icon:"icon-table",component:e=>{let{id:t,item:n,dataSource:r=[],columns:i=[],pageSize:a=10,bordered:o=!0,size:s,showHeader:l=!0,style:u={},className:c}=e,{initCallback:d}=(0,eh.useContext)(eg),h=!!a&&!(a<=r.length)&&{total:r.length,pageSize:a,size:s,showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!0,pageSizeOptions:["10","20","30","40"],showTotal:(e,t)=>`共 ${e} 条记录,显示第 ${t[0]}-${t[1]} 条`},p=i.map(e=>({...e,render:e.customRender&&("string"!=typeof e.customRender||""!==e.customRender.trim())?(t,n,r)=>Function("console","Math","Date","Array","Object","String","Number","Boolean","text","record","index",`
|
|
1173
1173
|
"use strict";
|
|
1174
1174
|
const window = undefined;
|
|
1175
1175
|
const document = undefined;
|
|
@@ -1179,7 +1179,7 @@
|
|
|
1179
1179
|
const module = undefined;
|
|
1180
1180
|
const exports = undefined;
|
|
1181
1181
|
${e.customRender}
|
|
1182
|
-
`)(console,Math,Date,Array,Object,String,Number,Boolean,t,n,r):e.render})),f=()=>{console.log("callback table")};return(0,eh.useEffect)(()=>{d({id:n.id,callback:f})},[]),(0,ed.jsx)(tn.Table,{id:t,dataSource:r,columns:p,pagination:h,bordered:o,size:s,showHeader:"boolean"!=typeof l||l,rowKey:(e,t)=>String(t),style:{padding:1,...u},className:c})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=(e,n)=>{let i=[...t.columns||[]];i[e]={...i[e],...n},r("columns",i)},[a,o]=(0,eh.useState)(!1),[s,l]=(0,eh.useState)(null),u=null!=s&&t.columns[s]?t.columns[s]:{title:"",dataIndex:"",width:"",align:"left",ellipsis:!1},c=[{title:"列名",dataIndex:"title"},{title:"数据索引",dataIndex:"dataIndex"},{title:"操作",width:80,align:"center",render:(e,n,i)=>(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{l(i),o(!0)},children:(0,ed.jsx)(e7.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e;(e=[...t.columns||[]]).splice(i,1),r("columns",e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})]})}];return(0,ed.jsxs)("div",{children:[(0,ed.jsxs)(tn.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"边框",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.bordered,onChange:e=>r("bordered",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"显示表头",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.showHeader,onChange:e=>r("showHeader",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"分页大小",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.pageSize,onChange:e=>r("pageSize",e)})})]}),(0,ed.jsx)(tn.Divider,{children:"表格列设置"}),(0,ed.jsx)(tn.Table,{size:"small",dataSource:t.columns,rowKey:(e,t)=>String(t),columns:c,pagination:!1,bordered:!0}),(0,ed.jsx)(tn.Button,{size:"small",onClick:()=>{r("columns",[...t.columns||[],{title:"",dataIndex:"",width:"",align:"left",ellipsis:!1}])},block:!0,children:"添加列"}),(0,ed.jsx)(tn.Modal,{title:"编辑列",open:a,footer:null,width:400,onCancel:()=>o(!1),children:(0,ed.jsx)(tn.Form,{layout:"vertical",children:(0,ed.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"列名",children:(0,ed.jsx)(tn.Input,{value:u.title,onChange:e=>i(s,{title:e.target.value})})}),(0,ed.jsx)(tn.Form.Item,{label:"数据索引",children:(0,ed.jsx)(tn.Input,{value:u.dataIndex,onChange:e=>i(s,{dataIndex:e.target.value})})}),(0,ed.jsx)(tn.Form.Item,{label:"宽度",children:(0,ed.jsx)(tn.Input,{value:u.width,onChange:e=>i(s,{width:e.target.value})})}),(0,ed.jsx)(tn.Form.Item,{label:"对齐",children:(0,ed.jsxs)(tn.Radio.Group,{value:u.align,onChange:e=>i(s,{align:e.target.value}),children:[(0,ed.jsx)(tn.Radio.Button,{value:"left",children:(0,ed.jsx)(e7.AlignLeftOutlined,{})}),(0,ed.jsx)(tn.Radio.Button,{value:"center",children:(0,ed.jsx)(e7.AlignCenterOutlined,{})}),(0,ed.jsx)(tn.Radio.Button,{value:"right",children:(0,ed.jsx)(e7.AlignRightOutlined,{})})]})}),(0,ed.jsx)(tn.Form.Item,{label:"省略",children:(0,ed.jsx)(tn.Switch,{checked:!!u.ellipsis,onChange:e=>i(s,{ellipsis:e})})})]})})})]})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:null},props:{size:"default",bordered:!0,showHeader:!0,pageSize:10,dataSource:[{name:"苹果",count:12},{name:"华为",count:803},{name:"OPPO",count:654},{name:"vivo",count:719}],columns:[{title:"品牌",dataIndex:"name"},{title:"日销量(件)",dataIndex:"count"}]}}},{group:"基础组件",key:"b-list",label:"列表",icon:"icon-unordered-list",component:e=>{let{id:t,pageSize:n=10,bordered:r=!0,size:i="default",itemLayout:a="horizontal",item:o,split:s=!0,style:l={},className:u}=e,{initCallback:c}=(0,eh.useContext)(eg),[d,h]=(0,eh.useState)(0),p=nl({item:o,signal:d}),f=(0,eh.useMemo)(()=>p||[],[p]),m=(0,eh.useMemo)(()=>!!n&&!(n<=f.length)&&{total:f.length,pageSize:n,size:"default"===i?void 0:i,showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!0,pageSizeOptions:["10","20","30","40"],showTotal:(e,t)=>`共 ${e} 条记录,显示第 ${t[0]}-${t[1]} 条`},[n,f.length,i]),g=["p-list",a?`p-list--${a}`:void 0,i?`p-list--${i}`:void 0,s?"p-list--split":void 0,r?"p-list--bordered":void 0,u],v=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e&&h(e=>e+1),{target:o,data:p}};return(0,eh.useEffect)(()=>{c({id:o.id,callback:v})},[]),(0,ed.jsxs)("div",{id:t,style:{display:"flex",flexDirection:"column",...l},className:g.filter(Boolean).join(" "),children:[(0,ed.jsx)(nv,{list:f,split:s,bordered:r,size:i,itemLayout:a}),m&&(0,ed.jsx)(tn.Pagination,{...m})]})},formComponent:e=>{let{model:t,onChange:n}=e,[r]=tn.Form.useForm();return(0,eh.useEffect)(()=>{r.setFieldsValue({size:t.size||"default",itemLayout:t.itemLayout||"horizontal",bordered:t.bordered??!1,split:t.split??!0,pageSize:t.pageSize||10})},[t,r]),(0,ed.jsxs)(tn.Form,{form:r,labelCol:{span:12},wrapperCol:{span:12},onValuesChange:e=>{null==n||n({...t,...e})},children:[(0,ed.jsx)(tn.Form.Item,{label:"大小",name:"size",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",buttonStyle:"solid",children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"布局",name:"itemLayout",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",buttonStyle:"solid",children:[(0,ed.jsx)(tn.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(tn.Radio.Button,{value:"vertical",children:"垂直"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"边框",name:"bordered",valuePropName:"checked",children:(0,ed.jsx)(tn.Switch,{size:"small"})}),(0,ed.jsx)(tn.Form.Item,{label:"分割线",name:"split",valuePropName:"checked",children:(0,ed.jsx)(tn.Switch,{size:"small"})}),(0,ed.jsx)(tn.Form.Item,{label:"分页大小",name:"pageSize",children:(0,ed.jsx)(tn.InputNumber,{size:"small"})})]})},defaultOptions:{datasource:{source:"custom",custom:"[]"},props:{size:"default",itemLayout:"horizontal",bordered:!0,split:!0,pageSize:10}}},{group:"基础组件",key:"b-html",label:"HTML",icon:"icon-html",component:e=>{let{id:t,template:n="",item:r,style:i,className:a,classNames:o=[]}=e,{initCallback:s}=(0,eh.useContext)(eg),[l,u]=(0,eh.useState)(0),c=nl({item:r,signal:l}),d=(0,eh.useMemo)(()=>Object.keys(c||{}),[c]),h=(0,eh.useMemo)(()=>d.map(e=>null==c?void 0:c[e]),[d,c]),p=(0,eh.useMemo)(()=>(n||"").replace(
|
|
1182
|
+
`)(console,Math,Date,Array,Object,String,Number,Boolean,t,n,r):e.render})),f=()=>{console.log("callback table")};return(0,eh.useEffect)(()=>{d({id:n.id,callback:f})},[]),(0,ed.jsx)(tn.Table,{id:t,dataSource:r,columns:p,pagination:h,bordered:o,size:s,showHeader:"boolean"!=typeof l||l,rowKey:(e,t)=>String(t),style:{padding:1,...u},className:c})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=(e,n)=>{let i=[...t.columns||[]];i[e]={...i[e],...n},r("columns",i)},[a,o]=(0,eh.useState)(!1),[s,l]=(0,eh.useState)(null),u=null!=s&&t.columns[s]?t.columns[s]:{title:"",dataIndex:"",width:"",align:"left",ellipsis:!1},c=[{title:"列名",dataIndex:"title"},{title:"数据索引",dataIndex:"dataIndex"},{title:"操作",width:80,align:"center",render:(e,n,i)=>(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)("a",{onClick:()=>{l(i),o(!0)},children:(0,ed.jsx)(e7.EditOutlined,{})}),(0,ed.jsx)("a",{onClick:()=>{let e;(e=[...t.columns||[]]).splice(i,1),r("columns",e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})]})}];return(0,ed.jsxs)("div",{children:[(0,ed.jsxs)(tn.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"边框",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.bordered,onChange:e=>r("bordered",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"显示表头",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.showHeader,onChange:e=>r("showHeader",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"分页大小",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.pageSize,onChange:e=>r("pageSize",e)})})]}),(0,ed.jsx)(tn.Divider,{children:"表格列设置"}),(0,ed.jsx)(tn.Table,{size:"small",dataSource:t.columns,rowKey:(e,t)=>String(t),columns:c,pagination:!1,bordered:!0}),(0,ed.jsx)(tn.Button,{size:"small",onClick:()=>{r("columns",[...t.columns||[],{title:"",dataIndex:"",width:"",align:"left",ellipsis:!1}])},block:!0,children:"添加列"}),(0,ed.jsx)(tn.Modal,{title:"编辑列",open:a,footer:null,width:400,onCancel:()=>o(!1),children:(0,ed.jsx)(tn.Form,{layout:"vertical",children:(0,ed.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"列名",children:(0,ed.jsx)(tn.Input,{value:u.title,onChange:e=>i(s,{title:e.target.value})})}),(0,ed.jsx)(tn.Form.Item,{label:"数据索引",children:(0,ed.jsx)(tn.Input,{value:u.dataIndex,onChange:e=>i(s,{dataIndex:e.target.value})})}),(0,ed.jsx)(tn.Form.Item,{label:"宽度",children:(0,ed.jsx)(tn.Input,{value:u.width,onChange:e=>i(s,{width:e.target.value})})}),(0,ed.jsx)(tn.Form.Item,{label:"对齐",children:(0,ed.jsxs)(tn.Radio.Group,{value:u.align,onChange:e=>i(s,{align:e.target.value}),children:[(0,ed.jsx)(tn.Radio.Button,{value:"left",children:(0,ed.jsx)(e7.AlignLeftOutlined,{})}),(0,ed.jsx)(tn.Radio.Button,{value:"center",children:(0,ed.jsx)(e7.AlignCenterOutlined,{})}),(0,ed.jsx)(tn.Radio.Button,{value:"right",children:(0,ed.jsx)(e7.AlignRightOutlined,{})})]})}),(0,ed.jsx)(tn.Form.Item,{label:"省略",children:(0,ed.jsx)(tn.Switch,{checked:!!u.ellipsis,onChange:e=>i(s,{ellipsis:e})})})]})})})]})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:null},props:{size:"default",bordered:!0,showHeader:!0,pageSize:10,dataSource:[{name:"苹果",count:12},{name:"华为",count:803},{name:"OPPO",count:654},{name:"vivo",count:719}],columns:[{title:"品牌",dataIndex:"name"},{title:"日销量(件)",dataIndex:"count"}]}}},{group:"基础组件",key:"b-list",label:"列表",icon:"icon-unordered-list",component:e=>{let{id:t,pageSize:n=10,bordered:r=!0,size:i="default",itemLayout:a="horizontal",item:o,split:s=!0,style:l={},className:u}=e,{initCallback:c}=(0,eh.useContext)(eg),[d,h]=(0,eh.useState)(0),p=nl({item:o,signal:d}),f=(0,eh.useMemo)(()=>p||[],[p]),m=(0,eh.useMemo)(()=>!!n&&!(n<=f.length)&&{total:f.length,pageSize:n,size:"default"===i?void 0:i,showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!0,pageSizeOptions:["10","20","30","40"],showTotal:(e,t)=>`共 ${e} 条记录,显示第 ${t[0]}-${t[1]} 条`},[n,f.length,i]),g=["p-list",a?`p-list--${a}`:void 0,i?`p-list--${i}`:void 0,s?"p-list--split":void 0,r?"p-list--bordered":void 0,u],v=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e&&h(e=>e+1),{target:o,data:p}};return(0,eh.useEffect)(()=>{c({id:o.id,callback:v})},[]),(0,ed.jsxs)("div",{id:t,style:{display:"flex",flexDirection:"column",...l},className:g.filter(Boolean).join(" "),children:[(0,ed.jsx)(nv,{list:f,split:s,bordered:r,size:i,itemLayout:a}),m&&(0,ed.jsx)(tn.Pagination,{...m})]})},formComponent:e=>{let{model:t,onChange:n}=e,[r]=tn.Form.useForm();return(0,eh.useEffect)(()=>{r.setFieldsValue({size:t.size||"default",itemLayout:t.itemLayout||"horizontal",bordered:t.bordered??!1,split:t.split??!0,pageSize:t.pageSize||10})},[t,r]),(0,ed.jsxs)(tn.Form,{form:r,labelCol:{span:12},wrapperCol:{span:12},onValuesChange:e=>{null==n||n({...t,...e})},children:[(0,ed.jsx)(tn.Form.Item,{label:"大小",name:"size",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",buttonStyle:"solid",children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"布局",name:"itemLayout",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",buttonStyle:"solid",children:[(0,ed.jsx)(tn.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(tn.Radio.Button,{value:"vertical",children:"垂直"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"边框",name:"bordered",valuePropName:"checked",children:(0,ed.jsx)(tn.Switch,{size:"small"})}),(0,ed.jsx)(tn.Form.Item,{label:"分割线",name:"split",valuePropName:"checked",children:(0,ed.jsx)(tn.Switch,{size:"small"})}),(0,ed.jsx)(tn.Form.Item,{label:"分页大小",name:"pageSize",children:(0,ed.jsx)(tn.InputNumber,{size:"small"})})]})},defaultOptions:{datasource:{source:"custom",custom:"[]"},props:{size:"default",itemLayout:"horizontal",bordered:!0,split:!0,pageSize:10}}},{group:"基础组件",key:"b-html",label:"HTML",icon:"icon-html",component:e=>{let{id:t,template:n="",item:r,style:i,className:a,classNames:o=[]}=e,{initCallback:s}=(0,eh.useContext)(eg),[l,u]=(0,eh.useState)(0),c=nl({item:r,signal:l}),d=(0,eh.useMemo)(()=>Object.keys(c||{}),[c]),h=(0,eh.useMemo)(()=>d.map(e=>null==c?void 0:c[e]),[d,c]),p=(0,eh.useMemo)(()=>(n||"").replace(/{\s*{\s*([^#]+)\s*}\s*}/g,(e,t)=>{try{return Function(...d,`
|
|
1183
1183
|
"use strict";
|
|
1184
1184
|
const window = undefined;
|
|
1185
1185
|
const document = undefined;
|
|
@@ -1189,7 +1189,7 @@
|
|
|
1189
1189
|
const module = undefined;
|
|
1190
1190
|
const exports = undefined;
|
|
1191
1191
|
return ${t};
|
|
1192
|
-
`)(...h)}catch{return""}}),[n,h]),f=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e&&u(e=>e+1),{target:r,data:c}};return(0,eh.useEffect)(()=>{s({id:r.id,callback:f})},[]),(0,ed.jsx)("div",{id:t,style:i,className:(o||[]).join(" ")+" "+a,dangerouslySetInnerHTML:{__html:p}})},formComponent:e=>{let{model:t,onChange:n}=e,r=(0,eh.useRef)(null),i=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsx)("div",{children:(0,ed.jsxs)(tn.Form,{layout:"vertical",children:[(0,ed.jsx)(tn.Form.Item,{label:"类名",children:(0,ed.jsx)(tn.Select,{size:"small",value:t.classNames,mode:"tags",onChange:e=>i("classNames",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["模板",(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=r.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tt,{type:"icon-formate"})," 格式化"]})]}),className:"ant-form-item-label-space",children:(0,ed.jsx)("div",{style:{border:"1px solid #d9d9d9",borderRadius:4,textAlign:"left"},children:(0,ed.jsx)(to(),{onMount:e=>{r.current={editor:e}},height:"300px",defaultLanguage:"html",value:t.template,onChange:e=>i("template",e||""),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}})})})]})})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'{"name": "Confucius"}'},props:{template:"<div>{{name}}, welcome to the world of programming.</div>"}}},{group:"基础组件",key:"b-echarts",label:"图表",icon:"icon-echarts",component:e=>{let{id:t,script:n="",item:r,height:i=400,style:a,className:o}=e,{initCallback:s}=(0,eh.useContext)(eg),l=(0,eh.useRef)(null),[u,c]=(0,eh.useState)(null),[d,h]=(0,eh.useState)(0),p=nl({item:r,signal:d}),{handleEvent:f}=
|
|
1192
|
+
`)(...h)}catch{return""}}),[n,h]),f=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e&&u(e=>e+1),{target:r,data:c}};return(0,eh.useEffect)(()=>{s({id:r.id,callback:f})},[]),(0,ed.jsx)("div",{id:t,style:i,className:(o||[]).join(" ")+" "+a,dangerouslySetInnerHTML:{__html:p}})},formComponent:e=>{let{model:t,onChange:n}=e,r=(0,eh.useRef)(null),i=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsx)("div",{children:(0,ed.jsxs)(tn.Form,{layout:"vertical",children:[(0,ed.jsx)(tn.Form.Item,{label:"类名",children:(0,ed.jsx)(tn.Select,{size:"small",value:t.classNames,mode:"tags",onChange:e=>i("classNames",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["模板",(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=r.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tt,{type:"icon-formate"})," 格式化"]})]}),className:"ant-form-item-label-space",children:(0,ed.jsx)("div",{style:{border:"1px solid #d9d9d9",borderRadius:4,textAlign:"left"},children:(0,ed.jsx)(to(),{onMount:e=>{r.current={editor:e}},height:"300px",defaultLanguage:"html",value:t.template,onChange:e=>i("template",e||""),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}})})})]})})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'{"name": "Confucius"}'},props:{template:"<div>{{name}}, welcome to the world of programming.</div>"}}},{group:"基础组件",key:"b-echarts",label:"图表",icon:"icon-echarts",component:e=>{let{id:t,script:n="",item:r,height:i=400,style:a,className:o}=e,{initCallback:s}=(0,eh.useContext)(eg),l=(0,eh.useRef)(null),[u,c]=(0,eh.useState)(null),[d,h]=(0,eh.useState)(0),p=nl({item:r,signal:d}),{handleEvent:f}=mo(r),m=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return arguments.length>1&&arguments[1],e&&h(e=>e+1),{target:r,data:p}};return(0,eh.useEffect)(()=>{let e=(e=>{try{return JSON.parse(e)}catch(t){try{return Function("echarts","console","Math","Date","Array","Object","String","Number","Boolean","data",`
|
|
1193
1193
|
"use strict";
|
|
1194
1194
|
const window = undefined;
|
|
1195
1195
|
const document = undefined;
|
|
@@ -1205,4 +1205,4 @@ return {
|
|
|
1205
1205
|
yAxis: { type: 'value' },
|
|
1206
1206
|
series: [{ data: data.map(i => i.value), type: 'line' }]
|
|
1207
1207
|
}
|
|
1208
|
-
`},events:[]},events:[{name:"点击",handler:"click"},{name:"双击点击",handler:"dblclick"},{name:"选中变化",handler:"selectchanged"}]},{group:"表单组件",key:"b-input",label:"输入框",icon:"icon-form-input",component:e=>{let{id:t,var:n="",placeholder:r="",prefix:i,suffix:a,size:o,allowClear:s=!1,search:l=!1,item:u,value:c,onChange:d,onSearch:h,style:p={},className:f}=e,{handleCallback:m,setVar:g}=(0,eh.useContext)(eg),v=e=>{d&&d(e),u&&n&&g(u,n,e)};return l?(0,ed.jsx)(tn.Input.Search,{id:t,value:c,size:o,allowClear:s,placeholder:r,onChange:e=>v(e.target.value),onSearch:()=>{h&&h(c||""),m(u)},style:{...p},className:f}):(0,ed.jsx)(tn.Input,{id:t,value:c,size:o,allowClear:s,placeholder:r,prefix:"string"==typeof i?void 0:i,suffix:"string"==typeof a?void 0:a,onChange:e=>v(e.target.value),style:{...p},className:f})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"搜索框",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.search,onChange:e=>r("search",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"占位符",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.placeholder,onChange:e=>r("placeholder",e.target.value),placeholder:"请输入占位符"})}),!t.search&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(tn.Form.Item,{label:"前缀",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.prefix,onChange:e=>r("prefix",e.target.value),placeholder:"请输入前缀"})}),(0,ed.jsx)(tn.Form.Item,{label:"后缀",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.suffix,onChange:e=>r("suffix",e.target.value),placeholder:"请输入后缀"})})]}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"清除图标",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>r("allowClear",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,search:!1,prefix:"",suffix:"",placeholder:"请输入"},cascadeIds:[]}},{group:"表单组件",key:"b-input-number",label:"数字输入框",icon:"icon-form-input-number",component:e=>{let{id:t,var:n="",value:r,size:i,placeholder:a="请输入",min:o=0,max:s=Number.MAX_SAFE_INTEGER,step:l=1,precision:u=0,item:c,onChange:d,style:h={},className:p}=e,{handleCallback:f,setVar:m}=(0,eh.useContext)(eg);return(0,ed.jsx)(tn.InputNumber,{id:t,value:r,placeholder:a,size:i,min:o,max:s,step:l,precision:u,onChange:e=>{var t;return t=e??void 0,void(d&&d(t),c&&n&&m(c,n,t),f(c))},style:{width:"100%",...h},className:p})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"最小值",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.min,onChange:e=>r("min",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"最大值",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.max,onChange:e=>r("max",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"步长",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.step,onChange:e=>r("step",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,prefix:"",suffix:"",placeholder:"请输入",step:1,min:0,max:100,precision:0},cascadeIds:[]}},{group:"表单组件",key:"b-select",label:"选择框",icon:"icon-form-select",component:e=>{let{id:t,var:n="",size:r,placeholder:i="请选择",allowClear:a=!1,multiple:o=!1,options:s=[],item:l,value:u,onChange:c,style:d={},className:h}=e,{handleCallback:p,setVar:f}=(0,eh.useContext)(eg);return(0,ed.jsx)(tn.Select,{id:t,value:u,size:r,placeholder:i,allowClear:a,mode:o?"multiple":void 0,options:s,onChange:e=>{c&&c(e),l&&n&&f(l,n,e),p(l)},style:{width:"100%",...d},className:h})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=(e,n,i)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:i},r("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.label,onChange:e=>i(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.value,onChange:e=>i(n,"value",e.target.value)})},{title:"操作",render:(e,n,i)=>(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(i,1),r("options",e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})})}];return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"占位符",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.placeholder,onChange:e=>r("placeholder",e.target.value),placeholder:"请输入占位符"})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"清除图标",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>r("allowClear",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"多选",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.multiple,onChange:e=>r("multiple",e)})}),(0,ed.jsxs)(tn.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(tn.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(tn.Button,{size:"small",block:!0,onClick:()=>{r("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,multiple:!1,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-capsule",label:"胶囊选择器",icon:"icon-form-capsule",component:e=>{let{id:t,var:n="",size:r="middle",options:i=[],item:a,onChange:o,style:s,className:l}=e,{handleCallback:u,setVar:c}=(0,eh.useContext)(eg);return(0,ed.jsx)("span",{id:t,children:(0,ed.jsx)(tn.Radio.Group,{id:t,size:r,buttonStyle:"solid",onChange:e=>{var t;return t=e.target.value,void(o&&o(t),a&&n&&c(a,n,t),u(a))},style:s,className:l,children:i.map(e=>(0,ed.jsx)(tn.Radio.Button,{value:e.value,children:e.label},e.value))})})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=(e,n,i)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:i},r("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.label,onChange:e=>i(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.value,onChange:e=>i(n,"value",e.target.value)})},{title:"操作",render:(e,n,i)=>(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(i,1),r("options",e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})})}];return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsxs)(tn.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(tn.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(tn.Button,{size:"small",block:!0,onClick:()=>{r("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,multiple:!1,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-checkbox",label:"复选框",icon:"icon-form-checkbox",component:e=>{let{id:t,var:n="",layout:r="horizontal",lineNumber:i=3,options:a=[],item:o,onChange:s,style:l,className:u}=e,{handleCallback:c,setVar:d}=(0,eh.useContext)(eg),h={...l,display:"grid"===r?"grid":"flex",gap:"grid"===r?void 0:"8px",flexDirection:"vertical"===r?"column":"row",gridTemplateColumns:"grid"===r?`repeat(${i}, 1fr)`:void 0};return(0,ed.jsx)("span",{id:t,children:(0,ed.jsx)(tn.Checkbox.Group,{onChange:e=>{s&&s(e),o&&n&&d(o,n,e),c(o)},style:h,className:u,children:a.map(e=>(0,ed.jsx)(tn.Checkbox,{value:e.value,children:e.label},e.value))})})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=(e,n,i)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:i},r("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.label,onChange:e=>i(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.value,onChange:e=>i(n,"value",e.target.value)})},{title:"操作",render:(e,n,i)=>(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(i,1),r("options",e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})})}];return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"布局",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.layout,onChange:e=>r("layout",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(tn.Radio.Button,{value:"vertical",children:"垂直"}),(0,ed.jsx)(tn.Radio.Button,{value:"grid",children:"网格"})]})}),"grid"===t.layout&&(0,ed.jsx)(tn.Form.Item,{label:"网格行数",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.lineNumber,onChange:e=>r("lineNumber",e),min:1,max:10})}),(0,ed.jsxs)(tn.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(tn.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(tn.Button,{size:"small",block:!0,onClick:()=>{r("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",layout:"horizontal",lineNumber:3,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-date-picker",label:"日期选择器",icon:"icon-form-date-picker",component:e=>{let{id:t,var:n="",size:r,allowClear:i=!1,type:a="date",showTime:o=!1,value:s,item:l,onChange:u,style:c={},className:d}=e,{handleCallback:h,setVar:p}=(0,eh.useContext)(eg),f=e=>{u&&u(e),l&&n&&p(l,n,e),h(l)};if("time"===a){let e="string"==typeof s&&s?mc()(s,"HH:mm"):void 0;return(0,ed.jsx)(tn.TimePicker,{id:t,value:e,format:"HH:mm",placeholder:"请选择时间",size:r,allowClear:i,onChange:e=>f(e?e.format("HH:mm"):void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}if("month"===a||"year"===a){let e="month"===a?"YYYY-MM":"YYYY",n="string"==typeof s&&s?mc()(s,e):void 0;return(0,ed.jsx)(tn.DatePicker,{id:t,picker:a,value:n,format:e,placeholder:"month"===a?"请选择月份":"请选择年份",size:r,allowClear:i,onChange:t=>f(t?t.format(e):void 0),onPanelChange:t=>f(t?t.format(e):void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}if("range"===a){let e=o?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",n=Array.isArray(s)&&s[0]?mc()(s[0],e):void 0,a=Array.isArray(s)&&s[1]?mc()(s[1],e):void 0;return(0,ed.jsx)(tn.DatePicker.RangePicker,{id:t,value:[n,a],format:e,placeholder:["开始日期","结束日期"],size:r,allowClear:i,showTime:o,onChange:t=>f(t&&t[0]&&t[1]?[t[0].format(e),t[1].format(e)]:void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}let m=o?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",g="string"==typeof s&&s?mc()(s,m):void 0;return(0,ed.jsx)(tn.DatePicker,{id:t,value:g,format:m,placeholder:"请选择日期",size:r,allowClear:i,showTime:o,style:{...(null==l?void 0:l.style)||{},...c},className:d,onChange:e=>f(e?e.format(m):void 0)})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"类型",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.type,onChange:e=>r("type",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"date",children:"日期"}),(0,ed.jsx)(tn.Radio.Button,{value:"time",children:"时间"}),(0,ed.jsx)(tn.Radio.Button,{value:"month",children:"月份"}),(0,ed.jsx)(tn.Radio.Button,{value:"year",children:"年份"}),(0,ed.jsx)(tn.Radio.Button,{value:"range",children:"日期范围"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"清除图标",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>r("allowClear",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"显示时间",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.showTime,onChange:e=>r("showTime",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,showTime:!1,type:"date"},cascadeIds:[]}},{group:"表单组件",key:"b-switch",label:"开关",icon:"icon-form-switch",component:e=>{let{id:t,var:n="",checked:r,disabled:i,size:a="default",checkedChildren:o,unCheckedChildren:s,item:l,onChange:u,style:c={},className:d}=e,{handleCallback:h,setVar:p}=(0,eh.useContext)(eg);return(0,ed.jsx)("span",{children:(0,ed.jsx)(tn.Switch,{id:t,checked:r,disabled:i,size:"small"===a?"small":void 0,checkedChildren:o,unCheckedChildren:s,onChange:e=>{u&&u(e),l&&n&&p(l,n,e),h(l)},style:c,className:d})})},formComponent:e=>{let{model:t,onChange:n}=e;return(0,ed.jsx)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>{let r;return r=e.target.value,n&&n({...t,var:r})},placeholder:"请输入变量名"})})})},defaultOptions:{props:{var:"",size:"default",checkedChildren:"开",unCheckedChildren:"关"},cascadeIds:[]}},{group:"容器组件",key:"b-space",label:"容器",icon:"icon-space",component:e=>{let{id:t,align:n="start",size:r="small",direction:i="horizontal",item:a,ancestors:o,style:s={},className:l}=e,[u,c]=(0,eh.useState)(a.children||[]),d=(0,eh.useMemo)(()=>({...s,...a.style||{},alignItems:n,flexDirection:i,gap:r}),[a,n,r,i]);return(0,eh.useEffect)(()=>{c(a.children||[])},[a.children]),(0,ed.jsx)(tm,{rootComponent:tn.Space,rootData:{id:t,style:d,className:l},item:a,ancestors:[...o,a],list:u,onListChange:e=>{a.children=e,c(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"方向",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.direction,onChange:e=>r("direction",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(tn.Radio.Button,{value:"vertical",children:"垂直"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"对齐",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.align,onChange:e=>r("align",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"start",children:"开始"}),(0,ed.jsx)(tn.Radio.Button,{value:"end",children:"结束"}),(0,ed.jsx)(tn.Radio.Button,{value:"center",children:"居中"}),(0,ed.jsx)(tn.Radio.Button,{value:"baseline",children:"基线"})]})})]})},defaultOptions:{props:{align:"flex-start",direction:"row",size:"8px"},children:[]}},{group:"容器组件",key:"b-card",label:"卡片",icon:"icon-card",component:e=>{let{id:t,bordered:n=!1,size:r="default",title:i,hoverable:a=!1,shadow:o=!0,item:s,ancestors:l,style:u,className:c}=e,d=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.title||[],[s]),[h,p]=(0,eh.useState)(d||[]),f=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.extra||[],[s]),[m,g]=(0,eh.useState)(f||[]),v=(0,eh.useMemo)(()=>s.children?Array.isArray(s.children)?s.children:"object"!=typeof s.children?null:s.children.body||[]:null,[s]),[y,x]=(0,eh.useState)(v||[]),_=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.actions||[],[s]),[b,w]=(0,eh.useState)(_||[]);return(0,eh.useEffect)(()=>{p(d||[])},[d]),(0,eh.useEffect)(()=>{g(f||[])},[f]),(0,eh.useEffect)(()=>{x(v||[])},[v]),(0,eh.useEffect)(()=>{w(_||[])},[_]),(0,ed.jsx)(tn.Card,{id:t,variant:n?"outlined":"borderless",size:r,hoverable:a,className:[o?"ant-card-shadow":void 0,c].filter(Boolean).join(" "),title:(null==i?void 0:i.length)&&!(null==d?void 0:d.length)?i:d?(0,ed.jsx)(tm,{ancestors:[...l,s],list:h,onListChange:e=>{s.children.title=e,p(e)}}):i,extra:f&&(0,ed.jsx)(tm,{ancestors:[...l,s],list:m,onListChange:e=>{s.children.extra=e,g(e)}}),actions:_&&[(0,ed.jsx)(tm,{ancestors:[...l,s],list:b,onListChange:e=>{s.children.actions=e,w(e)}})],styles:{header:{borderBottom:"none"}},style:u,children:v&&(0,ed.jsx)(tm,{ancestors:[...l,s],list:y,onListChange:e=>{Array.isArray(s.children)?s.children=e:s.children.body=e,x(e)}})})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"标题",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.title,onChange:e=>r("title",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"边框",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.bordered,onChange:e=>r("bordered",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"悬停效果",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.hoverable,onChange:e=>r("hoverable",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"阴影",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.shadow,onChange:e=>r("shadow",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"})]})})]})},defaultOptions:{props:{title:"标题",bordered:!0,hoverable:!0,shadow:!0,size:"default"},children:{title:[],extra:[],body:[],actions:[]}}},{group:"容器组件",key:"b-row",label:"栅格行",icon:"icon-grid-row",component:e=>{let{id:t,gutter:n,item:r,ancestors:i,style:a,className:o}=e,[s,l]=(0,eh.useState)(r.children||[]);return(0,eh.useEffect)(()=>{l(r.children||[])},[r.children]),(0,ed.jsx)(tm,{rootComponent:tn.Row,rootData:{id:t,gutter:n,style:r.style||a,className:r.className||o},item:r,ancestors:[...i,r],list:s,onListChange:e=>{r.children=e,l(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=t.gutter||[0,0];return(0,ed.jsxs)(tn.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"列间距",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:i[0],min:0,step:4,onChange:e=>r("gutter",[e||0,i[1]])})}),(0,ed.jsx)(tn.Form.Item,{label:"行间距",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:i[1],min:0,step:4,onChange:e=>r("gutter",[i[0],e||0])})})]})},defaultOptions:{props:{gutter:[12,12]},children:[]}},{group:"容器组件",key:"b-col",label:"栅格列",icon:"icon-grid-columns",component:e=>{let{id:t,span:n=24,xs:r,sm:i,md:a,lg:o,xl:s,xxl:l,item:u,ancestors:c,style:d={},className:h}=e,{deviceWidth:p}=(0,eh.useContext)(eg),[f,m]=(0,eh.useState)(u.children||[]),g=(0,eh.useMemo)(()=>{let e=p||1600,t=null;return e<576&&r&&(t=r),e>=576&&i&&(t=i),e>=768&&a&&(t=a),e>=992&&o&&(t=o),e>=1200&&s&&(t=s),e>=1600&&l&&(t=l),t||n},[r,i,a,o,s,l,n,p]);return(0,eh.useEffect)(()=>{m(u.children||[])},[u.children]),(0,ed.jsx)(tm,{rootComponent:tn.Col,rootData:{id:t||u.id,span:g,style:{...u.style||{},...d},className:h},item:u,ancestors:[...c,u],list:f,onListChange:e=>{u.children=e,m(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"默认列数",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.span,min:0,max:24,step:4,onChange:e=>r("span",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xs"," ",(0,ed.jsx)(tn.Tooltip,{title:"<576px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.xs,min:0,max:24,step:4,onChange:e=>r("xs",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["sm"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥576px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.sm,min:0,max:24,step:4,onChange:e=>r("sm",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["md"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥768px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.md,min:0,max:24,step:4,onChange:e=>r("md",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["lg"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥992px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.lg,min:0,max:24,step:4,onChange:e=>r("lg",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xl"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥1200px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.xl,min:0,max:24,step:4,onChange:e=>r("xl",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xxl"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥1600px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.xxl,min:0,max:24,step:4,onChange:e=>r("xxl",e||0)})})]})},defaultOptions:{props:{xs:24,sm:12,md:12,lg:6,xl:6,xxl:6,span:8},children:[]}},{group:"容器组件",key:"b-modal",label:"弹窗",icon:"icon-modal",component:e=>{let{id:t,item:n,ancestors:r,style:i={},className:a,footer:o=!0,...s}=e,{designable:l,selectedItem:u,setSelectedItem:c,initCallback:d,initMethod:h}=(0,eh.useContext)(eg),[p,f]=(0,eh.useState)(!1),[m,g]=(0,eh.useState)(n.children||[]),v=()=>{f(!0)};(0,eh.useEffect)(()=>{g(n.children||[])},[n.children]),(0,eh.useEffect)(()=>{setTimeout(()=>{(()=>{let e=document.getElementById("page-item-toolbar");if(!e)return;let t=document.getElementById(`page-item-${n.id}`);if(!t)return;let r=t.getBoundingClientRect();if(0===r.width&&0===r.height){e.style.display="none";return}e.style.display="flex";let i=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;e.style.top=`${r.top+i-22}px`,e.style.left=`${r.left+a-1}px`})()},0)},[p]),(0,eh.useEffect)(()=>{d({id:n.id,callback:v}),h({id:n.id,method:{open:()=>f(!0),close:()=>f(!1)}})},[]);let y=[a,"drag-container","page-item-component",u===n?"selected":"",l?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(ed.Fragment,{children:[l&&(0,ed.jsxs)(md,{id:p?void 0:t||n.id,onDoubleClick:()=>f(!0),className:y,children:["弹窗:",n.name,"(",n.id,")"]}),(0,ed.jsx)(tn.Modal,{...s,open:p,onCancel:()=>f(!1),getContainer:()=>l?document.querySelector(".page-canvas"):document.body,style:{...n.style||{},...i,paddingBottom:0},className:a,modalRender:e=>(0,ed.jsx)("div",{id:p?t||n.id:void 0,onClick:()=>c(n),children:e}),footer:o?void 0:null,children:(0,ed.jsx)(tm,{ancestors:[...r,n],list:m,onListChange:e=>{n.children=e,g(e)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:8},wrapperCol:{span:16},children:[(0,ed.jsx)(tn.Form.Item,{label:"标题",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.title,onChange:e=>r("title",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"宽度",children:(0,ed.jsx)(tn.InputNumber,{size:"small",style:{width:"100px"},value:t.width,suffix:"px",onChange:e=>r("width",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"确认按钮文字",children:(0,ed.jsx)(tn.Input,{size:"small",style:{width:"100px"},value:t.okText,onChange:e=>r("okText",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"取消按钮文字",children:(0,ed.jsx)(tn.Input,{size:"small",style:{width:"100px"},value:t.cancelText,onChange:e=>r("cancelText",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"确认按钮类型",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.okType,onChange:e=>r("okType",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(tn.Radio.Button,{value:"dashed",children:"虚线"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"关闭按钮",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.closable,onChange:e=>r("closable",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["ESC关闭"," ",(0,ed.jsx)(tn.Tooltip,{title:"是否支持键盘 esc 关闭",children:(0,ed.jsx)(na,{})})]}),children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.keyboard,onChange:e=>r("keyboard",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"显示遮罩",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.mask,onChange:e=>r("mask",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["遮罩关闭"," ",(0,ed.jsx)(tn.Tooltip,{title:"点击遮罩层是否允许关闭",children:(0,ed.jsx)(na,{})})]}),children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.maskClosable,onChange:e=>r("maskClosable",e)})}),(0,ed.jsx)(tn.Divider,{children:"组件方法"}),(0,ed.jsx)(tn.Descriptions,{size:"small",column:1,items:[{key:"open",label:"open",children:"打开模态框"},{key:"close",label:"close",children:"关闭模态框"}]})]})},defaultOptions:{props:{title:"标题",width:400,okType:"primary",okText:"确定",cancelText:"取消",maskClosable:!0,mask:!0,closable:!0,keyboard:!0,footer:!1},children:[]}},{group:"容器组件",key:"b-drawer",label:"抽屉",icon:"icon-drawer",component:e=>{let{id:t,item:n,ancestors:r,style:i={},className:a,footer:o=!0,okType:s="primary",okText:l="确定",cancelText:u="取消",resizable:c=!0,...d}=e,{designable:h,selectedItem:p,setSelectedItem:f,initCallback:m,initMethod:g}=(0,eh.useContext)(eg),[v,y]=(0,eh.useState)(!1),[x,_]=(0,eh.useState)(n.children||[]),[b,w]=(0,eh.useState)(d.size||400),S=()=>{y(!0)};(0,eh.useEffect)(()=>{w(d.size||400)},[d.size]),(0,eh.useEffect)(()=>{_(n.children||[])},[n.children]),(0,eh.useEffect)(()=>{setTimeout(()=>{(()=>{let e=document.getElementById("page-item-toolbar");if(!e)return;let t=document.getElementById(`page-item-${n.id}`);if(!t)return;let r=t.getBoundingClientRect();if(0===r.width&&0===r.height){e.style.display="none";return}e.style.display="flex";let i=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;e.style.top=`${r.top+i-22}px`,e.style.left=`${r.left+a-1}px`})()},0)},[v]),(0,eh.useEffect)(()=>{m({id:n.id,callback:S}),g({id:n.id,method:{open:()=>y(!0),close:()=>y(!1)}})},[]);let C=[a,"drag-container","page-item-component",p===n?"selected":"",h?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(ed.Fragment,{children:[h&&(0,ed.jsxs)(mh,{id:v?void 0:t||n.id,onDoubleClick:()=>y(!0),className:C,children:["抽屉:",n.name,"(",n.id,")"]}),(0,ed.jsx)(tn.Drawer,{...d,id:t||n.id,open:v,size:b,onClose:()=>y(!1),getContainer:()=>h?document.querySelector(".page-canvas"):document.body,push:{distance:0},style:{...n.style||{},...i,paddingBottom:0},className:a,onClick:()=>f(n),footer:o?(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)(tn.Button,{onClick:()=>y(!1),children:u}),(0,ed.jsx)(tn.Button,{type:s,children:l})]}):null,resizable:{onResize:w},children:(0,ed.jsx)(tm,{ancestors:[...r,n],list:x,onListChange:e=>{n.children=e,_(e)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:8},wrapperCol:{span:16},children:[(0,ed.jsx)(tn.Form.Item,{label:"标题",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.title,onChange:e=>r("title",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"宽度",children:(0,ed.jsx)(tn.InputNumber,{size:"small",style:{width:"100px"},value:t.size,suffix:"px",onChange:e=>r("size",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"抽屉位置",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.placement,onChange:e=>r("placement",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"top",children:"顶部"}),(0,ed.jsx)(tn.Radio.Button,{value:"bottom",children:"底部"}),(0,ed.jsx)(tn.Radio.Button,{value:"left",children:"左侧"}),(0,ed.jsx)(tn.Radio.Button,{value:"right",children:"右侧"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"确认按钮文字",children:(0,ed.jsx)(tn.Input,{size:"small",style:{width:"100px"},value:t.okText,onChange:e=>r("okText",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"取消按钮文字",children:(0,ed.jsx)(tn.Input,{size:"small",style:{width:"100px"},value:t.cancelText,onChange:e=>r("cancelText",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"确认按钮类型",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.okType,onChange:e=>r("okType",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(tn.Radio.Button,{value:"dashed",children:"虚线"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"关闭按钮",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.closable,onChange:e=>r("closable",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["ESC关闭"," ",(0,ed.jsx)(tn.Tooltip,{title:"是否支持键盘 esc 关闭",children:(0,ed.jsx)(no,{})})]}),children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.keyboard,onChange:e=>r("keyboard",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"显示遮罩",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.mask,onChange:e=>r("mask",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["遮罩关闭"," ",(0,ed.jsx)(tn.Tooltip,{title:"点击遮罩层是否允许关闭",children:(0,ed.jsx)(no,{})})]}),children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.maskClosable,onChange:e=>r("maskClosable",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"可调整大小",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.resizable,onChange:e=>r("resizable",e)})}),(0,ed.jsx)(tn.Divider,{children:"组件方法"}),(0,ed.jsx)(tn.Descriptions,{size:"small",column:1,items:[{key:"open",label:"open",children:"打开抽屉"},{key:"close",label:"close",children:"关闭抽屉"}]})]})},defaultOptions:{props:{title:"标题",size:400,placement:"right",okType:"primary",okText:"确定",cancelText:"取消",closable:!0,keyboard:!0,maskClosable:!0,mask:!0,resizable:!0,footer:!1},children:[]}}]})(),h})());
|
|
1208
|
+
`},events:[]},events:[{name:"点击",handler:"click"},{name:"双击点击",handler:"dblclick"},{name:"选中变化",handler:"selectchanged"}]},{group:"表单组件",key:"b-input",label:"输入框",icon:"icon-form-input",component:e=>{let{id:t,var:n="",placeholder:r="",prefix:i,suffix:a,size:o,allowClear:s=!1,search:l=!1,item:u,value:c,onChange:d,onSearch:h,style:p={},className:f}=e,{handleCallback:m,setVar:g}=(0,eh.useContext)(eg),v=e=>{d&&d(e),u&&n&&g(u,n,e)};return l?(0,ed.jsx)(tn.Input.Search,{id:t,value:c,size:o,allowClear:s,placeholder:r,onChange:e=>v(e.target.value),onSearch:()=>{h&&h(c||""),m(u)},style:{...p},className:f}):(0,ed.jsx)(tn.Input,{id:t,value:c,size:o,allowClear:s,placeholder:r,prefix:"string"==typeof i?void 0:i,suffix:"string"==typeof a?void 0:a,onChange:e=>v(e.target.value),style:{...p},className:f})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"搜索框",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.search,onChange:e=>r("search",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"占位符",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.placeholder,onChange:e=>r("placeholder",e.target.value),placeholder:"请输入占位符"})}),!t.search&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(tn.Form.Item,{label:"前缀",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.prefix,onChange:e=>r("prefix",e.target.value),placeholder:"请输入前缀"})}),(0,ed.jsx)(tn.Form.Item,{label:"后缀",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.suffix,onChange:e=>r("suffix",e.target.value),placeholder:"请输入后缀"})})]}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"清除图标",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>r("allowClear",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,search:!1,prefix:"",suffix:"",placeholder:"请输入"},cascadeIds:[]}},{group:"表单组件",key:"b-input-number",label:"数字输入框",icon:"icon-form-input-number",component:e=>{let{id:t,var:n="",value:r,size:i,placeholder:a="请输入",min:o=0,max:s=Number.MAX_SAFE_INTEGER,step:l=1,precision:u=0,item:c,onChange:d,style:h={},className:p}=e,{handleCallback:f,setVar:m}=(0,eh.useContext)(eg);return(0,ed.jsx)(tn.InputNumber,{id:t,value:r,placeholder:a,size:i,min:o,max:s,step:l,precision:u,onChange:e=>{var t;return t=e??void 0,void(d&&d(t),c&&n&&m(c,n,t),f(c))},style:{width:"100%",...h},className:p})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"最小值",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.min,onChange:e=>r("min",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"最大值",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.max,onChange:e=>r("max",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"步长",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.step,onChange:e=>r("step",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,prefix:"",suffix:"",placeholder:"请输入",step:1,min:0,max:100,precision:0},cascadeIds:[]}},{group:"表单组件",key:"b-select",label:"选择框",icon:"icon-form-select",component:e=>{let{id:t,var:n="",size:r,placeholder:i="请选择",allowClear:a=!1,multiple:o=!1,options:s=[],item:l,value:u,onChange:c,style:d={},className:h}=e,{handleCallback:p,setVar:f}=(0,eh.useContext)(eg);return(0,ed.jsx)(tn.Select,{id:t,value:u,size:r,placeholder:i,allowClear:a,mode:o?"multiple":void 0,options:s,onChange:e=>{c&&c(e),l&&n&&f(l,n,e),p(l)},style:{width:"100%",...d},className:h})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=(e,n,i)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:i},r("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.label,onChange:e=>i(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.value,onChange:e=>i(n,"value",e.target.value)})},{title:"操作",render:(e,n,i)=>(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(i,1),r("options",e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})})}];return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"占位符",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.placeholder,onChange:e=>r("placeholder",e.target.value),placeholder:"请输入占位符"})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"清除图标",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>r("allowClear",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"多选",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.multiple,onChange:e=>r("multiple",e)})}),(0,ed.jsxs)(tn.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(tn.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(tn.Button,{size:"small",block:!0,onClick:()=>{r("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,multiple:!1,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-capsule",label:"胶囊选择器",icon:"icon-form-capsule",component:e=>{let{id:t,var:n="",size:r="middle",options:i=[],item:a,onChange:o,style:s,className:l}=e,{handleCallback:u,setVar:c}=(0,eh.useContext)(eg);return(0,ed.jsx)("span",{id:t,children:(0,ed.jsx)(tn.Radio.Group,{id:t,size:r,buttonStyle:"solid",onChange:e=>{var t;return t=e.target.value,void(o&&o(t),a&&n&&c(a,n,t),u(a))},style:s,className:l,children:i.map(e=>(0,ed.jsx)(tn.Radio.Button,{value:e.value,children:e.label},e.value))})})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=(e,n,i)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:i},r("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.label,onChange:e=>i(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.value,onChange:e=>i(n,"value",e.target.value)})},{title:"操作",render:(e,n,i)=>(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(i,1),r("options",e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})})}];return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsxs)(tn.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(tn.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(tn.Button,{size:"small",block:!0,onClick:()=>{r("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,multiple:!1,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-checkbox",label:"复选框",icon:"icon-form-checkbox",component:e=>{let{id:t,var:n="",layout:r="horizontal",lineNumber:i=3,options:a=[],item:o,onChange:s,style:l,className:u}=e,{handleCallback:c,setVar:d}=(0,eh.useContext)(eg),h={...l,display:"grid"===r?"grid":"flex",gap:"grid"===r?void 0:"8px",flexDirection:"vertical"===r?"column":"row",gridTemplateColumns:"grid"===r?`repeat(${i}, 1fr)`:void 0};return(0,ed.jsx)("span",{id:t,children:(0,ed.jsx)(tn.Checkbox.Group,{onChange:e=>{s&&s(e),o&&n&&d(o,n,e),c(o)},style:h,className:u,children:a.map(e=>(0,ed.jsx)(tn.Checkbox,{value:e.value,children:e.label},e.value))})})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=(e,n,i)=>{let a=[...t.options||[]];a[e]={...a[e],[n]:i},r("options",a)},a=[{title:"选项标签",dataIndex:"label",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.label,onChange:e=>i(n,"label",e.target.value)})},{title:"选项值",dataIndex:"value",render:(e,t,n)=>(0,ed.jsx)(tn.Input,{size:"small",value:t.value,onChange:e=>i(n,"value",e.target.value)})},{title:"操作",render:(e,n,i)=>(0,ed.jsx)(tn.Space,{children:(0,ed.jsx)(tn.Button,{danger:!0,size:"small",onClick:()=>{let e;(e=[...t.options||[]]).splice(i,1),r("options",e)},children:(0,ed.jsx)(e7.DeleteOutlined,{})})})}];return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"布局",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.layout,onChange:e=>r("layout",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(tn.Radio.Button,{value:"vertical",children:"垂直"}),(0,ed.jsx)(tn.Radio.Button,{value:"grid",children:"网格"})]})}),"grid"===t.layout&&(0,ed.jsx)(tn.Form.Item,{label:"网格行数",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.lineNumber,onChange:e=>r("lineNumber",e),min:1,max:10})}),(0,ed.jsxs)(tn.Form.Item,{labelCol:{span:24},wrapperCol:{span:24},children:[(0,ed.jsx)(tn.Table,{size:"small",dataSource:t.options,columns:a,pagination:!1,rowKey:(e,t)=>String(t),bordered:!0}),(0,ed.jsx)(tn.Button,{size:"small",block:!0,onClick:()=>{r("options",[...t.options||[],{label:"",value:""}])},children:"添加选项"})]})]})},defaultOptions:{props:{var:"",layout:"horizontal",lineNumber:3,options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},cascadeIds:[]}},{group:"表单组件",key:"b-date-picker",label:"日期选择器",icon:"icon-form-date-picker",component:e=>{let{id:t,var:n="",size:r,allowClear:i=!1,type:a="date",showTime:o=!1,value:s,item:l,onChange:u,style:c={},className:d}=e,{handleCallback:h,setVar:p}=(0,eh.useContext)(eg),f=e=>{u&&u(e),l&&n&&p(l,n,e),h(l)};if("time"===a){let e="string"==typeof s&&s?ml()(s,"HH:mm"):void 0;return(0,ed.jsx)(tn.TimePicker,{id:t,value:e,format:"HH:mm",placeholder:"请选择时间",size:r,allowClear:i,onChange:e=>f(e?e.format("HH:mm"):void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}if("month"===a||"year"===a){let e="month"===a?"YYYY-MM":"YYYY",n="string"==typeof s&&s?ml()(s,e):void 0;return(0,ed.jsx)(tn.DatePicker,{id:t,picker:a,value:n,format:e,placeholder:"month"===a?"请选择月份":"请选择年份",size:r,allowClear:i,onChange:t=>f(t?t.format(e):void 0),onPanelChange:t=>f(t?t.format(e):void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}if("range"===a){let e=o?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",n=Array.isArray(s)&&s[0]?ml()(s[0],e):void 0,a=Array.isArray(s)&&s[1]?ml()(s[1],e):void 0;return(0,ed.jsx)(tn.DatePicker.RangePicker,{id:t,value:[n,a],format:e,placeholder:["开始日期","结束日期"],size:r,allowClear:i,showTime:o,onChange:t=>f(t&&t[0]&&t[1]?[t[0].format(e),t[1].format(e)]:void 0),style:{...(null==l?void 0:l.style)||{},...c},className:d})}let m=o?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",g="string"==typeof s&&s?ml()(s,m):void 0;return(0,ed.jsx)(tn.DatePicker,{id:t,value:g,format:m,placeholder:"请选择日期",size:r,allowClear:i,showTime:o,style:{...(null==l?void 0:l.style)||{},...c},className:d,onChange:e=>f(e?e.format(m):void 0)})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>r("var",e.target.value),placeholder:"请输入变量名"})}),(0,ed.jsx)(tn.Form.Item,{label:"类型",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.type,onChange:e=>r("type",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"date",children:"日期"}),(0,ed.jsx)(tn.Radio.Button,{value:"time",children:"时间"}),(0,ed.jsx)(tn.Radio.Button,{value:"month",children:"月份"}),(0,ed.jsx)(tn.Radio.Button,{value:"year",children:"年份"}),(0,ed.jsx)(tn.Radio.Button,{value:"range",children:"日期范围"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"清除图标",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.allowClear,onChange:e=>r("allowClear",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"显示时间",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.showTime,onChange:e=>r("showTime",e)})})]})},defaultOptions:{props:{var:"",size:"default",allowClear:!0,showTime:!1,type:"date"},cascadeIds:[]}},{group:"表单组件",key:"b-switch",label:"开关",icon:"icon-form-switch",component:e=>{let{id:t,var:n="",checked:r,disabled:i,size:a="default",checkedChildren:o,unCheckedChildren:s,item:l,onChange:u,style:c={},className:d}=e,{handleCallback:h,setVar:p}=(0,eh.useContext)(eg);return(0,ed.jsx)("span",{children:(0,ed.jsx)(tn.Switch,{id:t,checked:r,disabled:i,size:"small"===a?"small":void 0,checkedChildren:o,unCheckedChildren:s,onChange:e=>{u&&u(e),l&&n&&p(l,n,e),h(l)},style:c,className:d})})},formComponent:e=>{let{model:t,onChange:n}=e;return(0,ed.jsx)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(tn.Form.Item,{label:"变量名",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.var,onChange:e=>{let r;return r=e.target.value,n&&n({...t,var:r})},placeholder:"请输入变量名"})})})},defaultOptions:{props:{var:"",size:"default",checkedChildren:"开",unCheckedChildren:"关"},cascadeIds:[]}},{group:"容器组件",key:"b-space",label:"容器",icon:"icon-space",component:e=>{let{id:t,align:n="start",size:r="small",direction:i="horizontal",item:a,ancestors:o,style:s={},className:l}=e,[u,c]=(0,eh.useState)(a.children||[]),d=(0,eh.useMemo)(()=>({...s,...a.style||{},alignItems:n,flexDirection:i,gap:r}),[a,n,r,i]);return(0,eh.useEffect)(()=>{c(a.children||[])},[a.children]),(0,ed.jsx)(tm,{rootComponent:tn.Space,rootData:{id:t,style:d,className:l},item:a,ancestors:[...o,a],list:u,onListChange:e=>{a.children=e,c(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:6},wrapperCol:{span:18},children:[(0,ed.jsx)(tn.Form.Item,{label:"方向",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.direction,onChange:e=>r("direction",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"horizontal",children:"水平"}),(0,ed.jsx)(tn.Radio.Button,{value:"vertical",children:"垂直"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"}),(0,ed.jsx)(tn.Radio.Button,{value:"middle",children:"中"}),(0,ed.jsx)(tn.Radio.Button,{value:"large",children:"大"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"对齐",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.align,onChange:e=>r("align",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"start",children:"开始"}),(0,ed.jsx)(tn.Radio.Button,{value:"end",children:"结束"}),(0,ed.jsx)(tn.Radio.Button,{value:"center",children:"居中"}),(0,ed.jsx)(tn.Radio.Button,{value:"baseline",children:"基线"})]})})]})},defaultOptions:{props:{align:"flex-start",direction:"row",size:"8px"},children:[]}},{group:"容器组件",key:"b-card",label:"卡片",icon:"icon-card",component:e=>{let{id:t,bordered:n=!1,size:r="default",title:i,hoverable:a=!1,shadow:o=!0,item:s,ancestors:l,style:u,className:c}=e,d=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.title||[],[s]),[h,p]=(0,eh.useState)(d||[]),f=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.extra||[],[s]),[m,g]=(0,eh.useState)(f||[]),v=(0,eh.useMemo)(()=>s.children?Array.isArray(s.children)?s.children:"object"!=typeof s.children?null:s.children.body||[]:null,[s]),[y,x]=(0,eh.useState)(v||[]),_=(0,eh.useMemo)(()=>!s.children||Array.isArray(s.children)||"object"!=typeof s.children?null:s.children.actions||[],[s]),[b,w]=(0,eh.useState)(_||[]);return(0,eh.useEffect)(()=>{p(d||[])},[d]),(0,eh.useEffect)(()=>{g(f||[])},[f]),(0,eh.useEffect)(()=>{x(v||[])},[v]),(0,eh.useEffect)(()=>{w(_||[])},[_]),(0,ed.jsx)(tn.Card,{id:t,variant:n?"outlined":"borderless",size:r,hoverable:a,className:[o?"ant-card-shadow":void 0,c].filter(Boolean).join(" "),title:(null==i?void 0:i.length)&&!(null==d?void 0:d.length)?i:d?(0,ed.jsx)(tm,{ancestors:[...l,s],list:h,onListChange:e=>{s.children.title=e,p(e)}}):i,extra:f&&(0,ed.jsx)(tm,{ancestors:[...l,s],list:m,onListChange:e=>{s.children.extra=e,g(e)}}),actions:_&&[(0,ed.jsx)(tm,{ancestors:[...l,s],list:b,onListChange:e=>{s.children.actions=e,w(e)}})],styles:{header:{borderBottom:"none"}},style:u,children:v&&(0,ed.jsx)(tm,{ancestors:[...l,s],list:y,onListChange:e=>{Array.isArray(s.children)?s.children=e:s.children.body=e,x(e)}})})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"标题",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.title,onChange:e=>r("title",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"边框",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.bordered,onChange:e=>r("bordered",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"悬停效果",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.hoverable,onChange:e=>r("hoverable",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"阴影",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:!!t.shadow,onChange:e=>r("shadow",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"大小",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.size,onChange:e=>r("size",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"small",children:"小"})]})})]})},defaultOptions:{props:{title:"标题",bordered:!0,hoverable:!0,shadow:!0,size:"default"},children:{title:[],extra:[],body:[],actions:[]}}},{group:"容器组件",key:"b-row",label:"栅格行",icon:"icon-grid-row",component:e=>{let{id:t,gutter:n,item:r,ancestors:i,style:a,className:o}=e,[s,l]=(0,eh.useState)(r.children||[]);return(0,eh.useEffect)(()=>{l(r.children||[])},[r.children]),(0,ed.jsx)(tm,{rootComponent:tn.Row,rootData:{id:t,gutter:n,style:r.style||a,className:r.className||o},item:r,ancestors:[...i,r],list:s,onListChange:e=>{r.children=e,l(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r}),i=t.gutter||[0,0];return(0,ed.jsxs)(tn.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"列间距",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:i[0],min:0,step:4,onChange:e=>r("gutter",[e||0,i[1]])})}),(0,ed.jsx)(tn.Form.Item,{label:"行间距",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:i[1],min:0,step:4,onChange:e=>r("gutter",[i[0],e||0])})})]})},defaultOptions:{props:{gutter:[12,12]},children:[]}},{group:"容器组件",key:"b-col",label:"栅格列",icon:"icon-grid-columns",component:e=>{let{id:t,span:n=24,xs:r,sm:i,md:a,lg:o,xl:s,xxl:l,item:u,ancestors:c,style:d={},className:h}=e,{deviceWidth:p}=(0,eh.useContext)(eg),[f,m]=(0,eh.useState)(u.children||[]),g=(0,eh.useMemo)(()=>{let e=p||1600,t=null;return e<576&&r&&(t=r),e>=576&&i&&(t=i),e>=768&&a&&(t=a),e>=992&&o&&(t=o),e>=1200&&s&&(t=s),e>=1600&&l&&(t=l),t||n},[r,i,a,o,s,l,n,p]);return(0,eh.useEffect)(()=>{m(u.children||[])},[u.children]),(0,ed.jsx)(tm,{rootComponent:tn.Col,rootData:{id:t||u.id,span:g,style:{...u.style||{},...d},className:h},item:u,ancestors:[...c,u],list:f,onListChange:e=>{u.children=e,m(e)}})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:12},wrapperCol:{span:12},children:[(0,ed.jsx)(tn.Form.Item,{label:"默认列数",children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.span,min:0,max:24,step:4,onChange:e=>r("span",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xs"," ",(0,ed.jsx)(tn.Tooltip,{title:"<576px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.xs,min:0,max:24,step:4,onChange:e=>r("xs",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["sm"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥576px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.sm,min:0,max:24,step:4,onChange:e=>r("sm",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["md"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥768px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.md,min:0,max:24,step:4,onChange:e=>r("md",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["lg"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥992px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.lg,min:0,max:24,step:4,onChange:e=>r("lg",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xl"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥1200px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.xl,min:0,max:24,step:4,onChange:e=>r("xl",e||0)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["xxl"," ",(0,ed.jsx)(tn.Tooltip,{title:"≥1600px 响应式栅格",children:(0,ed.jsx)(ni,{})})]}),children:(0,ed.jsx)(tn.InputNumber,{size:"small",value:t.xxl,min:0,max:24,step:4,onChange:e=>r("xxl",e||0)})})]})},defaultOptions:{props:{xs:24,sm:12,md:12,lg:6,xl:6,xxl:6,span:8},children:[]}},{group:"容器组件",key:"b-modal",label:"弹窗",icon:"icon-modal",component:e=>{let{id:t,item:n,ancestors:r,style:i={},className:a,footer:o=!0,...s}=e,{designable:l,selectedItem:u,setSelectedItem:c,initCallback:d,initMethod:h}=(0,eh.useContext)(eg),[p,f]=(0,eh.useState)(!1),[m,g]=(0,eh.useState)(n.children||[]),v=()=>{f(!0)};(0,eh.useEffect)(()=>{g(n.children||[])},[n.children]),(0,eh.useEffect)(()=>{setTimeout(()=>{(()=>{let e=document.getElementById("page-item-toolbar");if(!e)return;let t=document.getElementById(`page-item-${n.id}`);if(!t)return;let r=t.getBoundingClientRect();if(0===r.width&&0===r.height){e.style.display="none";return}e.style.display="flex";let i=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;e.style.top=`${r.top+i-22}px`,e.style.left=`${r.left+a-1}px`})()},0)},[p]),(0,eh.useEffect)(()=>{d({id:n.id,callback:v}),h({id:n.id,method:{open:()=>f(!0),close:()=>f(!1)}})},[]);let y=[a,"drag-container","page-item-component",u===n?"selected":"",l?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(ed.Fragment,{children:[l&&(0,ed.jsxs)(mu,{id:p?void 0:t||n.id,onDoubleClick:()=>f(!0),className:y,children:["弹窗:",n.name,"(",n.id,")"]}),(0,ed.jsx)(tn.Modal,{...s,open:p,onCancel:()=>f(!1),getContainer:()=>l?document.querySelector(".page-canvas"):document.body,style:{...n.style||{},...i,paddingBottom:0},className:a,modalRender:e=>(0,ed.jsx)("div",{id:p?t||n.id:void 0,onClick:()=>c(n),children:e}),footer:o?void 0:null,children:(0,ed.jsx)(tm,{ancestors:[...r,n],list:m,onListChange:e=>{n.children=e,g(e)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:8},wrapperCol:{span:16},children:[(0,ed.jsx)(tn.Form.Item,{label:"标题",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.title,onChange:e=>r("title",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"宽度",children:(0,ed.jsx)(tn.InputNumber,{size:"small",style:{width:"100px"},value:t.width,suffix:"px",onChange:e=>r("width",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"确认按钮文字",children:(0,ed.jsx)(tn.Input,{size:"small",style:{width:"100px"},value:t.okText,onChange:e=>r("okText",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"取消按钮文字",children:(0,ed.jsx)(tn.Input,{size:"small",style:{width:"100px"},value:t.cancelText,onChange:e=>r("cancelText",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"确认按钮类型",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.okType,onChange:e=>r("okType",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(tn.Radio.Button,{value:"dashed",children:"虚线"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"关闭按钮",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.closable,onChange:e=>r("closable",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["ESC关闭"," ",(0,ed.jsx)(tn.Tooltip,{title:"是否支持键盘 esc 关闭",children:(0,ed.jsx)(na,{})})]}),children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.keyboard,onChange:e=>r("keyboard",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"显示遮罩",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.mask,onChange:e=>r("mask",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["遮罩关闭"," ",(0,ed.jsx)(tn.Tooltip,{title:"点击遮罩层是否允许关闭",children:(0,ed.jsx)(na,{})})]}),children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.maskClosable,onChange:e=>r("maskClosable",e)})}),(0,ed.jsx)(tn.Divider,{children:"组件方法"}),(0,ed.jsx)(tn.Descriptions,{size:"small",column:1,items:[{key:"open",label:"open",children:"打开模态框"},{key:"close",label:"close",children:"关闭模态框"}]})]})},defaultOptions:{props:{title:"标题",width:400,okType:"primary",okText:"确定",cancelText:"取消",maskClosable:!0,mask:!0,closable:!0,keyboard:!0,footer:!1},children:[]}},{group:"容器组件",key:"b-drawer",label:"抽屉",icon:"icon-drawer",component:e=>{let{id:t,item:n,ancestors:r,style:i={},className:a,footer:o=!0,okType:s="primary",okText:l="确定",cancelText:u="取消",resizable:c=!0,...d}=e,{designable:h,selectedItem:p,setSelectedItem:f,initCallback:m,initMethod:g}=(0,eh.useContext)(eg),[v,y]=(0,eh.useState)(!1),[x,_]=(0,eh.useState)(n.children||[]),[b,w]=(0,eh.useState)(d.size||400),S=()=>{y(!0)};(0,eh.useEffect)(()=>{w(d.size||400)},[d.size]),(0,eh.useEffect)(()=>{_(n.children||[])},[n.children]),(0,eh.useEffect)(()=>{setTimeout(()=>{(()=>{let e=document.getElementById("page-item-toolbar");if(!e)return;let t=document.getElementById(`page-item-${n.id}`);if(!t)return;let r=t.getBoundingClientRect();if(0===r.width&&0===r.height){e.style.display="none";return}e.style.display="flex";let i=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;e.style.top=`${r.top+i-22}px`,e.style.left=`${r.left+a-1}px`})()},0)},[v]),(0,eh.useEffect)(()=>{m({id:n.id,callback:S}),g({id:n.id,method:{open:()=>y(!0),close:()=>y(!1)}})},[]);let C=[a,"drag-container","page-item-component",p===n?"selected":"",h?"designable":""].filter(Boolean).join(" ");return(0,ed.jsxs)(ed.Fragment,{children:[h&&(0,ed.jsxs)(mc,{id:v?void 0:t||n.id,onDoubleClick:()=>y(!0),className:C,children:["抽屉:",n.name,"(",n.id,")"]}),(0,ed.jsx)(tn.Drawer,{...d,id:t||n.id,open:v,size:b,onClose:()=>y(!1),getContainer:()=>h?document.querySelector(".page-canvas"):document.body,push:{distance:0},style:{...n.style||{},...i,paddingBottom:0},className:a,onClick:()=>f(n),footer:o?(0,ed.jsxs)(tn.Space,{children:[(0,ed.jsx)(tn.Button,{onClick:()=>y(!1),children:u}),(0,ed.jsx)(tn.Button,{type:s,children:l})]}):null,resizable:{onResize:w},children:(0,ed.jsx)(tm,{ancestors:[...r,n],list:x,onListChange:e=>{n.children=e,_(e)}})})]})},formComponent:e=>{let{model:t,onChange:n}=e,r=(e,r)=>n&&n({...t,[e]:r});return(0,ed.jsxs)(tn.Form,{labelCol:{span:8},wrapperCol:{span:16},children:[(0,ed.jsx)(tn.Form.Item,{label:"标题",children:(0,ed.jsx)(tn.Input,{size:"small",value:t.title,onChange:e=>r("title",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"宽度",children:(0,ed.jsx)(tn.InputNumber,{size:"small",style:{width:"100px"},value:t.size,suffix:"px",onChange:e=>r("size",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"抽屉位置",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.placement,onChange:e=>r("placement",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"top",children:"顶部"}),(0,ed.jsx)(tn.Radio.Button,{value:"bottom",children:"底部"}),(0,ed.jsx)(tn.Radio.Button,{value:"left",children:"左侧"}),(0,ed.jsx)(tn.Radio.Button,{value:"right",children:"右侧"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"确认按钮文字",children:(0,ed.jsx)(tn.Input,{size:"small",style:{width:"100px"},value:t.okText,onChange:e=>r("okText",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"取消按钮文字",children:(0,ed.jsx)(tn.Input,{size:"small",style:{width:"100px"},value:t.cancelText,onChange:e=>r("cancelText",e.target.value)})}),(0,ed.jsx)(tn.Form.Item,{label:"确认按钮类型",children:(0,ed.jsxs)(tn.Radio.Group,{size:"small",value:t.okType,onChange:e=>r("okType",e.target.value),children:[(0,ed.jsx)(tn.Radio.Button,{value:"default",children:"默认"}),(0,ed.jsx)(tn.Radio.Button,{value:"primary",children:"主要"}),(0,ed.jsx)(tn.Radio.Button,{value:"dashed",children:"虚线"})]})}),(0,ed.jsx)(tn.Form.Item,{label:"关闭按钮",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.closable,onChange:e=>r("closable",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["ESC关闭"," ",(0,ed.jsx)(tn.Tooltip,{title:"是否支持键盘 esc 关闭",children:(0,ed.jsx)(no,{})})]}),children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.keyboard,onChange:e=>r("keyboard",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"显示遮罩",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.mask,onChange:e=>r("mask",e)})}),(0,ed.jsx)(tn.Form.Item,{label:(0,ed.jsxs)(ed.Fragment,{children:["遮罩关闭"," ",(0,ed.jsx)(tn.Tooltip,{title:"点击遮罩层是否允许关闭",children:(0,ed.jsx)(no,{})})]}),children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.maskClosable,onChange:e=>r("maskClosable",e)})}),(0,ed.jsx)(tn.Form.Item,{label:"可调整大小",children:(0,ed.jsx)(tn.Switch,{size:"small",checked:t.resizable,onChange:e=>r("resizable",e)})}),(0,ed.jsx)(tn.Divider,{children:"组件方法"}),(0,ed.jsx)(tn.Descriptions,{size:"small",column:1,items:[{key:"open",label:"open",children:"打开抽屉"},{key:"close",label:"close",children:"关闭抽屉"}]})]})},defaultOptions:{props:{title:"标题",size:400,placement:"right",okType:"primary",okText:"确定",cancelText:"取消",closable:!0,keyboard:!0,maskClosable:!0,mask:!0,resizable:!0,footer:!1},children:[]}}]})(),h})());
|