vendor.js 860 KB

123456789101112131415161718192021222324252627282930313233
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{0:function(t,e){},"04f3":function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=function(t,e){if(!e)return;return clearTimeout(e.timer),new u(t,e)};var i=r(n("9523")),o=r(n("970b")),a=r(n("5bc3"));function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u=function(){function e(n,r){(0,o.default)(this,e),this.options=n,this.animation=t.createAnimation(l({},n)),this.currentStepAnimates={},this.next=0,this.$=r}return(0,a.default)(e,[{key:"_nvuePushAnimates",value:function(t,e){var n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},c.includes(t)){r.styles.transform||(r.styles.transform="");var i="";"rotate"===t&&(i="deg"),r.styles.transform+="".concat(t,"(").concat(e+i,") ")}else r.styles[t]="".concat(e);this.currentStepAnimates[this.next]=r}},{key:"_animateRun",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(r,i){nvueAnimation.transition(n,l({styles:t},e),(function(t){r()}))}))}},{key:"_nvueNextAnimate",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=t[n];if(i){var o=i.styles,a=i.config;this._animateRun(o,a).then((function(){n+=1,e._nvueNextAnimate(t,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),e}(),c=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];c.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((function(t){u.prototype[t]=function(){var e;return(e=this.animation)[t].apply(e,arguments),this}}))}).call(this,n("543d")["default"])},"050f":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.state=e.mutations=e.actions=void 0;var i=r(n("beaf"));e.state={houseData:[],houseSelectData:{houseName:"",houseId:""},homeAwaitData:{},userData:{},messData:[]};e.mutations={setHouseData:function(t,e){t.houseData=e},setHouseName:function(t,e){t.houseSelectData=e},setUserData:function(t,e){t.userData=e},setAwaitData:function(t,e){t.homeAwaitData=e},setMessData:function(t,e){t.messData=e}};var o={getHomeAwaitData:function(t,e){var n=t.commit;t.rootState;return new Promise((function(t,r){(0,i.default)("home.getAwaitData",e,"加载中").then((function(t){1==t.success&&n("setAwaitData",t.data)})).catch((function(t){r(t)}))}))},getHouseData:function(t,e){var n=t.dispatch,r=t.commit;t.rootState;return new Promise((function(t,o){(0,i.default)("home.getRoomData",e,"加载中").then((function(t){1==t.success&&t.data.length>0?(t.data.length>0&&t.data.forEach((function(t){t["text"]=t.stroomName,t["value"]=t.id})),r("setHouseName",{houseName:t.data&&t.data[0].stroomName,houseId:t.data&&t.data[0].id}),n("getHomeAwaitData",{stroomId:t.data[0].id}),r("setHouseData",t.data)):r("setHouseData",[])})).catch((function(t){o(t)}))}))},getUserData:function(t,e){var n=t.commit;t.rootState;return new Promise((function(t,r){(0,i.default)("home.getUserData",e,"加载中").then((function(e){1==e.success&&(t(e),n("setUserData",e.data.userContext))})).catch((function(t){r(t)}))}))},getMessData:function(t,e){var n=t.commit;t.rootState;return new Promise((function(t,r){(0,i.default)("home.getMessageData",e,"加载中").then((function(e){1==e.success&&(t(e),n("setMessData",e.data.records))})).catch((function(t){r(t)}))}))},getMentData:function(t,e){t.commit,t.rootState;return new Promise((function(t,n){(0,i.default)("home.menusData",e,"加载中").then((function(e){1==e.success&&t(e)})).catch((function(t){n(t)}))}))}};e.actions=o},"0676":function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},1:function(t,e){},"11a3":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dateFormat=void 0;e.dateFormat=function(t){var e=new Date(t),n=e.getFullYear(),r=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,i=e.getDate()<10?"0"+e.getDate():e.getDate(),o=(e.getHours()<10?e.getHours():e.getHours(),e.getMinutes()<10?e.getMinutes():e.getMinutes(),e.getSeconds()<10?e.getSeconds():e.getSeconds(),e.getHours()<10?"0"+e.getHours():e.getHours()),a=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes();return n+"-"+r+"-"+i+" "+o+":"+a}},"11b0":function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},2229:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={pages:[{path:"pages/mintir/index",style:{navigationBarTitleText:"数据检测",enablePullDownRefresh:!0}},{path:"pages/homeList/homeList",style:{navigationBarTitleText:"个人中心",enablePullDownRefresh:!0}}],subPackages:[{root:"subpkg",pages:[{path:"pages/home/home",style:{navigationBarTitleText:"首页"}},{path:"pages/login/index",style:{navigationBarTitleText:"登录",enablePullDownRefresh:!0}}]}],tabBar:{color:"#919191",selectedColor:"#1890FF",borderStyle:"black",backgroundColor:"#FFFFFF",height:"50px",fontSize:"10px",iconWidth:"24px",spacing:"3px",list:[{pagePath:"pages/mintir/index",text:"数据检测",iconPath:"static/home.jpg",selectedIconPath:"static/homeset.jpg"},{pagePath:"pages/homeList/homeList",text:"我的",iconPath:"static/my.jpg",selectedIconPath:"static/myset.jpg"}]},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"云流药耗",navigationBarBackgroundColor:"#90ffe4",backgroundColor:"#F8F8F8"},uniIdRouter:{},condition:{current:0,list:[{name:"",path:"",query:""}]}}},2236:function(t,e,n){var r=n("5a43");t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},2289:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.supData=e.medicament=e.CalendarList=e.Calendar=void 0;e.supData=[{value:"1",text:"01月"},{value:"2",text:"02月"},{value:"3",text:"03月"},{value:"4",text:"04月"},{value:"5",text:"05月"},{value:"6",text:"06月"},{value:"7",text:"07月"},{value:"8",text:"08月"},{value:"9",text:"09月"},{value:"10",text:"10月"},{value:"11",text:"11月"},{value:"12",text:"12月"}];e.Calendar=[{value:"Y",text:"年"},{value:"M",text:"月"},{value:"W",text:"周"},{value:"D",text:"日"}];e.medicament=[{value:"1",text:"高值"},{value:"0",text:"耗材"},{value:"2",text:"试剂"},{value:"3",text:"总务"}];e.CalendarList=[{value:"Y",text:"年"},{value:"M",text:"月"},{value:"W",text:"周"},{value:"D",text:"日"}]},"26cb":function(t,e,n){"use strict";(function(e){var n="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=function(t,e){return t.filter(e)[0]}(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=i(t[n],e)})),r}function o(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function a(t){return null!==t&&"object"===typeof t}var s=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(t,e){this._children[t]=e},s.prototype.removeChild=function(t){delete this._children[t]},s.prototype.getChild=function(t){return this._children[t]},s.prototype.hasChild=function(t){return t in this._children},s.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},s.prototype.forEachChild=function(t){o(this._children,t)},s.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},s.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},s.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(s.prototype,l);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},u.prototype.update=function(t){(function t(e,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}})([],this.root,t)},u.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new s(e,n);if(0===t.length)this.root=i;else{var a=this.get(t.slice(0,-1));a.addChild(t[t.length-1],i)}e.modules&&o(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var c;var h=function(t){var e=this;void 0===t&&(t={}),!c&&"undefined"!==typeof window&&window.Vue&&_(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=i;var l=this._modules.root.state;y(this,l,[],this._modules.root),g(this,l),n.forEach((function(t){return t(e)}));var h=void 0!==t.devtools?t.devtools:c.config.devtools;h&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},p={state:{configurable:!0}};function f(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function d(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;y(t,n,[],t._modules.root,!0),g(t,n,e)}function g(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};o(i,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:a}),c.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),c.nextTick((function(){return r.$destroy()})))}function y(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=v(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){c.set(s,l,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return v(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){var r=a+n;(function(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))})(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;(function(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"===typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))})(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;(function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}})(t,r,e,u)})),r.forEachChild((function(r,o){y(t,e,n.concat(o),r,i)}))}function v(t,e){return e.reduce((function(t,e){return t[e]}),t)}function m(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function _(t){c&&t===c||(c=t,
  2. /*!
  3. * vuex v3.6.2
  4. * (c) 2021 Evan You
  5. * @license MIT
  6. */
  7. function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c))}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(t){0},h.prototype.commit=function(t,e,n){var r=this,i=m(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},h.prototype.dispatch=function(t,e){var n=this,r=m(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},h.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},h.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return f(n,this._actionSubscribers,e)},h.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},h.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},h.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),y(this,this.state,t,this._modules.get(t),n.preserveState),g(this,this.state)},h.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=v(e.state,t.slice(0,-1));c.delete(n,t[t.length-1])})),d(this)},h.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},h.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),d(this,!0)},h.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(h.prototype,p);var x=M((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=A(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),b=M((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=A(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),w=M((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),S=M((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=A(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function k(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function M(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function A(t,e,n){var r=t._modulesNamespaceMap[n];return r}function T(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function C(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function I(){var t=new Date;return" @ "+O(t.getHours(),2)+":"+O(t.getMinutes(),2)+":"+O(t.getSeconds(),2)+"."+O(t.getMilliseconds(),3)}function O(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var P={Store:h,install:_,version:"3.6.2",mapState:x,mapMutations:b,mapGetters:w,mapActions:S,createNamespacedHelpers:function(t){return{mapState:x.bind(null,t),mapGetters:w.bind(null,t),mapMutations:b.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var h=i(t.state);"undefined"!==typeof c&&(l&&t.subscribe((function(t,a){var s=i(a);if(n(t,h,s)){var l=I(),u=o(t),p="mutation "+t.type+l;T(c,p,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),C(c)}h=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=I(),i=s(t),o="action "+t.type+r;T(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),C(c)}})))}}};t.exports=P}).call(this,n("c8ba"))},"278c":function(t,e,n){var r=n("c135"),i=n("9b42"),o=n("6613"),a=n("c240");t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"2eee":function(t,e,n){var r=n("7ec2")();t.exports=r},"31e9":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("66fd")),o=r(n("26cb"));i.default.use(o.default);var a=n("5ed8"),s={state:{},mutations:{},actions:{}};a.keys().forEach((function(t){Object.assign(s.state,a(t)["state"]),Object.assign(s.mutations,a(t)["mutations"]),Object.assign(s.actions,a(t)["actions"])}));var l=new o.default.Store(s),u=l;e.default=u},"32c0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={appid:"__UNI__D03D671"}},"36c6":function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"37dc":function(t,e,n){"use strict";(function(t,r){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.LOCALE_ZH_HANT=e.LOCALE_ZH_HANS=e.LOCALE_FR=e.LOCALE_ES=e.LOCALE_EN=e.I18n=e.Formatter=void 0,e.compileI18nJsonStr=function(t,e){var n=e.locale,r=e.locales,i=e.delimiters;if(!M(t,i))return t;S||(S=new h);var o=[];Object.keys(r).forEach((function(t){t!==n&&o.push({locale:t,values:r[t]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(T(JSON.parse(t),o,i),null,2)}catch(a){}return t},e.hasI18nJson=function t(e,n){S||(S=new h);return C(e,(function(e,r){var i=e[r];return k(i)?!!M(i,n)||void 0:t(i,n)}))},e.initVueI18n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var i=[e,t];t=i[0],e=i[1]}"string"!==typeof t&&(t=w());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var o=new x({locale:t,fallbackLocale:n,messages:e,watcher:r}),a=function(t,e){if("function"!==typeof getApp)a=function(t,e){return o.t(t,e)};else{var n=!1;a=function(t,e){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,b(r,o))),o.t(t,e)}}return a(t,e)};return{i18n:o,f:function(t,e,n){return o.f(t,e,n)},t:function(t,e){return a(t,e)},add:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(t,e,n)},watch:function(t){return o.watchLocale(t)},getLocale:function(){return o.getLocale()},setLocale:function(t){return o.setLocale(t)}}},e.isI18nStr=M,e.isString=void 0,e.normalizeLocale=_,e.parseI18nJson=function t(e,n,r){S||(S=new h);return C(e,(function(e,i){var o=e[i];k(o)?M(o,r)&&(e[i]=A(o,n,r)):t(o,n,r)})),e},e.resolveLocale=function(t){return function(e){return e?(e=_(e)||e,function(t){var e=[],n=t.split("-");while(n.length)e.push(n.join("-")),n.pop();return e}(e).find((function(e){return t.indexOf(e)>-1}))):e}};var o=i(n("278c")),a=i(n("970b")),s=i(n("5bc3")),l=i(n("7037")),u=function(t){return null!==t&&"object"===(0,l.default)(t)},c=["{","}"],h=function(){function t(){(0,a.default)(this,t),this._caches=Object.create(null)}return(0,s.default)(t,[{key:"interpolate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(!e)return[t];var r=this._caches[t];return r||(r=d(t,n),this._caches[t]=r),g(r,e)}}]),t}();e.Formatter=h;var p=/^(?:\d)+/,f=/^(?:\w)+/;function d(t,e){var n=(0,o.default)(e,2),r=n[0],i=n[1],a=[],s=0,l="";while(s<t.length){var u=t[s++];if(u===r){l&&a.push({type:"text",value:l}),l="";var c="";u=t[s++];while(void 0!==u&&u!==i)c+=u,u=t[s++];var h=u===i,d=p.test(c)?"list":h&&f.test(c)?"named":"unknown";a.push({value:c,type:d})}else l+=u}return l&&a.push({type:"text",value:l}),a}function g(t,e){var n=[],r=0,i=Array.isArray(e)?"list":u(e)?"named":"unknown";if("unknown"===i)return n;while(r<t.length){var o=t[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(e[o.value]);break;case"unknown":0;break}r++}return n}e.LOCALE_ZH_HANS="zh-Hans";e.LOCALE_ZH_HANT="zh-Hant";e.LOCALE_EN="en";e.LOCALE_FR="fr";e.LOCALE_ES="es";var y=Object.prototype.hasOwnProperty,v=function(t,e){return y.call(t,e)},m=new h;function _(t,e){if(t){if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),"chinese"===t)return"zh-Hans";if(0===t.indexOf("zh"))return t.indexOf("-hans")>-1?"zh-Hans":t.indexOf("-hant")>-1||function(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}(t,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=["en","fr","es"];e&&Object.keys(e).length>0&&(n=Object.keys(e));var r=function(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}(t,n);return r||void 0}}var x=function(){function t(e){var n=e.locale,r=e.fallbackLocale,i=e.messages,o=e.watcher,s=e.formater;(0,a.default)(this,t),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||m,this.messages=i||{},this.setLocale(n||"en"),o&&this.watchLocale(o)}return(0,s.default)(t,[{key:"setLocale",value:function(t){var e=this,n=this.locale;this.locale=_(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(t){t(e.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,n=this.watchers.push(t)-1;return function(){e.watchers.splice(n,1)}}},{key:"add",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[t];r?n?Object.assign(r,e):Object.keys(e).forEach((function(t){v(r,t)||(r[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,n){return this.formater.interpolate(t,e,n).join("")}},{key:"t",value:function(t,e,n){var r=this.message;return"string"===typeof e?(e=_(e,this.messages),e&&(r=this.messages[e])):n=e,v(r,t)?this.formater.interpolate(r[t],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}]),t}();function b(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function w(){return"undefined"!==typeof t&&t.getLocale?t.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():"en"}e.I18n=x;var S,k=function(t){return"string"===typeof t};function M(t,e){return t.indexOf(e[0])>-1}function A(t,e,n){return S.interpolate(t,e,n).join("")}function T(t,e,n){return C(t,(function(t,r){(function(t,e,n,r){var i=t[e];if(k(i)){if(M(i,r)&&(t[e]=A(i,n[0].values,r),n.length>1)){var o=t[e+"Locales"]={};n.forEach((function(t){o[t.locale]=A(i,t.values,r)}))}}else T(i,n,r)})(t,r,e,n)})),t}function C(t,e){if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(e(t,n))return!0}else if(u(t))for(var r in t)if(e(t,r))return!0;return!1}e.isString=k}).call(this,n("543d")["default"],n("c8ba"))},"3bb0":function(t){t.exports=JSON.parse('{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}')},"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})},"3c96":function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"3dae":function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.Canvas=void 0,e.dispatch=function(t,e){var n=e.x,r=e.y,i=e.wheelDelta;this.dispatch(t,{zrX:n,zrY:r,zrDelta:i,preventDefault:function(){},stopPropagation:function(){}})},e.setCanvasCreator=function(t,e){var n=e.canvas,r=e.node;t.registerPreprocessor((function(t){t&&t.series&&(t.series.length>0?t.series.forEach((function(t){t.progressive=0})):"object"===(0,o.default)(t.series)&&(t.series.progressive=0))})),t.setPlatformAPI&&t.setPlatformAPI({loadImage:n.setChart?function(t,e,n){var i=null;return r&&r.createImage?(i=r.createImage(),i.onload=e.bind(i),i.onerror=n.bind(i),i.src=t,i):(i=new h,i.onload=e.bind(i),i.onerror=n.bind(i),i.src=t,i)}:null,createCanvas:function(){return n}})};var i=r(n("448a")),o=r(n("7037")),a=r(n("970b")),s=r(n("5bc3")),l={},u=/([\d\.]+)px/,c=function(){function t(){(0,a.default)(this,t),this.__events={}}return(0,s.default)(t,[{key:"on",value:function(t,e){if(t&&e){var n=this.__events[t]||[];n.push(e),this.__events[t]=n}}},{key:"emit",value:function(t,e){var n=this;if(t.constructor===Object&&(e=t,t=e&&e.type),t){var r=this.__events[t];r&&r.length&&r.forEach((function(t){t.call(n,e)}))}}},{key:"off",value:function(t,e){var n=this.__events,r=n[t];if(r&&r.length)if(e)for(var i=0,o=r.length;i<o;i++)r[i]===e&&(r.splice(i,1),i--);else delete n[t]}}]),t}(),h=function(){function e(){(0,a.default)(this,e),this.currentSrc=null,this.naturalHeight=0,this.naturalWidth=0,this.width=0,this.height=0,this.tagName="IMG"}return(0,s.default)(e,[{key:"src",get:function(){return this.currentSrc},set:function(e){var n=this;this.currentSrc=e,t.getImageInfo({src:e,success:function(t){n.naturalWidth=n.width=t.width,n.naturalHeight=n.height=t.height,n.onload()},fail:function(){n.onerror()}})}}]),e}(),p=function(){function e(t,n,r){(0,a.default)(this,e),this.tagName="canvas",this.com=n,this.canvasId=r,this.ctx=t}return(0,s.default)(e,[{key:"width",get:function(){return this.com.offscreenWidth||0},set:function(t){this.com.offscreenWidth=t}},{key:"height",get:function(){return this.com.offscreenHeight||0},set:function(t){this.com.offscreenHeight=t}},{key:"getContext",value:function(t){return this.ctx}},{key:"getImageData",value:function(){var e=this;return new Promise((function(n,r){e.com.$nextTick((function(){t.canvasGetImageData({x:0,y:0,width:e.com.offscreenWidth,height:e.com.offscreenHeight,canvasId:e.canvasId,success:function(t){n(t)},fail:function(t){r(t)}},e.com)}))}))}}]),e}(),f=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,a.default)(this,e),l[n.canvasId]={ctx:t},this.canvasId=n.canvasId,this.chart=null,this.isNew=r,this.tagName="canvas",this.canvasNode=i,this.com=n,r||this._initStyle(t),this._initEvent(),this._ee=new c}return(0,s.default)(e,[{key:"getContext",value:function(t){if("2d"===t)return this.ctx}},{key:"setChart",value:function(t){this.chart=t}},{key:"createOffscreenCanvas",value:function(e){if(!this.children){this.com.isOffscreenCanvas=!0,this.com.offscreenWidth=e.width||300,this.com.offscreenHeight=e.height||300;var n=this.com,r=this.com.offscreenCanvasId,i=t.createCanvasContext(r,this.com);this._initStyle(i),this.children=new p(i,n,r)}return this.children}},{key:"appendChild",value:function(t){console.log("child",t)}},{key:"dispatchEvent",value:function(t,e){return"object"==(0,o.default)(t)?this._ee.emit(t.type,t):this._ee.emit(t,e),!0}},{key:"attachEvent",value:function(){}},{key:"detachEvent",value:function(){}},{key:"addEventListener",value:function(t,e){this._ee.on(t,e)}},{key:"removeEventListener",value:function(t,e){this._ee.off(t,e)}},{key:"_initCanvas",value:function(t,e){t.util.getContext=function(){return e},t.util.$override("measureText",(function(t,n){return e.font=n||"12px sans-serif",e.measureText(t,n)}))}},{key:"_initStyle",value:function(t,e){if(["fillStyle","strokeStyle","fontSize","globalAlpha","opacity","textAlign","textBaseline","shadow","lineWidth","lineCap","lineJoin","lineDash","miterLimit","font"].forEach((function(e){Object.defineProperty(t,e,{set:function(n){if("font"===e&&u.test(n)){var r=u.exec(n);t.setFontSize(r[1])}else"opacity"!==e?("fillStyle"!==e&&"strokeStyle"!==e||"none"!==n&&null!==n)&&t["set"+e.charAt(0).toUpperCase()+e.slice(1)](n):t.setGlobalAlpha(n)}})})),this.isNew||e||(t.uniDrawImage=t.drawImage,t.drawImage=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n[0]=n[0].src,t.uniDrawImage.apply(t,n)}),t.createRadialGradient||(t.createRadialGradient=function(){return t.createCircularGradient.apply(t,(0,i.default)(Array.prototype.slice.call(arguments).slice(-3)))}),t.strokeText||(t.strokeText=function(){t.fillText.apply(t,arguments)}),!t.measureText){var n=function(t){for(var e=0,n=0;n<t.length;n++)t.charCodeAt(n)>0&&t.charCodeAt(n)<128?e++:e+=2;return e};t.measureText=function(t,e){var r=12;return e&&(r=parseInt(e.match(/([\d\.]+)px/)[1])),r/=2,{width:n(t)*r}}}}},{key:"_initEvent",value:function(t){var e=this;this.event={};[{wxName:"touchStart",ecName:"mousedown"},{wxName:"touchMove",ecName:"mousemove"},{wxName:"touchEnd",ecName:"mouseup"},{wxName:"touchEnd",ecName:"click"}].forEach((function(t){e.event[t.wxName]=function(n){var r=n.touches[0];e.chart.getZr().handler.dispatch(t.ecName,{zrX:"tap"===t.wxName?r.clientX:r.x,zrY:"tap"===t.wxName?r.clientY:r.y})}}))}},{key:"width",get:function(){return this.canvasNode.width||0},set:function(t){this.canvasNode.width=t}},{key:"height",get:function(){return this.canvasNode.height||0},set:function(t){this.canvasNode.height=t}},{key:"ctx",get:function(){return l[this.canvasId]["ctx"]||null}},{key:"chart",get:function(){return l[this.canvasId]["chart"]||null},set:function(t){l[this.canvasId]["chart"]=t}}]),e}();e.Canvas=f}).call(this,n("543d")["default"])},"3e19":function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__("7037");
  8. /**
  9. * [js-md5]{@link https://github.com/emn178/js-md5}
  10. *
  11. * @namespace md5
  12. * @version 0.7.3
  13. * @author Chen, Yi-Cyuan [emn178@gmail.com]
  14. * @copyright Chen, Yi-Cyuan 2014-2017
  15. * @license MIT
  16. */
  17. (function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===("undefined"===typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"===typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===("undefined"===typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===_typeof(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var n=OUTPUT_TYPES[e];t[n]=createOutputMethod(n)}return t},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"===typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null===t||void 0===t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,n=_typeof(t);if("string"!==n){if("object"!==n)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw ERROR;e=!0}var r,i,o=0,a=t.length,s=this.blocks,l=this.buffer8;while(o<a){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),e)if(ARRAY_BUFFER)for(i=this.start;o<a&&i<64;++o)l[i++]=t[o];else for(i=this.start;o<a&&i<64;++o)s[i>>2]|=t[o]<<SHIFT[3&i++];else if(ARRAY_BUFFER)for(i=this.start;o<a&&i<64;++o)r=t.charCodeAt(o),r<128?l[i++]=r:r<2048?(l[i++]=192|r>>6,l[i++]=128|63&r):r<55296||r>=57344?(l[i++]=224|r>>12,l[i++]=128|r>>6&63,l[i++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),l[i++]=240|r>>18,l[i++]=128|r>>12&63,l[i++]=128|r>>6&63,l[i++]=128|63&r);else for(i=this.start;o<a&&i<64;++o)r=t.charCodeAt(o),r<128?s[i>>2]|=r<<SHIFT[3&i++]:r<2048?(s[i>>2]|=(192|r>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(s[i>>2]|=(224|r>>12)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),s[i>>2]|=(240|r>>18)<<SHIFT[3&i++],s[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,n,r,i,o,a=this.blocks;this.first?(t=a[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,r=(-1732584194^2004318071&t)+a[1]-117830708,r=(r<<12|r>>>20)+t<<0,n=(-271733879^r&(-271733879^t))+a[2]-1126478375,n=(n<<17|n>>>15)+r<<0,e=(t^n&(r^t))+a[3]-1316259209,e=(e<<22|e>>>10)+n<<0):(t=this.h0,e=this.h1,n=this.h2,r=this.h3,t+=(r^e&(n^r))+a[0]-680876936,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[1]-389564586,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[2]+606105819,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[3]-1044525330,e=(e<<22|e>>>10)+n<<0),t+=(r^e&(n^r))+a[4]-176418897,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[5]+1200080426,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[6]-1473231341,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[7]-45705983,e=(e<<22|e>>>10)+n<<0,t+=(r^e&(n^r))+a[8]+1770035416,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[9]-1958414417,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[10]-42063,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[11]-1990404162,e=(e<<22|e>>>10)+n<<0,t+=(r^e&(n^r))+a[12]+1804603682,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[13]-40341101,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[14]-1502002290,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[15]+1236535329,e=(e<<22|e>>>10)+n<<0,t+=(n^r&(e^n))+a[1]-165796510,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[6]-1069501632,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[11]+643717713,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[0]-373897302,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[5]-701558691,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[10]+38016083,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[15]-660478335,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[4]-405537848,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[9]+568446438,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[14]-1019803690,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[3]-187363961,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[8]+1163531501,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[13]-1444681467,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[2]-51403784,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[7]+1735328473,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[12]-1926607734,e=(e<<20|e>>>12)+n<<0,i=e^n,t+=(i^r)+a[5]-378558,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[8]-2022574463,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[11]+1839030562,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[14]-35309556,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[1]-1530992060,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[4]+1272893353,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[7]-155497632,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[10]-1094730640,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[13]+681279174,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[0]-358537222,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[3]-722521979,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[6]+76029189,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[9]-640364487,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[12]-421815835,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[15]+530742520,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[2]-995338651,e=(e<<23|e>>>9)+n<<0,t+=(n^(e|~r))+a[0]-198630844,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[7]+1126891415,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[14]-1416354905,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[5]-57434055,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[12]+1700485571,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[3]-1894986606,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[10]-1051523,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[1]-2054922799,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[8]+1873313359,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[15]-30611744,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[6]-1560198380,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[13]+1309151649,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[4]-145523070,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[11]-1120210379,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[2]+718787259,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[9]-343485551,e=(e<<21|e>>>11)+n<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,n,r="",i=this.array(),o=0;o<15;)t=i[o++],e=i[o++],n=i[o++],r+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return t=i[o],r+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"==",r};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("4362"),__webpack_require__("c8ba"),__webpack_require__("62e4")(module))},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"448a":function(t,e,n){var r=n("2236"),i=n("11b0"),o=n("6613"),a=n("0676");t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"4a4b":function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4ea4":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"543d":function(t,e,n){"use strict";(function(t,r){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.createApp=Pe,e.createComponent=He,e.createPage=ze,e.createPlugin=Ue,e.createSubpackageApp=Ve,e.default=void 0;var o,a=i(n("278c")),s=i(n("9523")),l=i(n("b17c")),u=i(n("448a")),c=i(n("7037")),h=n("37dc"),p=i(n("66fd"));function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function v(){var e,n=t.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(function(t){return decodeURIComponent(o(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(r[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}o="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!y.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o<t.length;)e=g.indexOf(t.charAt(o++))<<18|g.indexOf(t.charAt(o++))<<12|(n=g.indexOf(t.charAt(o++)))<<6|(r=g.indexOf(t.charAt(o++))),i+=64===n?String.fromCharCode(e>>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var m=Object.prototype.toString,_=Object.prototype.hasOwnProperty;function x(t){return"function"===typeof t}function b(t){return"string"===typeof t}function w(t){return"[object Object]"===m.call(t)}function S(t,e){return _.call(t,e)}function k(){}function M(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var A=/-(\w)/g,T=M((function(t){return t.replace(A,(function(t,e){return e?e.toUpperCase():""}))}));function C(t){var e={};return w(t)&&Object.keys(t).sort().forEach((function(n){e[n]=t[n]})),Object.keys(e)?e:t}var I=["invoke","success","fail","complete","returnValue"],O={},P={};function D(t,e){Object.keys(e).forEach((function(n){-1!==I.indexOf(n)&&x(e[n])&&(t[n]=function(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}(t[n],e[n]))}))}function L(t,e){t&&e&&Object.keys(e).forEach((function(n){-1!==I.indexOf(n)&&x(e[n])&&function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}(t[n],e[n])}))}function E(t,e){return function(n){return t(n,e)||n}}function R(t){return!!t&&("object"===(0,c.default)(t)||"function"===typeof t)&&"function"===typeof t.then}function N(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];if(r)r=Promise.resolve(E(o,n));else{var a=o(e,n);if(R(a)&&(r=Promise.resolve(a)),!1===a)return{then:function(){}}}}return r||{then:function(t){return t(e)}}}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(i){N(t[n],i,e).then((function(t){return x(r)&&r(t)||t}))}}})),e}function j(t,e){var n=[];Array.isArray(O.returnValue)&&n.push.apply(n,(0,u.default)(O.returnValue));var r=P[t];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,u.default)(r.returnValue)),n.forEach((function(t){e=t(e)||e})),e}function F(t){var e=Object.create(null);Object.keys(O).forEach((function(t){"returnValue"!==t&&(e[t]=O[t].slice())}));var n=P[t];return n&&Object.keys(n).forEach((function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function z(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=F(t);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=N(a.invoke,n);return s.then((function(n){return e.apply(void 0,[B(F(t),n)].concat(i))}))}return e.apply(void 0,[B(a,n)].concat(i))}return e.apply(void 0,[n].concat(i))}var H={returnValue:function(t){return R(t)?new Promise((function(e,n){t.then((function(t){t[0]?n(t[0]):e(t[1])}))})):t}},V=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,U=/^create|Manager$/,$=["createBLEConnection"],W=["createBLEConnection","createPushMessage"],G=/^on|^off/;function q(t){return U.test(t)&&-1===$.indexOf(t)}function Y(t){return V.test(t)&&-1===W.indexOf(t)}function X(t){return t.then((function(t){return[null,t]})).catch((function(t){return[t]}))}function Z(t){return!(q(t)||Y(t)||function(t){return G.test(t)&&"onPush"!==t}(t))}function K(t,e){return Z(t)&&x(e)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return x(n.success)||x(n.fail)||x(n.complete)?j(t,z.apply(void 0,[t,e,n].concat(i))):j(t,X(new Promise((function(r,o){z.apply(void 0,[t,e,Object.assign({},n,{success:r,fail:o})].concat(i))}))))}:e}Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))});var J=!1,Q=0,tt=0;var et,nt={};et=ot(t.getSystemInfoSync().language)||"en",function(){if(function(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}()){var t=Object.keys(__uniConfig.locales);t.length&&t.forEach((function(t){var e=nt[t],n=__uniConfig.locales[t];e?Object.assign(e,n):nt[t]=n}))}}();var rt=(0,h.initVueI18n)(et,{}),it=rt.t;rt.mixin={beforeCreate:function(){var t=this,e=rt.i18n.watchLocale((function(){t.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){e()}))},methods:{$$t:function(t,e){return it(t,e)}}},rt.setLocale,rt.getLocale;function ot(t,e){if(t){if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),"chinese"===t)return"zh-Hans";if(0===t.indexOf("zh"))return t.indexOf("-hans")>-1?"zh-Hans":t.indexOf("-hant")>-1||function(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}(t,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=function(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}(t,["en","fr","es"]);return n||void 0}}function at(){if(x(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return ot(t.getSystemInfoSync().language)||"en"}var st=[];"undefined"!==typeof r&&(r.getLocale=at);var lt={promiseInterceptor:H},ut=Object.freeze({__proto__:null,upx2px:function(e,n){if(0===Q&&function(){var e=t.getSystemInfoSync(),n=e.platform,r=e.pixelRatio,i=e.windowWidth;Q=i,tt=r,J="ios"===n}(),e=Number(e),0===e)return 0;var r=e/750*(n||Q);return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r&&(r=1!==tt&&J?.5:1),e<0?-r:r},getLocale:at,setLocale:function(t){var e=!!x(getApp)&&getApp();if(!e)return!1;var n=e.$vm.$locale;return n!==t&&(e.$vm.$locale=t,st.forEach((function(e){return e({locale:t})})),!0)},onLocaleChange:function(t){-1===st.indexOf(t)&&st.push(t)},addInterceptor:function(t,e){"string"===typeof t&&w(e)?D(P[t]||(P[t]={}),e):w(t)&&D(O,t)},removeInterceptor:function(t,e){"string"===typeof t?w(e)?L(P[t],e):delete P[t]:w(t)&&L(O,t)},interceptors:lt});var ct,ht={name:function(t){return"back"===t.exists&&t.delta?"navigateBack":"redirectTo"},args:function(t){if("back"===t.exists&&t.url){var e=function(t){var e=getCurrentPages(),n=e.length;while(n--){var r=e[n];if(r.$page&&r.$page.fullPath===t)return n}return-1}(t.url);if(-1!==e){var n=getCurrentPages().length-1-e;n>0&&(t.delta=n)}}}},pt={args:function(t){var e=parseInt(t.current);if(!isNaN(e)){var n=t.urls;if(Array.isArray(n)){var r=n.length;if(r)return e<0?e=0:e>=r&&(e=r-1),e>0?(t.current=n[e],t.urls=n.filter((function(t,r){return!(r<e)||t!==n[e]}))):t.current=n[0],{indicator:!1,loop:!1}}}}};function ft(e){ct=ct||t.getStorageSync("__DC_STAT_UUID"),ct||(ct=Date.now()+""+Math.floor(1e7*Math.random()),t.setStorage({key:"__DC_STAT_UUID",data:ct})),e.deviceId=ct}function dt(t){if(t.safeArea){var e=t.safeArea;t.safeAreaInsets={top:e.top,left:e.left,right:t.windowWidth-e.right,bottom:t.screenHeight-e.bottom}}}function gt(t,e){for(var n=t.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},i=Object.keys(r),o=e.toLocaleLowerCase(),a=0;a<i.length;a++){var s=i[a];if(-1!==o.indexOf(s)){n=r[s];break}}return n}function yt(t){var e=t;return e&&(e=t.toLocaleLowerCase()),e}function vt(t){return at?at():t}function mt(t){var e=t.hostName||"WeChat";return t.environment?e=t.environment:t.host&&t.host.env&&(e=t.host.env),e}var _t={returnValue:function(t){ft(t),dt(t),function(t){var e,n=t.brand,r=void 0===n?"":n,i=t.model,o=void 0===i?"":i,a=t.system,s=void 0===a?"":a,l=t.language,u=void 0===l?"":l,c=t.theme,h=t.version,p=(t.platform,t.fontSizeSetting),f=t.SDKVersion,d=t.pixelRatio,g=t.deviceOrientation,y="";y=s.split(" ")[0]||"",e=s.split(" ")[1]||"";var v=h,m=gt(t,o),_=yt(r),x=mt(t),b=g,w=d,S=f,k=u.replace(/_/g,"-"),M={appId:"__UNI__D03D671",appName:"monitor",appVersion:"1.0.0",appVersionCode:"100",appLanguage:vt(k),uniCompileVersion:"3.99",uniRuntimeVersion:"3.99",uniPlatform:"mp-weixin",deviceBrand:_,deviceModel:o,deviceType:m,devicePixelRatio:w,deviceOrientation:b,osName:y.toLocaleLowerCase(),osVersion:e,hostTheme:c,hostVersion:v,hostLanguage:k,hostName:x,hostSDKVersion:S,hostFontSizeSetting:p,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};Object.assign(t,M,{})}(t)}},xt={args:function(t){"object"===(0,c.default)(t)&&(t.alertText=t.title)}},bt={returnValue:function(t){var e=t,n=e.version,r=e.language,i=e.SDKVersion,o=e.theme,a=mt(t),s=r.replace("_","-");t=C(Object.assign(t,{appId:"__UNI__D03D671",appName:"monitor",appVersion:"1.0.0",appVersionCode:"100",appLanguage:vt(s),hostVersion:n,hostLanguage:s,hostName:a,hostSDKVersion:i,hostTheme:o}))}},wt={returnValue:function(t){var e=t,n=e.brand,r=e.model,i=gt(t,r),o=yt(n);ft(t),t=C(Object.assign(t,{deviceType:i,deviceBrand:o,deviceModel:r}))}},St={returnValue:function(t){dt(t),t=C(Object.assign(t,{windowTop:0,windowBottom:0}))}},kt={redirectTo:ht,previewImage:pt,getSystemInfo:_t,getSystemInfoSync:_t,showActionSheet:xt,getAppBaseInfo:bt,getDeviceInfo:wt,getWindowInfo:St,getAppAuthorizeSetting:{returnValue:function(t){var e=t.locationReducedAccuracy;t.locationAccuracy="unsupported",!0===e?t.locationAccuracy="reduced":!1===e&&(t.locationAccuracy="full")}},compressImage:{args:function(t){t.compressedHeight&&!t.compressHeight&&(t.compressHeight=t.compressedHeight),t.compressedWidth&&!t.compressWidth&&(t.compressWidth=t.compressedWidth)}}},Mt=["success","fail","cancel","complete"];function At(t,e,n){return function(r){return e(Ct(t,r,n))}}function Tt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(w(e)){var o=!0===i?e:{};for(var a in x(n)&&(n=n(e,o)||{}),e)if(S(n,a)){var s=n[a];x(s)&&(s=s(e[a],e,o)),s?b(s)?o[s]=e[a]:w(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(t,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==Mt.indexOf(a)?x(e[a])&&(o[a]=At(t,e[a],r)):i||(o[a]=e[a]);return o}return x(e)&&(e=At(t,e,r)),e}function Ct(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return x(kt.returnValue)&&(e=kt.returnValue(t,e)),Tt(t,e,n,{},r)}function It(e,n){if(S(kt,e)){var r=kt[e];return r?function(n,i){var o=r;x(r)&&(o=r(n)),n=Tt(e,n,o.args,o.returnValue);var a=[n];"undefined"!==typeof i&&a.push(i),x(o.name)?e=o.name(n):b(o.name)&&(e=o.name);var s=t[e].apply(t,a);return Y(e)?Ct(e,s,o.returnValue,q(e)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(e,"'."))}}return n}var Ot=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(t){Ot[t]=function(t){return function(e){var n=e.fail,r=e.complete,i={errMsg:"".concat(t,":fail method '").concat(t,"' not supported")};x(n)&&n(i),x(r)&&r(i)}}(t)}));var Pt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Dt=Object.freeze({__proto__:null,getProvider:function(t){var e=t.service,n=t.success,r=t.fail,i=t.complete,o=!1;Pt[e]?(o={errMsg:"getProvider:ok",service:e,provider:Pt[e]},x(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},x(r)&&r(o)),x(i)&&i(o)}}),Lt=function(){var t;return function(){return t||(t=new p.default),t}}();function Et(t,e,n){return t[e].apply(t,n)}var Rt,Nt,Bt,jt=Object.freeze({__proto__:null,$on:function(){return Et(Lt(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Et(Lt(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Et(Lt(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Et(Lt(),"$emit",Array.prototype.slice.call(arguments))}});function Ft(t){return function(){try{return t.apply(t,arguments)}catch(e){console.error(e)}}}function zt(t){try{return JSON.parse(t)}catch(e){}return t}var Ht=[];function Vt(t,e){Ht.forEach((function(n){n(t,e)})),Ht.length=0}var Ut=[],$t=t.getAppBaseInfo&&t.getAppBaseInfo();$t||($t=t.getSystemInfoSync());var Wt=$t?$t.host:null,Gt=Wt&&"SAAASDK"===Wt.env?t.miniapp.shareVideoMessage:t.shareVideoMessage,qt=Object.freeze({__proto__:null,shareVideoMessage:Gt,getPushClientId:function(t){w(t)||(t={});var e=function(t){var e={};for(var n in t){var r=t[n];x(r)&&(e[n]=Ft(r),delete t[n])}return e}(t),n=e.success,r=e.fail,i=e.complete,o=x(n),a=x(r),s=x(i);Promise.resolve().then((function(){"undefined"===typeof Bt&&(Bt=!1,Rt="",Nt="uniPush is not enabled"),Ht.push((function(t,e){var l;t?(l={errMsg:"getPushClientId:ok",cid:t},o&&n(l)):(l={errMsg:"getPushClientId:fail"+(e?" "+e:"")},a&&r(l)),s&&i(l)})),"undefined"!==typeof Rt&&Vt(Rt,Nt)}))},onPushMessage:function(t){-1===Ut.indexOf(t)&&Ut.push(t)},offPushMessage:function(t){if(t){var e=Ut.indexOf(t);e>-1&&Ut.splice(e,1)}else Ut.length=0},invokePushCallback:function(t){if("enabled"===t.type)Bt=!0;else if("clientId"===t.type)Rt=t.cid,Nt=t.errMsg,Vt(Rt,t.errMsg);else if("pushMsg"===t.type)for(var e={type:"receive",data:zt(t.message)},n=0;n<Ut.length;n++){var r=Ut[n];if(r(e),e.stopped)break}else"click"===t.type&&Ut.forEach((function(e){e({type:"click",data:zt(t.message)})}))}}),Yt=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Xt(t){return Behavior(t)}function Zt(){return!!this.route}function Kt(t){this.triggerEvent("__l",t)}function Jt(t){var e=t.$scope,n={};Object.defineProperty(t,"$refs",{get:function(){var t={};(function t(e,n,r){var i=e.selectAllComponents(n)||[];i.forEach((function(e){var i=e.dataset.ref;r[i]=e.$vm||ee(e),"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){t(e,n,r)}))}))})(e,".vue-ref",t);var r=e.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(e){var n=e.dataset.ref;t[n]||(t[n]=[]),t[n].push(e.$vm||ee(e))})),function(t,e){var n=(0,l.default)(Set,(0,u.default)(Object.keys(t))),r=Object.keys(e);return r.forEach((function(r){var i=t[r],o=e[r];Array.isArray(i)&&Array.isArray(o)&&i.length===o.length&&o.every((function(t){return i.includes(t)}))||(t[r]=o,n.delete(r))})),n.forEach((function(e){delete t[e]})),t}(n,t)}})}function Qt(t){var e,n=t.detail||t.value,r=n.vuePid,i=n.vueOptions;r&&(e=function t(e,n){for(var r,i=e.$children,o=i.length-1;o>=0;o--){var a=i[o];if(a.$scope._$vueId===n)return a}for(var s=i.length-1;s>=0;s--)if(r=t(i[s],n),r)return r}(this.$vm,r)),e||(e=this.$vm),i.parent=e}function te(t){return Object.defineProperty(t,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),t}function ee(t){return function(t){return null!==t&&"object"===(0,c.default)(t)}(t)&&Object.isExtensible(t)&&Object.defineProperty(t,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),t}var ne=/_(.*)_worklet_factory_/;var re=Page,ie=Component,oe=/:/g,ae=M((function(t){return T(t.replace(oe,"-"))}));function se(t){var e=t.triggerEvent,n=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.$vm||this.dataset&&this.dataset.comType)t=ae(t);else{var o=ae(t);o!==t&&e.apply(this,[o].concat(r))}return e.apply(this,[t].concat(r))};try{t.triggerEvent=n}catch(r){t._triggerEvent=n}}function le(t,e,n){var r=e[t];e[t]=function(){if(te(this),se(this),r){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.apply(this,e)}}}re.__$wrappered||(re.__$wrappered=!0,Page=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return le("onLoad",t),re(t)},Page.after=re.after,Component=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return le("created",t),ie(t)});function ue(t,e,n){e.forEach((function(e){(function t(e,n){if(!n)return!0;if(p.default.options&&Array.isArray(p.default.options[e]))return!0;if(n=n.default||n,x(n))return!!x(n.extendOptions[e])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[e]));if(x(n[e])||Array.isArray(n[e]))return!0;var r=n.mixins;return Array.isArray(r)?!!r.find((function(n){return t(e,n)})):void 0})(e,n)&&(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}))}function ce(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];he(e).forEach((function(e){return pe(t,e,n)}))}function he(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&Object.keys(t).forEach((function(n){0===n.indexOf("on")&&x(t[n])&&e.push(n)})),e}function pe(t,e,n){-1!==n.indexOf(e)||S(t,e)||(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}function fe(t,e){var n;return e=e.default||e,n=x(e)?e:t.extend(e),e=n.options,[n,e]}function de(t,e){if(Array.isArray(e)&&e.length){var n=Object.create(null);e.forEach((function(t){n[t]=!0})),t.$scopedSlots=t.$slots=n}}function ge(t,e){t=(t||"").split(",");var n=t.length;1===n?e._$vueId=t[0]:2===n&&(e._$vueId=t[0],e._$vuePid=t[1])}function ye(t,e){var n=t.data||{},r=t.methods||{};if("function"===typeof n)try{n=n.call(e)}catch(i){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"monitor",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return w(n)||(n={}),Object.keys(r).forEach((function(t){-1!==e.__lifecycle_hooks__.indexOf(t)||S(n,t)||(n[t]=r[t])})),n}var ve=[String,Number,Boolean,Object,Array,null];function me(t){return function(e,n){this.$vm&&(this.$vm[t]=e)}}function _e(t,e){var n=t.behaviors,r=t.extends,i=t.mixins,o=t.props;o||(t.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(t){a.push(t.replace("uni://","wx".concat("://"))),"uni://form-field"===t&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),w(r)&&r.props&&a.push(e({properties:be(r.props,!0)})),Array.isArray(i)&&i.forEach((function(t){w(t)&&t.props&&a.push(e({properties:be(t.props,!0)}))})),a}function xe(t,e,n,r){return Array.isArray(e)&&1===e.length?e[0]:e}function be(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return e||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(t,e){var n=Object.create(null);t.forEach((function(t){n[t]=!0})),this.setData({$slots:n})}}),Array.isArray(t)?t.forEach((function(t){r[t]={type:null,observer:me(t)}})):w(t)&&Object.keys(t).forEach((function(e){var n=t[e];if(w(n)){var i=n.default;x(i)&&(i=i()),n.type=xe(0,n.type),r[e]={type:-1!==ve.indexOf(n.type)?n.type:null,value:i,observer:me(e)}}else{var o=xe(0,n);r[e]={type:-1!==ve.indexOf(o)?o:null,observer:me(e)}}})),r}function we(t,e,n,r){var i={};return Array.isArray(e)&&e.length&&e.forEach((function(e,o){"string"===typeof e?e?"$event"===e?i["$"+o]=n:"arguments"===e?i["$"+o]=n.detail&&n.detail.__args__||r:0===e.indexOf("$event.")?i["$"+o]=t.__get_value(e.replace("$event.",""),n):i["$"+o]=t.__get_value(e):i["$"+o]=t:i["$"+o]=function(t,e){var n=t;return e.forEach((function(e){var r=e[0],i=e[2];if(r||"undefined"!==typeof i){var o,a=e[1],s=e[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):t.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(e){return t.__get_value(a,e)===i})):w(o)?n=Object.keys(o).find((function(e){return t.__get_value(a,o[e])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=t.__get_value(s,n))}})),n}(t,e)})),i}function Se(t){for(var e={},n=1;n<t.length;n++){var r=t[n];e[r[0]]=r[1]}return e}function ke(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1,s=w(e.detail)&&e.detail.__args__||[e.detail];if(i&&(a=e.currentTarget&&e.currentTarget.dataset&&"wx"===e.currentTarget.dataset.comType,!n.length))return a?[e]:s;var l=we(t,r,e,s),u=[];return n.forEach((function(t){"$event"===t?"__set_model"!==o||i?i&&!a?u.push(s[0]):u.push(e):u.push(e.target.value):Array.isArray(t)&&"o"===t[0]?u.push(Se(t)):"string"===typeof t&&S(l,t)?u.push(l[t]):u.push(t)})),u}function Me(t){var e=this;t=function(t){try{t.mp=JSON.parse(JSON.stringify(t))}catch(e){}return t.stopPropagation=k,t.preventDefault=k,t.target=t.target||{},S(t,"detail")||(t.detail={}),S(t,"markerId")&&(t.detail="object"===(0,c.default)(t.detail)?t.detail:{},t.detail.markerId=t.markerId),w(t.detail)&&(t.target=Object.assign({},t.target,t.detail)),t}(t);var n=(t.currentTarget||t.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=t.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s="^"===r.charAt(0);r=s?r.slice(1):r;var l="~"===r.charAt(0);r=l?r.slice(1):r,a&&function(t,e){return t===e||"regionchange"===e&&("begin"===t||"end"===t)}(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=e.$vm;if(i.$options.generic&&(i=function(t){var e=t.$parent;while(e&&e.$parent&&(e.$options.generic||e.$parent.$options.generic||e.$scope._$vuePid))e=e.$parent;return e&&e.$parent}(i)||i),"$emit"===r)return void i.$emit.apply(i,ke(e.$vm,t,n[1],n[2],s,r));var a=i[r];if(!x(a)){var u="page"===e.$vm.mpType?"Page":"Component",c=e.route||e.is;throw new Error("".concat(u,' "').concat(c,'" does not have a method "').concat(r,'"'))}if(l){if(a.once)return;a.once=!0}var h=ke(e.$vm,t,n[1],n[2],s,r);h=Array.isArray(h)?h:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(h=h.concat([,,,,,,,,,,t])),o.push(a.apply(i,h))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var Ae={};var Te=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ce(){p.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var t=p.default.prototype.__call_hook;p.default.prototype.__call_hook=function(e,n){return"onLoad"===e&&n&&n.__id__&&(this.__eventChannel__=function(t){var e=Ae[t];return delete Ae[t],e}(n.__id__),delete n.__id__),t.call(this,e,n)}}function Ie(e,n){var r=n.mocks,i=n.initRefs;Ce(),function(){var t={},e={};function n(t){var e=this.$options.propsData.vueId;if(e){var n=e.split(",")[0];t(n)}}p.default.prototype.$hasSSP=function(n){var r=t[n];return r||(e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))),r},p.default.prototype.$getSSP=function(e,n,r){var i=t[e];if(i){var o=i[n]||[];return r?o:o[0]}},p.default.prototype.$setSSP=function(e,r){var i=0;return n.call(this,(function(n){var o=t[n],a=o[e]=o[e]||[];a.push(r),i=a.length-1})),i},p.default.prototype.$initSSP=function(){n.call(this,(function(e){t[e]={}}))},p.default.prototype.$callSSP=function(){n.call(this,(function(t){e[t]&&e[t].$forceUpdate()}))},p.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete t[r],delete e[r])}})}(),e.$options.store&&(p.default.prototype.$store=e.$options.store),function(t){t.prototype.uniIDHasRole=function(t){var e=v(),n=e.role;return n.indexOf(t)>-1},t.prototype.uniIDHasPermission=function(t){var e=v(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=v(),e=t.tokenExpired;return e>Date.now()}}(p.default),p.default.prototype.mpHost="mp-weixin",p.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var t=getApp();t.$vm&&t.$vm.$i18n&&(this._i18n=t.$vm.$i18n)}"app"!==this.mpType&&(i(this),function(t,e){var n=t.$mp[t.mpType];e.forEach((function(e){S(n,e)&&(t[e]=n[e])}))}(this,r))}}});var o={onLaunch:function(n){this.$vm||(t.canIUse&&!t.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};o.globalData=e.$options.globalData||{};var a=e.$options.methods;return a&&Object.keys(a).forEach((function(t){o[t]=a[t]})),function(t,e,n){var r=t.observable({locale:n||rt.getLocale()}),i=[];e.$watchLocale=function(t){i.push(t)},Object.defineProperty(e,"$locale",{get:function(){return r.locale},set:function(t){r.locale=t,i.forEach((function(e){return e(t)}))}})}(p.default,e,ot(t.getSystemInfoSync().language)||"en"),ue(o,Te),ce(o,e.$options),o}function Oe(t){return Ie(t,{mocks:Yt,initRefs:Jt})}function Pe(t){return App(Oe(t)),t}var De=/[!'()*]/g,Le=function(t){return"%"+t.charCodeAt(0).toString(16)},Ee=/%2C/g,Re=function(t){return encodeURIComponent(t).replace(De,Le).replace(Ee,",")};function Ne(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Re,n=t?Object.keys(t).map((function(n){var r=t[n];if(void 0===r)return"";if(null===r)return e(n);if(Array.isArray(r)){var i=[];return r.forEach((function(t){void 0!==t&&(null===t?i.push(e(n)):i.push(e(n)+"="+e(t)))})),i.join("&")}return e(n)+"="+e(r)})).filter((function(t){return t.length>0})).join("&"):null;return n?"?".concat(n):""}function Be(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isPage,r=e.initRelation,i=arguments.length>2?arguments[2]:void 0,o=fe(p.default,t),s=(0,a.default)(o,2),l=s[0],u=s[1],c=d({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(c,u["mp-weixin"].options);var h={options:c,data:ye(u,p.default.prototype),behaviors:_e(u,Xt),properties:be(u.props,!1,u.__file,c),lifetimes:{attached:function(){var t=this.properties,e={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:t};ge(t.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:e}),this.$vm=new l(e),de(this.$vm,t.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(t){this.$vm&&this.$vm.__call_hook("onPageShow",t)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(t){this.$vm&&this.$vm.__call_hook("onPageResize",t)}},methods:{__l:Qt,__e:Me}};return u.externalClasses&&(h.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(t){h.methods[t]=function(e){return this.$vm[t](e)}})),i?[h,u,l]:n?h:[h,l]}(t,{isPage:Zt,initRelation:Kt},e)}var je=["onShow","onHide","onUnload"];function Fe(t){var e=Be(t,!0),n=(0,a.default)(e,2),r=n[0],i=n[1];return ue(r.methods,je,i),r.methods.onLoad=function(t){this.options=t;var e=Object.assign({},t);delete e.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Ne(e)},this.$vm.$mp.query=t,this.$vm.__call_hook("onLoad",t)},ce(r.methods,t,["onReady"]),function(t,e){e&&Object.keys(e).forEach((function(n){var r=n.match(ne);if(r){var i=r[1];t[n]=e[n],t[i]=e[i]}}))}(r.methods,i.methods),r}function ze(t){return Component(function(t){return Fe(t)}(t))}function He(t){return Component(Be(t))}function Ve(e){var n=Oe(e),r=getApp({allowDefault:!0});e.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(t){S(i,t)||(i[t]=n.globalData[t])})),Object.keys(n).forEach((function(t){S(r,t)||(r[t]=n[t])})),x(n.onShow)&&t.onAppShow&&t.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onShow",n)})),x(n.onHide)&&t.onAppHide&&t.onAppHide((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onHide",n)})),x(n.onLaunch)){var o=t.getLaunchOptionsSync&&t.getLaunchOptionsSync();e.__call_hook("onLaunch",o)}return e}function Ue(e){var n=Oe(e);if(x(n.onShow)&&t.onAppShow&&t.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onShow",n)})),x(n.onHide)&&t.onAppHide&&t.onAppHide((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onHide",n)})),x(n.onLaunch)){var r=t.getLaunchOptionsSync&&t.getLaunchOptionsSync();e.__call_hook("onLaunch",r)}return e}je.push.apply(je,["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"]),["vibrate","preloadPage","unPreloadPage","loadSubPackage"].forEach((function(t){kt[t]=!1})),[].forEach((function(e){var n=kt[e]&&kt[e].name?kt[e].name:e;t.canIUse(n)||(kt[e]=!1)}));var $e={};"undefined"!==typeof Proxy?$e=new Proxy({},{get:function(e,n){return S(e,n)?e[n]:ut[n]?ut[n]:qt[n]?K(n,qt[n]):Dt[n]?K(n,Dt[n]):Ot[n]?K(n,Ot[n]):jt[n]?jt[n]:K(n,It(n,t[n]))},set:function(t,e,n){return t[e]=n,!0}}):(Object.keys(ut).forEach((function(t){$e[t]=ut[t]})),Object.keys(Ot).forEach((function(t){$e[t]=K(t,Ot[t])})),Object.keys(Dt).forEach((function(t){$e[t]=K(t,Dt[t])})),Object.keys(jt).forEach((function(t){$e[t]=jt[t]})),Object.keys(qt).forEach((function(t){$e[t]=K(t,qt[t])})),Object.keys(t).forEach((function(e){(S(t,e)||S(kt,e))&&($e[e]=K(e,It(e,t[e])))}))),t.createApp=Pe,t.createPage=ze,t.createComponent=He,t.createSubpackageApp=Ve,t.createPlugin=Ue;var We=$e,Ge=We;e.default=Ge}).call(this,n("bc2e")["default"],n("c8ba"))},"5a09":function(t){t.exports=JSON.parse('{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"}')},"5a43":function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports["default"]=t.exports},"5bc3":function(t,e,n){var r=n("a395");function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"5ed8":function(t,e,n){var r={"./common.js":"9a05","./feedback.js":"acb7","./home.js":"050f"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="5ed8"},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6613:function(t,e,n){var r=n("5a43");t.exports=function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"66fd":function(t,e,n){"use strict";n.r(e),function(t){
  18. /*!
  19. * Vue.js v2.6.11
  20. * (c) 2014-2023 Evan You
  21. * Released under the MIT License.
  22. */
  23. var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function s(t){return null!==t&&"object"===typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function c(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function d(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}d("slot,component",!0);var g=d("key,ref,slot,slot-scope,is");function y(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var v=Object.prototype.hasOwnProperty;function m(t,e){return v.call(t,e)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,b=_((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),w=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,k=_((function(t){return t.replace(S,"-$1").toLowerCase()}));var M=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function C(t){for(var e={},n=0;n<t.length;n++)t[n]&&T(e,t[n]);return e}function I(t,e,n){}var O=function(t,e,n){return!1},P=function(t){return t};function D(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return D(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),l=Object.keys(e);return a.length===l.length&&a.every((function(n){return D(t[n],e[n])}))}catch(u){return!1}}function L(t,e){for(var n=0;n<t.length;n++)if(D(t[n],e))return n;return-1}function E(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var R=["component","directive","filter"],N=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:O,isReservedAttr:O,isUnknownElement:O,getTagNamespace:I,parsePlatformTagName:P,mustUseProp:O,async:!0,_lifecycleHooks:N},j=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function F(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function z(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H=new RegExp("[^"+j.source+".$_\\d]");var V,U="__proto__"in{},$="undefined"!==typeof window,W="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,G=W&&WXEnvironment.platform.toLowerCase(),q=$&&window.navigator.userAgent.toLowerCase(),Y=q&&/msie|trident/.test(q),X=(q&&q.indexOf("msie 9.0"),q&&q.indexOf("edge/")>0),Z=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===G),K=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/),{}.watch);if($)try{var J={};Object.defineProperty(J,"passive",{get:function(){}}),window.addEventListener("test-passive",null,J)}catch(Bn){}var Q=function(){return void 0===V&&(V=!$&&!W&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),V},tt=$&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function et(t){return"function"===typeof t&&/native code/.test(t.toString())}var nt,rt="undefined"!==typeof Symbol&&et(Symbol)&&"undefined"!==typeof Reflect&&et(Reflect.ownKeys);nt="undefined"!==typeof Set&&et(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var it=I,ot=0,at=function(){this.id=ot++,this.subs=[]};function st(t){at.SharedObject.targetStack.push(t),at.SharedObject.target=t,at.target=t}function lt(){at.SharedObject.targetStack.pop(),at.SharedObject.target=at.SharedObject.targetStack[at.SharedObject.targetStack.length-1],at.target=at.SharedObject.target}at.prototype.addSub=function(t){this.subs.push(t)},at.prototype.removeSub=function(t){y(this.subs,t)},at.prototype.depend=function(){at.SharedObject.target&&at.SharedObject.target.addDep(this)},at.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},at.SharedObject={},at.SharedObject.target=null,at.SharedObject.targetStack=[];var ut=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ct={child:{configurable:!0}};ct.child.get=function(){return this.componentInstance},Object.defineProperties(ut.prototype,ct);var ht=function(t){void 0===t&&(t="");var e=new ut;return e.text=t,e.isComment=!0,e};function pt(t){return new ut(void 0,void 0,void 0,String(t))}var ft=Array.prototype,dt=Object.create(ft);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=ft[t];z(dt,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var gt=Object.getOwnPropertyNames(dt),yt=!0;function vt(t){yt=t}var mt=function(t){this.value=t,this.dep=new at,this.vmCount=0,z(t,"__ob__",this),Array.isArray(t)?(U?t.push!==t.__proto__.push?_t(t,dt,gt):function(t,e){t.__proto__=e}(t,dt):_t(t,dt,gt),this.observeArray(t)):this.walk(t)};function _t(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];z(t,o,e[o])}}function xt(t,e){var n;if(s(t)&&!(t instanceof ut))return m(t,"__ob__")&&t.__ob__ instanceof mt?n=t.__ob__:!yt||Q()||!Array.isArray(t)&&!u(t)||!Object.isExtensible(t)||t._isVue||t.__v_isMPComponent||(n=new mt(t)),e&&n&&n.vmCount++,n}function bt(t,e,n,r,i){var o=new at,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=t[e]);var u=!i&&xt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return at.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&kt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!l||(l?l.call(t,e):n=e,u=!i&&xt(e),o.notify())}})}}function wt(t,e,n){if(Array.isArray(t)&&c(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(bt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function St(t,e){if(Array.isArray(t)&&c(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||m(t,e)&&(delete t[e],n&&n.dep.notify())}}function kt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&kt(e)}mt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)bt(t,e[n])},mt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)xt(t[e])};var Mt=B.optionMergeStrategies;function At(t,e){if(!e)return t;for(var n,r,i,o=rt?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],m(t,n)?r!==i&&u(r)&&u(i)&&At(r,i):wt(t,n,i));return t}function Tt(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?At(r,i):i}:e?t?function(){return At("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Ct(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function It(t,e,n,r){var i=Object.create(t||null);return e?T(i,e):i}Mt.data=function(t,e,n){return n?Tt(t,e,n):e&&"function"!==typeof e?t:Tt(t,e)},N.forEach((function(t){Mt[t]=Ct})),R.forEach((function(t){Mt[t+"s"]=It})),Mt.watch=function(t,e,n,r){if(t===K&&(t=void 0),e===K&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in T(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Mt.props=Mt.methods=Mt.inject=Mt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return T(i,t),e&&T(i,e),i},Mt.provide=Tt;var Ot=function(t,e){return void 0===e?t:e};function Pt(t,e,n){if("function"===typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=b(i),a[o]={type:null})}else if(u(n))for(var s in n)i=n[s],o=b(s),a[o]=u(i)?i:{type:i};else 0;t.props=a}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?T({from:o},a):{from:a}}else 0}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Pt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Pt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)m(t,o)||s(o);function s(r){var i=Mt[r]||Ot;a[r]=i(t[r],e[r],n,r)}return a}function Dt(t,e,n,r){if("string"===typeof n){var i=t[e];if(m(i,n))return i[n];var o=b(n);if(m(i,o))return i[o];var a=w(o);if(m(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Lt(t,e,n,r){var i=e[t],o=!m(n,t),a=n[t],s=Nt(Boolean,i.type);if(s>-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===k(t)){var l=Nt(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!m(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"===typeof r&&"Function"!==Et(e.type)?r.call(t):r}(r,i,t);var u=yt;vt(!0),xt(a),vt(u)}return a}function Et(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Rt(t,e){return Et(t)===Et(e)}function Nt(t,e){if(!Array.isArray(e))return Rt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Rt(e[n],t))return n;return-1}function Bt(t,e,n){st();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(Bn){Ft(Bn,r,"errorCaptured hook")}}}Ft(t,e,n)}finally{lt()}}function jt(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&h(o)&&!o._handled&&(o.catch((function(t){return Bt(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(Bn){Bt(Bn,r,i)}return o}function Ft(t,e,n){if(B.errorHandler)try{return B.errorHandler.call(null,t,e,n)}catch(Bn){Bn!==t&&zt(Bn,null,"config.errorHandler")}zt(t,e,n)}function zt(t,e,n){if(!$&&!W||"undefined"===typeof console)throw t;console.error(t)}var Ht,Vt=[],Ut=!1;function $t(){Ut=!1;var t=Vt.slice(0);Vt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&et(Promise)){var Wt=Promise.resolve();Ht=function(){Wt.then($t),Z&&setTimeout(I)}}else if(Y||"undefined"===typeof MutationObserver||!et(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ht="undefined"!==typeof setImmediate&&et(setImmediate)?function(){setImmediate($t)}:function(){setTimeout($t,0)};else{var Gt=1,qt=new MutationObserver($t),Yt=document.createTextNode(String(Gt));qt.observe(Yt,{characterData:!0}),Ht=function(){Gt=(Gt+1)%2,Yt.data=String(Gt)}}function Xt(t,e){var n;if(Vt.push((function(){if(t)try{t.call(e)}catch(Bn){Bt(Bn,e,"nextTick")}else n&&n(e)})),Ut||(Ut=!0,Ht()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var Zt=new nt;function Kt(t){(function t(e,n){var r,i,o=Array.isArray(e);if(!o&&!s(e)||Object.isFrozen(e)||e instanceof ut)return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o){r=e.length;while(r--)t(e[r],n)}else{i=Object.keys(e),r=i.length;while(r--)t(e[i[r]],n)}})(t,Zt),Zt.clear()}var Jt=_((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function Qt(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return jt(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)jt(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function te(t,e,n,o){var a=e.options.mpOptions&&e.options.mpOptions.properties;if(r(a))return n;var s=e.options.mpOptions.externalClasses||[],l=t.attrs,u=t.props;if(i(l)||i(u))for(var c in a){var h=k(c),p=ee(n,u,c,h,!0)||ee(n,l,c,h,!1);p&&n[c]&&-1!==s.indexOf(h)&&o[b(n[c])]&&(n[c]=o[b(n[c])])}return n}function ee(t,e,n,r,o){if(i(e)){if(m(e,n))return t[n]=e[n],o||delete e[n],!0;if(m(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function ne(t){return a(t)?[pt(t)]:Array.isArray(t)?function t(e,n){var s,l,u,c,h=[];for(s=0;s<e.length;s++)l=e[s],r(l)||"boolean"===typeof l||(u=h.length-1,c=h[u],Array.isArray(l)?l.length>0&&(l=t(l,(n||"")+"_"+s),re(l[0])&&re(c)&&(h[u]=pt(c.text+l[0].text),l.shift()),h.push.apply(h,l)):a(l)?re(c)?h[u]=pt(c.text+l):""!==l&&h.push(pt(l)):re(l)&&re(c)?h[u]=pt(c.text+l.text):(o(e._isVList)&&i(l.tag)&&r(l.key)&&i(n)&&(l.key="__vlist"+n+"_"+s+"__"),h.push(l)));return h}(t):void 0}function re(t){return i(t)&&i(t.text)&&function(t){return!1===t}(t.isComment)}function ie(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function oe(t){var e=ae(t.$options.inject,t);e&&(vt(!1),Object.keys(e).forEach((function(n){bt(t,n,e[n])})),vt(!0))}function ae(t,e){if(t){for(var n=Object.create(null),r=rt?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&m(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var l=t[o].default;n[o]="function"===typeof l?l.call(e):l}else 0}}return n}}function se(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(o):(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(le)&&delete n[u];return n}function le(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ue(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ce(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=he(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function ce(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:ne(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function he(t,e){return function(){return t[e]}}function pe(t,e){var n,r,o,a,l;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r,r,r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r,r,r);else if(s(t))if(rt&&t[Symbol.iterator]){n=[];var u=t[Symbol.iterator](),c=u.next();while(!c.done)n.push(e(c.value,n.length,r,r++)),c=u.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)l=a[r],n[r]=e(t[l],l,r,r);return i(n)||(n=[]),n._isVList=!0,n}function fe(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=T(T({},r),n)),i=o(n,this,n._i)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function de(t){return Dt(this.$options,"filters",t)||P}function ge(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function ye(t,e,n,r,i){var o=B.keyCodes[e]||n;return i&&r&&!B.keyCodes[e]?ge(i,r):o?ge(o,t):r?k(r)!==e:void 0}function ve(t,e,n,r,i){if(n)if(s(n)){var o;Array.isArray(n)&&(n=C(n));var a=function(a){if("class"===a||"style"===a||g(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||B.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=b(a),u=k(a);if(!(l in o)&&!(u in o)&&(o[a]=n[a],i)){var c=t.on||(t.on={});c["update:"+a]=function(t){n[a]=t}}};for(var l in n)a(l)}else;return t}function me(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),xe(r,"__static__"+t,!1)),r}function _e(t,e,n){return xe(t,"__once__"+e+(n?"_"+n:""),!0),t}function xe(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&be(t[r],e+"_"+r,n);else be(t,e,n)}function be(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function we(t,e){if(e)if(u(e)){var n=t.on=t.on?T({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Se(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Se(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function ke(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Me(t,e){return"string"===typeof t?e+t:t}function Ae(t){t._o=_e,t._n=f,t._s=p,t._l=pe,t._t=fe,t._q=D,t._i=L,t._m=me,t._f=de,t._k=ye,t._b=ve,t._v=pt,t._e=ht,t._u=Se,t._g=we,t._d=ke,t._p=Me}function Te(t,e,r,i,a){var s,l=this,u=a.options;m(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var c=o(u._compiled),h=!c;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=ae(u.inject,i),this.slots=function(){return l.$slots||ue(t.scopedSlots,l.$slots=se(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ue(t.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=ue(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,r){var o=Ee(s,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return Ee(s,t,e,n,r,h)}}function Ce(t,e,n,r,i){var o=function(t){var e=new ut(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Ie(t,e){for(var n in e)t[b(n)]=e[n]}Ae(Te.prototype);var Oe={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Oe.prepatch(n,n)}else{var r=t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Ue);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var r=e.componentOptions,i=e.componentInstance=t.componentInstance;(function(t,e,r,i,o){0;var a=i.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(o||t.$options._renderChildren||l);t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i);if(t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){vt(!1);for(var c=t._props,h=t.$options._propKeys||[],p=0;p<h.length;p++){var f=h[p],d=t.$options.props;c[f]=Lt(f,d,e,t)}vt(!0),t.$options.propsData=e}t._$updateProperties&&t._$updateProperties(t),r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,Ve(t,r,g),u&&(t.$slots=se(o,i.context),t.$forceUpdate());0})(i,r.propsData,r.listeners,e,r.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(Ge(n,"onServiceCreated"),Ge(n,"onServiceAttached"),n._isMounted=!0,Ge(n,"mounted")),t.data.keepAlive&&(e._isMounted?function(t){t._inactive=!1,Ye.push(t)}(n):We(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,$e(e)))return;if(!e._inactive){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);Ge(e,"deactivated")}}(e,!0):e.$destroy())}},Pe=Object.keys(Oe);function De(t,e,a,l,u){if(!r(t)){var c=a.$options._base;if(s(t)&&(t=c.extend(t)),"function"===typeof t){var p;if(r(t.cid)&&(p=t,t=function(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=Ne;n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],l=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var p=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},f=E((function(n){t.resolved=Be(n,e),l?a.length=0:p(!0)})),d=E((function(e){i(t.errorComp)&&(t.error=!0,p(!0))})),g=t(f,d);return s(g)&&(h(g)?r(t.resolved)&&g.then(f,d):h(g.component)&&(g.component.then(f,d),i(g.error)&&(t.errorComp=Be(g.error,e)),i(g.loading)&&(t.loadingComp=Be(g.loading,e),0===g.delay?t.loading=!0:u=setTimeout((function(){u=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,p(!1))}),g.delay||200)),i(g.timeout)&&(c=setTimeout((function(){c=null,r(t.resolved)&&d(null)}),g.timeout)))),l=!1,t.loading?t.loadingComp:t.resolved}}(p,c),void 0===t))return function(t,e,n,r,i){var o=ht();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(p,e,a,l,u);e=e||{},dn(t),i(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}(t.options,e);var f=function(t,e,n,o){var a=e.options.props;if(r(a))return te(t,e,{},o);var s={},l=t.attrs,u=t.props;if(i(l)||i(u))for(var c in a){var h=k(c);ee(s,u,c,h,!0)||ee(s,l,c,h,!1)}return te(t,e,s,o)}(e,t,0,a);if(o(t.options.functional))return function(t,e,r,o,a){var s=t.options,l={},u=s.props;if(i(u))for(var c in u)l[c]=Lt(c,u,e||n);else i(r.attrs)&&Ie(l,r.attrs),i(r.props)&&Ie(l,r.props);var h=new Te(r,l,a,o,t),p=s.render.call(null,h._c,h);if(p instanceof ut)return Ce(p,r,h.parent,s,h);if(Array.isArray(p)){for(var f=ne(p)||[],d=new Array(f.length),g=0;g<f.length;g++)d[g]=Ce(f[g],r,h.parent,s,h);return d}}(t,f,e,a,l);var d=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var g=e.slot;e={},g&&(e.slot=g)}(function(t){for(var e=t.hook||(t.hook={}),n=0;n<Pe.length;n++){var r=Pe[n],i=e[r],o=Oe[r];i===o||i&&i._merged||(e[r]=i?Le(o,i):o)}})(e);var v=t.options.name||u,m=new ut("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,a,{Ctor:t,propsData:f,listeners:d,tag:u,children:l},p);return m}}}function Le(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function Ee(t,e,n,l,u,c){return(Array.isArray(n)||a(n))&&(u=l,l=n,n=void 0),o(c)&&(u=2),function(t,e,n,a,l){if(i(n)&&i(n.__ob__))return ht();i(n)&&i(n.is)&&(e=n.is);if(!e)return ht();0;Array.isArray(a)&&"function"===typeof a[0]&&(n=n||{},n.scopedSlots={default:a[0]},a.length=0);2===l?a=ne(a):1===l&&(a=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(a));var u,c;if("string"===typeof e){var h;c=t.$vnode&&t.$vnode.ns||B.getTagNamespace(e),u=B.isReservedTag(e)?new ut(B.parsePlatformTagName(e),n,a,void 0,void 0,t):n&&n.pre||!i(h=Dt(t.$options,"components",e))?new ut(e,n,a,void 0,void 0,t):De(h,n,t,a,e)}else u=De(e,n,t,a);return Array.isArray(u)?u:i(u)?(i(c)&&function t(e,n,a){e.ns=n,"foreignObject"===e.tag&&(n=void 0,a=!0);if(i(e.children))for(var s=0,l=e.children.length;s<l;s++){var u=e.children[s];i(u.tag)&&(r(u.ns)||o(a)&&"svg"!==u.tag)&&t(u,n,a)}}(u,c),i(n)&&function(t){s(t.style)&&Kt(t.style);s(t.class)&&Kt(t.class)}(n),u):ht()}(t,e,n,l,u)}var Re,Ne=null;function Be(t,e){return(t.__esModule||rt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),s(t)?e.extend(t):t}function je(t){return t.isComment&&t.asyncFactory}function Fe(t,e){Re.$on(t,e)}function ze(t,e){Re.$off(t,e)}function He(t,e){var n=Re;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function Ve(t,e,n){Re=t,function(t,e,n,i,a,s){var l,u,c,h;for(l in t)u=t[l],c=e[l],h=Jt(l),r(u)||(r(c)?(r(u.fns)&&(u=t[l]=Qt(u,s)),o(h.once)&&(u=t[l]=a(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)r(t[l])&&(h=Jt(l),i(h.name,e[l],h.capture))}(e,n||{},Fe,ze,He,t),Re=void 0}var Ue=null;function $e(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function We(t,e){if(e){if(t._directInactive=!1,$e(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)We(t.$children[n]);Ge(t,"activated")}}function Ge(t,e){st();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)jt(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),lt()}var qe=[],Ye=[],Xe={},Ze=!1,Ke=!1,Je=0;var Qe=Date.now;if($&&!Y){var tn=window.performance;tn&&"function"===typeof tn.now&&Qe()>document.createEvent("Event").timeStamp&&(Qe=function(){return tn.now()})}function en(){var t,e;for(Qe(),Ke=!0,qe.sort((function(t,e){return t.id-e.id})),Je=0;Je<qe.length;Je++)t=qe[Je],t.before&&t.before(),e=t.id,Xe[e]=null,t.run();var n=Ye.slice(),r=qe.slice();(function(){Je=qe.length=Ye.length=0,Xe={},Ze=Ke=!1})(),function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,We(t[e],!0)}(n),function(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Ge(r,"updated")}}(r),tt&&B.devtools&&tt.emit("flush")}var nn=0,rn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++nn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new nt,this.newDepIds=new nt,this.expression="","function"===typeof e?this.getter=e:(this.getter=function(t){if(!H.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};rn.prototype.get=function(){var t;st(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Bn){if(!this.user)throw Bn;Bt(Bn,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Kt(t),lt(),this.cleanupDeps()}return t},rn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},rn.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},rn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==Xe[e]){if(Xe[e]=!0,Ke){var n=qe.length-1;while(n>Je&&qe[n].id>t.id)n--;qe.splice(n+1,0,t)}else qe.push(t);Ze||(Ze=!0,Xt(en))}}(this)},rn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Bn){Bt(Bn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var on={enumerable:!0,configurable:!0,get:I,set:I};function an(t,e,n){on.get=function(){return this[e][n]},on.set=function(t){this[e][n]=t},Object.defineProperty(t,n,on)}function sn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||vt(!1);var a=function(o){i.push(o);var a=Lt(o,e,n,t);bt(r,o,a),o in t||an(t,"_props",o)};for(var s in e)a(s);vt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?I:M(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;e=t._data="function"===typeof e?function(t,e){st();try{return t.call(e,e)}catch(Bn){return Bt(Bn,e,"data()"),{}}finally{lt()}}(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&m(r,o)||F(o)||an(t,"_data",o)}xt(e,!0)}(t):xt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=Q();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new rn(t,a||I,I,ln)),i in t||un(t,i,o)}}(t,e.computed),e.watch&&e.watch!==K&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)pn(t,n,r[i]);else pn(t,n,r)}}(t,e.watch)}var ln={lazy:!0};function un(t,e,n){var r=!Q();"function"===typeof n?(on.get=r?cn(e):hn(n),on.set=I):(on.get=n.get?r&&!1!==n.cache?cn(e):hn(n.get):I,on.set=n.set||I),Object.defineProperty(t,e,on)}function cn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),at.SharedObject.target&&e.depend(),e.value}}function hn(t){return function(){return t.call(this,this)}}function pn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}var fn=0;function dn(t){var e=t.options;if(t.super){var n=dn(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);i&&T(t.extendOptions,i),e=t.options=Pt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function gn(t){this._init(t)}function yn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Pt(n.options,t),a["super"]=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)an(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)un(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=T({},a.options),i[r]=a,a}}function vn(t){return t&&(t.Ctor.options.name||t.tag)}function mn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!function(t){return"[object RegExp]"===l.call(t)}(t)&&t.test(e)}function _n(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=vn(a.componentOptions);s&&!e(s)&&xn(n,o,r,i)}}}function xn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}(function(t){t.prototype._init=function(t){var e=this;e._uid=fn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Pt(dn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ve(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=se(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return Ee(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ee(t,e,n,r,i,!0)};var o=r&&r.data;bt(t,"$attrs",o&&o.attrs||n,null,!0),bt(t,"$listeners",e._parentListeners||n,null,!0)}(e),Ge(e,"beforeCreate"),!e._$fallback&&oe(e),sn(e),!e._$fallback&&ie(e),!e._$fallback&&Ge(e,"created"),e.$options.el&&e.$mount(e.$options.el)}})(gn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=wt,t.prototype.$delete=St,t.prototype.$watch=function(t,e,n){if(u(e))return pn(this,t,e,n);n=n||{},n.user=!0;var r=new rn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(i){Bt(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(gn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?A(n):n;for(var r=A(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)jt(n[o],e,r,e,i)}return e}}(gn),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=function(t){var e=Ue;return Ue=t,function(){Ue=e}}(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Ge(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||y(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Ge(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(gn),function(t){Ae(t.prototype),t.prototype.$nextTick=function(t){return Xt(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=ue(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{Ne=e,t=r.call(e._renderProxy,e.$createElement)}catch(Bn){Bt(Bn,e,"render"),t=e._vnode}finally{Ne=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof ut||(t=ht()),t.parent=i,t}}(gn);var bn=[String,RegExp,Array],wn={name:"keep-alive",abstract:!0,props:{include:bn,exclude:bn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)xn(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){_n(t,(function(t){return mn(e,t)}))})),this.$watch("exclude",(function(e){_n(t,(function(t){return!mn(e,t)}))}))},render:function(){var t=this.$slots.default,e=function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||je(n)))return n}}(t),n=e&&e.componentOptions;if(n){var r=vn(n),o=this.include,a=this.exclude;if(o&&(!r||!mn(o,r))||a&&r&&mn(a,r))return e;var s=this.cache,l=this.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;s[u]?(e.componentInstance=s[u].componentInstance,y(l,u),l.push(u)):(s[u]=e,l.push(u),this.max&&l.length>parseInt(this.max)&&xn(s,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Sn={KeepAlive:wn};(function(t){var e={get:function(){return B}};Object.defineProperty(t,"config",e),t.util={warn:it,extend:T,mergeOptions:Pt,defineReactive:bt},t.set=wt,t.delete=St,t.nextTick=Xt,t.observable=function(t){return xt(t),t},t.options=Object.create(null),R.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,Sn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pt(this.options,t),this}}(t),yn(t),function(t){R.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)})(gn),Object.defineProperty(gn.prototype,"$isServer",{get:Q}),Object.defineProperty(gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Te}),gn.version="2.6.11";var kn="[object Array]",Mn="[object Object]";function An(t,e){var n={};return function t(e,n){if(e===n)return;var r=Cn(e),i=Cn(n);if(r==Mn&&i==Mn){if(Object.keys(e).length>=Object.keys(n).length)for(var o in n){var a=e[o];void 0===a?e[o]=null:t(a,n[o])}}else r==kn&&i==kn&&e.length>=n.length&&n.forEach((function(n,r){t(e[r],n)}))}(t,e),function t(e,n,r,i){if(e===n)return;var o=Cn(e),a=Cn(n);if(o==Mn)if(a!=Mn||Object.keys(e).length<Object.keys(n).length)Tn(i,r,e);else{var s=function(o){var a=e[o],s=n[o],l=Cn(a),u=Cn(s);if(l!=kn&&l!=Mn)a!==n[o]&&function(t,e){if(("[object Null]"===t||"[object Undefined]"===t)&&("[object Null]"===e||"[object Undefined]"===e))return!1;return!0}(l,u)&&Tn(i,(""==r?"":r+".")+o,a);else if(l==kn)u!=kn||a.length<s.length?Tn(i,(""==r?"":r+".")+o,a):a.forEach((function(e,n){t(e,s[n],(""==r?"":r+".")+o+"["+n+"]",i)}));else if(l==Mn)if(u!=Mn||Object.keys(a).length<Object.keys(s).length)Tn(i,(""==r?"":r+".")+o,a);else for(var c in a)t(a[c],s[c],(""==r?"":r+".")+o+"."+c,i)};for(var l in e)s(l)}else o==kn?a!=kn||e.length<n.length?Tn(i,r,e):e.forEach((function(e,o){t(e,n[o],r+"["+o+"]",i)})):Tn(i,r,e)}(t,e,"",n),n}function Tn(t,e,n){t[e]=n}function Cn(t){return Object.prototype.toString.call(t)}function In(t){if(t.__next_tick_callbacks&&t.__next_tick_callbacks.length){if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"monitor",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var e=t.$scope;console.log("["+ +new Date+"]["+(e.is||e.route)+"]["+t._uid+"]:flushCallbacks["+t.__next_tick_callbacks.length+"]")}var n=t.__next_tick_callbacks.slice(0);t.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function On(t,e){if(!t.__next_tick_pending&&!function(t){return qe.find((function(e){return t._watcher===e}))}(t)){if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"monitor",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var n=t.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+t._uid+"]:nextVueTick")}return Xt(e,t)}if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"monitor",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var r=t.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+t._uid+"]:nextMPTick")}var i;if(t.__next_tick_callbacks||(t.__next_tick_callbacks=[]),t.__next_tick_callbacks.push((function(){if(e)try{e.call(t)}catch(Bn){Bt(Bn,t,"nextTick")}else i&&i(t)})),!e&&"undefined"!==typeof Promise)return new Promise((function(t){i=t}))}function Pn(t,e){return e&&(e._isVue||e.__v_isMPComponent)?{}:e}function Dn(){}function Ln(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Ln(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):s(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"===typeof t?t:""}var En=_((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));var Rn=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Nn=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];gn.prototype.__patch__=function(t,e){var n=this;if(null!==e&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=function(t){var e=Object.create(null),n=[].concat(Object.keys(t._data||{}),Object.keys(t._computedWatchers||{}));n.reduce((function(e,n){return e[n]=t[n],e}),e);var r=t.__composition_api_state__||t.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){e[n]=t[n]})),Object.assign(e,t.$mp.data||{}),Array.isArray(t.$options.behaviors)&&-1!==t.$options.behaviors.indexOf("uni://form-field")&&(e["name"]=t.name,e["value"]=t.value),JSON.parse(JSON.stringify(e,Pn))}(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(t){o[t]=r.data[t]}));var a=!1===this.$shouldDiffData?i:An(i,o);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"monitor",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,In(n)}))):In(this)}},gn.prototype.$mount=function(t,e){return function(t,e,n){return t.mpType?("app"===t.mpType&&(t.$options.render=Dn),t.$options.render||(t.$options.render=Dn),!t._$fallback&&Ge(t,"beforeMount"),new rn(t,(function(){t._update(t._render(),n)}),I,{before:function(){t._isMounted&&!t._isDestroyed&&Ge(t,"beforeUpdate")}},!0),n=!1,t):t}(this,0,e)},function(t){var e=t.extend;t.extend=function(t){t=t||{};var n=t.methods;return n&&Object.keys(n).forEach((function(e){-1!==Nn.indexOf(e)&&(t[e]=n[e],delete n[e])})),e.call(this,t)};var n=t.config.optionMergeStrategies,r=n.created;Nn.forEach((function(t){n[t]=r})),t.prototype.__lifecycle_hooks__=Nn}(gn),function(t){t.config.errorHandler=function(e,n,r){t.util.warn("Error in "+r+': "'+e.toString()+'"',n),console.error(e);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(e)};var e=t.prototype.$emit;t.prototype.$emit=function(t){if(this.$scope&&t){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,t,{__args__:A(arguments,1)})}catch(r){}}return e.apply(this,arguments)},t.prototype.$nextTick=function(t){return On(this,t)},Rn.forEach((function(e){t.prototype[e]=function(t){return this.$scope&&this.$scope[e]?this.$scope[e](t):"undefined"!==typeof my?"createSelectorQuery"===e?my.createSelectorQuery(t):"createIntersectionObserver"===e?my.createIntersectionObserver(t):void 0:void 0}})),t.prototype.__init_provide=ie,t.prototype.__init_injections=oe,t.prototype.__call_hook=function(t,e){var n=this;st();var r,i=n.$options[t],o=t+" hook";if(i)for(var a=0,s=i.length;a<s;a++)r=jt(i[a],n,e?[e]:null,n,o);return n._hasHookEvent&&n.$emit("hook:"+t,e),lt(),r},t.prototype.__set_model=function(e,n,r,i){Array.isArray(i)&&(-1!==i.indexOf("trim")&&(r=r.trim()),-1!==i.indexOf("number")&&(r=this._n(r))),e||(e=this),t.set(e,n,r)},t.prototype.__set_sync=function(e,n,r){e||(e=this),t.set(e,n,r)},t.prototype.__get_orig=function(t){return u(t)&&t["$orig"]||t},t.prototype.__get_value=function(t,e){return function t(e,n){var r=n.split("."),i=r[0];return 0===i.indexOf("__$n")&&(i=parseInt(i.replace("__$n",""))),1===r.length?e[i]:t(e[i],r.slice(1).join("."))}(e||this,t)},t.prototype.__get_class=function(t,e){return function(t,e){return i(t)||i(e)?function(t,e){return t?e?t+" "+e:t:e||""}(t,Ln(e)):""}(e,t)},t.prototype.__get_style=function(t,e){if(!t&&!e)return"";var n=function(t){return Array.isArray(t)?C(t):"string"===typeof t?En(t):t}(t),r=e?T(e,n):n;return Object.keys(r).map((function(t){return k(t)+":"+r[t]})).join(";")},t.prototype.__map=function(t,e){var n,r,i,o,a;if(Array.isArray(t)){for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);return n}if(s(t)){for(o=Object.keys(t),n=Object.create(null),r=0,i=o.length;r<i;r++)a=o[r],n[a]=e(t[a],a,r);return n}if("number"===typeof t){for(n=new Array(t),r=0,i=t;r<i;r++)n[r]=e(r,r);return n}return[]}}(gn),e["default"]=gn}.call(this,n("c8ba"))},"6b58":function(t,e,n){var r=n("7037")["default"],i=n("3c96");t.exports=function(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},"6f8f":function(t,e){t.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports["default"]=t.exports},7037:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7ec2":function(t,e,n){var r=n("7037")["default"];function i(){"use strict";
  24. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(P){h=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new C(r||[]);return a(o,"_invoke",{value:k(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=p;var d={};function g(){}function y(){}function v(){}var m={};h(m,l,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(I([])));x&&x!==n&&o.call(x,l)&&(m=x);var b=v.prototype=g.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){var n;a(this,"_invoke",{value:function(i,a){function s(){return new e((function(n,s){(function n(i,a,s,l){var u=f(t[i],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}))}l(u.arg)})(i,a,n,s)}))}return n=n?n.then(s,s):s()}})}function k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function M(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,M(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return y.prototype=v,a(b,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=h(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,h(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(S.prototype),h(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),h(b,c,"Generator"),h(b,l,(function(){return this})),h(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},9523:function(t,e,n){var r=n("a395");t.exports=function(t,e,n){return e=r(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"970b":function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"9a05":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.state=e.mutations=e.actions=void 0;var n={showWxLogin:!1,userInfo:{headLogo:t.getStorageSync("headLogo")||""}};e.state=n;var r={setShowWxLogin:function(t,e){t.showWxLogin=e},setUserInfo:function(e,n){e.userInfo=n,t.setStorageSync("token",n.token),t.setStorageSync("wechatId",n.wechatId),t.setStorageSync("headLogo",n.headLogo),t.setStorageSync("nameList",n.nameList)}};e.mutations=r;e.actions={}}).call(this,n("543d")["default"])},"9b42":function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}},t.exports.__esModule=!0,t.exports["default"]=t.exports},a128:function(t,e,n){var r=n("36c6"),i=n("4a4b"),o=n("c5f7"),a=n("b17c");function s(e){var n="function"===typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,s(e)}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},a18c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{}},created:function(){this.popup=this.getParent()},methods:{getParent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniPopup",e=this.$parent,n=e.$options.name;while(n!==t){if(e=e.$parent,!e)return!1;n=e.$options.name}return e}}};e.default=r},a395:function(t,e,n){var r=n("7037")["default"],i=n("e50d");t.exports=function(t){var e=i(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},a90c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontData=void 0;e.fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}]},a9ff:function(t,e,n){"use strict";(function(t,r,i){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("2eee")),s=o(n("3c96")),l=o(n("278c")),u=o(n("7037")),c=o(n("448a")),h=o(n("c973")),p=o(n("9523")),f=o(n("ed6d")),d=o(n("6b58")),g=o(n("36c6")),y=o(n("a128")),v=o(n("970b")),m=o(n("5bc3")),_=o(n("2229"));function x(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){(0,p.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,g.default)(t);if(e){var i=(0,g.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}function M(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t||"undefined"!=typeof self&&self;var A=M((function(t,e){var n;t.exports=(n=n||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)e[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],i=function(e){e=e;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o<e;o+=4){var s=i(4294967296*(n||t.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,e)}}),s=r.enc={},l=s.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},u=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},c=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,u=t.min(4*l,i);if(l){for(var c=0;c<l;c+=o)this._doProcessBlock(r,c);var h=r.splice(0,l);n.sigBytes-=u}return new a.init(h,u)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});i.Hasher=h.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new p.HMAC.init(t,n).finalize(e)}}});var p=r.algo={};return r}(Math),n)})),T=A,C=(M((function(t,e){var n;t.exports=(n=T,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],f=t[e+2],d=t[e+3],g=t[e+4],y=t[e+5],v=t[e+6],m=t[e+7],_=t[e+8],x=t[e+9],b=t[e+10],w=t[e+11],S=t[e+12],k=t[e+13],M=t[e+14],A=t[e+15],T=o[0],C=o[1],I=o[2],O=o[3];T=u(T,C,I,O,a,7,s[0]),O=u(O,T,C,I,l,12,s[1]),I=u(I,O,T,C,f,17,s[2]),C=u(C,I,O,T,d,22,s[3]),T=u(T,C,I,O,g,7,s[4]),O=u(O,T,C,I,y,12,s[5]),I=u(I,O,T,C,v,17,s[6]),C=u(C,I,O,T,m,22,s[7]),T=u(T,C,I,O,_,7,s[8]),O=u(O,T,C,I,x,12,s[9]),I=u(I,O,T,C,b,17,s[10]),C=u(C,I,O,T,w,22,s[11]),T=u(T,C,I,O,S,7,s[12]),O=u(O,T,C,I,k,12,s[13]),I=u(I,O,T,C,M,17,s[14]),T=c(T,C=u(C,I,O,T,A,22,s[15]),I,O,l,5,s[16]),O=c(O,T,C,I,v,9,s[17]),I=c(I,O,T,C,w,14,s[18]),C=c(C,I,O,T,a,20,s[19]),T=c(T,C,I,O,y,5,s[20]),O=c(O,T,C,I,b,9,s[21]),I=c(I,O,T,C,A,14,s[22]),C=c(C,I,O,T,g,20,s[23]),T=c(T,C,I,O,x,5,s[24]),O=c(O,T,C,I,M,9,s[25]),I=c(I,O,T,C,d,14,s[26]),C=c(C,I,O,T,_,20,s[27]),T=c(T,C,I,O,k,5,s[28]),O=c(O,T,C,I,f,9,s[29]),I=c(I,O,T,C,m,14,s[30]),T=h(T,C=c(C,I,O,T,S,20,s[31]),I,O,y,4,s[32]),O=h(O,T,C,I,_,11,s[33]),I=h(I,O,T,C,w,16,s[34]),C=h(C,I,O,T,M,23,s[35]),T=h(T,C,I,O,l,4,s[36]),O=h(O,T,C,I,g,11,s[37]),I=h(I,O,T,C,m,16,s[38]),C=h(C,I,O,T,b,23,s[39]),T=h(T,C,I,O,k,4,s[40]),O=h(O,T,C,I,a,11,s[41]),I=h(I,O,T,C,d,16,s[42]),C=h(C,I,O,T,v,23,s[43]),T=h(T,C,I,O,x,4,s[44]),O=h(O,T,C,I,S,11,s[45]),I=h(I,O,T,C,A,16,s[46]),T=p(T,C=h(C,I,O,T,f,23,s[47]),I,O,a,6,s[48]),O=p(O,T,C,I,m,10,s[49]),I=p(I,O,T,C,M,15,s[50]),C=p(C,I,O,T,y,21,s[51]),T=p(T,C,I,O,S,6,s[52]),O=p(O,T,C,I,d,10,s[53]),I=p(I,O,T,C,b,15,s[54]),C=p(C,I,O,T,l,21,s[55]),T=p(T,C,I,O,_,6,s[56]),O=p(O,T,C,I,A,10,s[57]),I=p(I,O,T,C,v,15,s[58]),C=p(C,I,O,T,k,21,s[59]),T=p(T,C,I,O,g,6,s[60]),O=p(O,T,C,I,w,10,s[61]),I=p(I,O,T,C,f,15,s[62]),C=p(C,I,O,T,x,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+C|0,o[2]=o[2]+I|0,o[3]=o[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+i+a;return(s<<o|s>>>32-o)+e}function c(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,n,r,i,o,a){var s=t+(e^n^r)+i+a;return(s<<o|s>>>32-o)+e}function p(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(l),e.HmacMD5=o._createHmacHelper(l)}(Math),n.MD5)})),M((function(t,e){var n;t.exports=(n=T,void function(){var t=n,e=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,l=a.words,u=0;u<n;u++)s[u]^=1549556828,l[u]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})}())})),M((function(t,e){t.exports=T.HmacMD5}))),I=M((function(t,e){t.exports=T.enc.Utf8})),O=M((function(t,e){var n;t.exports=(n=T,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[t.charCodeAt(a-1)]<<a%4*2,l=r[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|l)<<24-o%4*8,o++}return e.create(i,o)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return r(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),P="FUNCTION",D="OBJECT",L="pending",E="fulfilled",R="rejected";function N(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function B(t){return"object"===N(t)}function j(t){return"function"==typeof t}function F(t){return function(){try{return t.apply(t,arguments)}catch(t){console.error(t)}}}var z="REJECTED",H="NOT_PENDING",V=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.createPromise,r=e.retryRule,i=void 0===r?z:r;(0,v.default)(this,t),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(t,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case z:return this.status===R;case H:return this.status!==L}}},{key:"exec",value:function(){var t=this;return this.needRetry?(this.status=L,this.promise=this.createPromise().then((function(e){return t.status=E,Promise.resolve(e)}),(function(e){return t.status=R,Promise.reject(e)})),this.promise):this.promise}}]),t}();function U(t){return t&&"string"==typeof t?JSON.parse(t):t}var $="mp-weixin",W=U([]),G=$,q=(U(void 0),U([])||[]);try{(n("32c0").default||n("32c0")).appid}catch(hr){}var Y={};function X(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=Y,n=t,Object.prototype.hasOwnProperty.call(e,n)||(Y[t]=r),Y[t]}"app"===G&&(Y=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var Z=["invoke","success","fail","complete"],K=X("_globalUniCloudInterceptor");function J(t,e){K[t]||(K[t]={}),B(e)&&Object.keys(e).forEach((function(n){Z.indexOf(n)>-1&&function(t,e,n){var r=K[t][e];r||(r=K[t][e]=[]),-1===r.indexOf(n)&&j(n)&&r.push(n)}(t,n,e[n])}))}function Q(t,e){K[t]||(K[t]={}),B(e)?Object.keys(e).forEach((function(n){Z.indexOf(n)>-1&&function(t,e,n){var r=K[t][e];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(t,n,e[n])})):delete K[t]}function tt(t,e){return t&&0!==t.length?t.reduce((function(t,n){return t.then((function(){return n(e)}))}),Promise.resolve()):Promise.resolve()}function et(t,e){return K[t]&&K[t][e]||[]}function nt(t){J("callObject",t)}var rt=X("_globalUniCloudListener"),it="response",ot="needLogin",at="refreshToken",st="clientdb",lt="cloudfunction",ut="cloudobject";function ct(t){return rt[t]||(rt[t]=[]),rt[t]}function ht(t,e){var n=ct(t);n.includes(e)||n.push(e)}function pt(t,e){var n=ct(t),r=n.indexOf(e);-1!==r&&n.splice(r,1)}function ft(t,e){for(var n=ct(t),r=0;r<n.length;r++)(0,n[r])(e)}var dt,gt=!1;function yt(){return dt||(dt=new Promise((function(t){gt&&t(),function e(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(gt=!0,t())}gt||setTimeout((function(){e()}),30)}()})),dt)}function vt(t){var e={};for(var n in t){var r=t[n];j(r)&&(e[n]=F(r))}return e}var mt,_t,xt=function(t){(0,f.default)(n,t);var e=k(n);function n(t){var r;return(0,v.default)(this,n),r=e.call(this,t.message),r.errMsg=t.message||t.errMsg||"unknown system error",r.code=r.errCode=t.code||t.errCode||"SYSTEM_ERROR",r.errSubject=r.subject=t.subject||t.errSubject,r.cause=t.cause,r.requestId=t.requestId,r}return(0,m.default)(n,[{key:"toJson",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(t>=10))return t++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(t):this.cause}}}]),n}((0,y.default)(Error)),bt={request:function(t){return r.request(t)},uploadFile:function(t){return r.uploadFile(t)},setStorageSync:function(t,e){return r.setStorageSync(t,e)},getStorageSync:function(t){return r.getStorageSync(t)},removeStorageSync:function(t){return r.removeStorageSync(t)},clearStorageSync:function(){return r.clearStorageSync()}};function wt(){return{token:bt.getStorageSync("uni_id_token")||bt.getStorageSync("uniIdToken"),tokenExpired:bt.getStorageSync("uni_id_token_expired")}}function St(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.token,n=t.tokenExpired;e&&bt.setStorageSync("uni_id_token",e),n&&bt.setStorageSync("uni_id_token_expired",n)}function kt(){return mt||(mt=r.getSystemInfoSync()),mt}function Mt(){var t=r.getLocale&&r.getLocale()||"en";if(_t)return S(S({},_t),{},{locale:t,LOCALE:t});for(var e=kt(),n=e.deviceId,i=e.osName,o=e.uniPlatform,a=e.appId,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],l=0;l<s.length;l++)delete e[s[l]];return _t=S(S({PLATFORM:o,OS:i,APPID:a,DEVICEID:n},function(){var t,e;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),i=n.scene,o=n.channel;t=o,e=i}}catch(t){}return{channel:t,scene:e}}()),e),S(S({},_t),{},{locale:t,LOCALE:t})}var At,Tt={sign:function(t,e){var n="";return Object.keys(t).sort().forEach((function(e){t[e]&&(n=n+"&"+e+"="+t[e])})),n=n.slice(1),C(n,e).toString()},wrappedRequest:function(t,e){return new Promise((function(n,r){e(Object.assign(t,{complete:function(t){t||(t={});var e=t.data&&t.data.header&&t.data.header["x-serverless-request-id"]||t.header&&t.header["request-id"];if(!t.statusCode||t.statusCode>=400)return r(new xt({code:"SYS_ERR",message:t.errMsg||"request:fail",requestId:e}));var i=t.data;if(i.error)return r(new xt({code:i.error.code,message:i.error.message,requestId:e}));i.result=i.data,i.requestId=e,delete i.data,n(i)}}))}))},toBase64:function(t){return O.stringify(I.parse(t))}},Ct=function(){function t(e){var n=this;(0,v.default)(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error("".concat(t," required"))})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=bt,this._getAccessTokenPromiseHub=new V({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(t){if(!t.result||!t.result.accessToken)throw new xt({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(t.result.accessToken)}))},retryRule:H})}return(0,m.default)(t,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(t){this.accessToken=t}},{key:"requestWrapped",value:function(t){return Tt.wrappedRequest(t,this.adapter.request)}},{key:"requestAuth",value:function(t){return this.requestWrapped(t)}},{key:"request",value:function(t,e){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?e?n.requestWrapped(t):n.requestWrapped(t).catch((function(e){return new Promise((function(t,n){!e||"GATEWAY_INVALID_TOKEN"!==e.code&&"InvalidParameter.InvalidToken"!==e.code?n(e):t()})).then((function(){return n.getAccessToken()})).then((function(){var e=n.rebuildRequest(t);return n.request(e,!0)}))})):n.getAccessToken().then((function(){var e=n.rebuildRequest(t);return n.request(e,!0)}))}))}},{key:"rebuildRequest",value:function(t){var e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=Tt.sign(e.data,this.config.clientSecret),e}},{key:"setupRequest",value:function(t,e){var n=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==e&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Tt.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var t=(0,h.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getAccessToken();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(this.setupRequest(e))}},{key:"getOSSUploadOptionsFromPath",value:function(t){var e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFileToOSS",value:function(t){var e=this,n=t.url,r=t.formData,i=t.name,o=t.filePath,a=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var u=e.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(e){e&&e.statusCode<400?t(e):l(new xt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new xt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(t){var e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFile",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o,s,l,u,c,h,p,f,d,g,y,v,m,_,x,b,w,S,k;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.filePath,r=e.cloudPath,i=e.fileType,o=void 0===i?"image":i,s=e.cloudPathAsRealPath,l=void 0!==s&&s,u=e.onUploadProgress,c=e.config,"string"===N(r)){t.next=3;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){t.next=5;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){t.next=7;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(h=c&&c.envType||this.config.envType,!(l&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){t.next=10;break}throw new xt({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return t.next=12,this.getOSSUploadOptionsFromPath({env:h,filename:l?r.split("/").pop():r,fileId:l?r:void 0});case 12:return p=t.sent.result,f="https://"+p.cdnDomain+"/"+p.ossPath,d=p.securityToken,g=p.accessKeyId,y=p.signature,v=p.host,m=p.ossPath,_=p.id,x=p.policy,b=p.ossCallbackUrl,w={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:y,host:v,id:_,key:m,policy:x,success_action_status:200},d&&(w["x-oss-security-token"]=d),b&&(S=JSON.stringify({callbackUrl:b,callbackBody:JSON.stringify({fileId:_,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),w.callback=Tt.toBase64(S)),k={url:"https://"+p.host,formData:w,fileName:"file",name:"file",filePath:n,fileType:o},t.next=27,this.uploadFileToOSS(Object.assign({},k,{onUploadProgress:u}));case 27:if(!b){t.next=29;break}return t.abrupt("return",{success:!0,filePath:n,fileID:f});case 29:return t.next=31,this.reportOSSUpload({id:_});case 31:if(!t.sent.success){t.next=33;break}return t.abrupt("return",{success:!0,filePath:n,fileID:f});case 33:throw new xt({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList;return new Promise((function(t,n){Array.isArray(e)&&0!==e.length||n(new xt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((function(t){return{fileID:t,tempFileURL:t}}))})}))}},{key:"getFileInfo",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:{},n=e.fileList,Array.isArray(n)&&0!==n.length){t.next=3;break}throw new xt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(t){return t.split("?")[0]})).join(",")})},t.next=6,this.request(this.setupRequest(r));case 6:return t.t0=t.sent.result,t.abrupt("return",{fileList:t.t0});case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}(),It={init:function(t){var e=new Ct(t),n={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e.customAuth=e.auth,e}},Ot="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(t){t.local="local",t.none="none",t.session="session"}(At||(At={}));var Pt,Dt=function(){},Lt=M((function(t,e){var n;t.exports=(n=T,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var u=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],h=n[6],p=n[7],f=0;f<64;f++){if(f<16)u[f]=0|t[e+f];else{var d=u[f-15],g=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=u[f-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[f]=g+u[f-7]+v+u[f-16]}var m=r&i^r&o^i&o,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+l[f]+u[f];p=h,h=c,c=s,s=a+x|0,a=o,o=i,i=r,r=x+(_+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+h|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(c),e.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)})),Et=Lt,Rt=M((function(t,e){t.exports=T.HmacSHA256})),Nt=function(){var t;if(!Promise){t=function(){},t.promise={};var e=function(){throw new xt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(t.promise,"then",{get:e}),Object.defineProperty(t.promise,"catch",{get:e}),t}var n=new Promise((function(e,n){t=function(t,r){return t?n(t):e(r)}}));return t.promise=n,t};function Bt(t){return void 0===t}function jt(t){return"[object Null]"===Object.prototype.toString.call(t)}!function(t){t.WEB="web",t.WX_MP="wx_mp"}(Pt||(Pt={}));var Ft={adapter:null,runtime:void 0},zt=["anonymousUuidKey"],Ht=function(t){(0,f.default)(n,t);var e=k(n);function n(){var t;return(0,v.default)(this,n),t=e.call(this),Ft.adapter.root.tcbObject||(Ft.adapter.root.tcbObject={}),t}return(0,m.default)(n,[{key:"setItem",value:function(t,e){Ft.adapter.root.tcbObject[t]=e}},{key:"getItem",value:function(t){return Ft.adapter.root.tcbObject[t]}},{key:"removeItem",value:function(t){delete Ft.adapter.root.tcbObject[t]}},{key:"clear",value:function(){delete Ft.adapter.root.tcbObject}}]),n}(Dt);function Vt(t,e){switch(t){case"local":return e.localStorage||new Ht;case"none":return new Ht;default:return e.sessionStorage||new Ht}}var Ut=function(){function t(e){if((0,v.default)(this,t),!this._storage){this._persistence=Ft.adapter.primaryStorage||e.persistence,this._storage=Vt(this._persistence,Ft.adapter);var n="access_token_".concat(e.env),r="access_token_expire_".concat(e.env),i="refresh_token_".concat(e.env),o="anonymous_uuid_".concat(e.env),a="login_type_".concat(e.env),s="user_info_".concat(e.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:s}}}return(0,m.default)(t,[{key:"updatePersistence",value:function(t){if(t!==this._persistence){var e="local"===this._persistence;this._persistence=t;var n=Vt(t,Ft.adapter);for(var r in this.keys){var i=this.keys[r];if(!e||!zt.includes(r)){var o=this._storage.getItem(i);Bt(o)||jt(o)||(n.setItem(i,o),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(t,e,n){if(this._storage){var r={version:n||"localCachev1",content:e},i=JSON.stringify(r);try{this._storage.setItem(t,i)}catch(t){throw t}}}},{key:"getStore",value:function(t,e){try{if(!this._storage)return}catch(t){return""}e=e||"localCachev1";var n=this._storage.getItem(t);return n&&n.indexOf(e)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(t){this._storage.removeItem(t)}}]),t}(),$t={},Wt={};function Gt(t){return $t[t]}var qt=(0,m.default)((function t(e,n){(0,v.default)(this,t),this.data=n||null,this.name=e})),Yt=function(t){(0,f.default)(n,t);var e=k(n);function n(t,r){var i;return(0,v.default)(this,n),i=e.call(this,"error",{error:t,data:r}),i.error=t,i}return(0,m.default)(n)}(qt),Xt=new(function(){function t(){(0,v.default)(this,t),this._listeners={}}return(0,m.default)(t,[{key:"on",value:function(t,e){return function(t,e,n){n[t]=n[t]||[],n[t].push(e)}(t,e,this._listeners),this}},{key:"off",value:function(t,e){return function(t,e,n){if(n&&n[t]){var r=n[t].indexOf(e);-1!==r&&n[t].splice(r,1)}}(t,e,this._listeners),this}},{key:"fire",value:function(t,e){if(t instanceof Yt)return console.error(t.error),this;var n="string"==typeof t?new qt(t,e||{}):t,r=n.name;if(this._listens(r)){n.target=this;var i,o=this._listeners[r]?(0,c.default)(this._listeners[r]):[],a=x(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.call(this,n)}}catch(l){a.e(l)}finally{a.f()}}return this}},{key:"_listens",value:function(t){return this._listeners[t]&&this._listeners[t].length>0}}]),t}());function Zt(t,e){Xt.on(t,e)}function Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Xt.fire(t,e)}function Jt(t,e){Xt.off(t,e)}var Qt,te="loginStateChanged",ee="loginStateExpire",ne="loginTypeChanged",re="anonymousConverted",ie="refreshAccessToken";!function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"}(Qt||(Qt={}));var oe=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ae={"X-SDK-Version":"1.3.5"};function se(t,e,n){var r=t[e];t[e]=function(e){var i={},o={};n.forEach((function(n){var r=n.call(t,e),a=r.data,s=r.headers;Object.assign(i,a),Object.assign(o,s)}));var a=e.data;return a&&function(){var t;if(t=a,"[object FormData]"!==Object.prototype.toString.call(t))e.data=S(S({},a),i);else for(var n in i)a.append(n,i[n])}(),e.headers=S(S({},e.headers||{}),o),r.call(t,e)}}function le(){var t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:S(S({},ae),{},{"x-seqid":t})}}var ue=function(){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,t),this.config=n,this._reqClass=new Ft.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Gt(this.config.env),this._localCache=(e=this.config.env,Wt[e]),se(this._reqClass,"post",[le]),se(this._reqClass,"upload",[le]),se(this._reqClass,"download",[le])}return(0,m.default)(t,[{key:"post",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.post(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"upload",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.upload(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"download",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.download(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),t.prev=1,t.next=4,this._refreshAccessTokenPromise;case 4:e=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),n=t.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){t.next=12;break}throw n;case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this,[[1,7]])})));return function(){return t.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i,o,s,l,u,c,h,p,f,d;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=e.refreshTokenKey,o=e.loginTypeKey,s=e.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),l=this._cache.getStore(i),l){t.next=5;break}throw new xt({message:"未登录CloudBase"});case 5:return u={refresh_token:l},t.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(c=t.sent,!c.data.code){t.next=21;break}if(h=c.data.code,"SIGN_PARAM_INVALID"!==h&&"REFRESH_TOKEN_EXPIRED"!==h&&"INVALID_REFRESH_TOKEN"!==h){t.next=20;break}if(this._cache.getStore(o)!==Qt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==h){t.next=19;break}return p=this._cache.getStore(s),f=this._cache.getStore(i),t.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:p,refresh_token:f});case 17:return d=t.sent,t.abrupt("return",(this.setRefreshToken(d.refresh_token),this._refreshAccessToken()));case 19:Kt(ee),this._cache.removeStore(i);case 20:throw new xt({code:c.data.code,message:"刷新access token失败:".concat(c.data.code)});case 21:if(!c.data.access_token){t.next=23;break}return t.abrupt("return",(Kt(ie),this._cache.setStore(n,c.data.access_token),this._cache.setStore(r,c.data.access_token_expire+Date.now()),{accessToken:c.data.access_token,accessTokenExpire:c.data.access_token_expire}));case 23:c.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,c.data.refresh_token),this._refreshAccessToken());case 24:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=e.refreshTokenKey,this._cache.getStore(i)){t.next=3;break}throw new xt({message:"refresh token不存在,登录状态异常"});case 3:if(o=this._cache.getStore(n),s=this._cache.getStore(r),l=!0,t.t0=this._shouldRefreshAccessTokenHook,!t.t0){t.next=9;break}return t.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:t.t0=!t.sent;case 9:if(t.t1=t.t0,!t.t1){t.next=12;break}l=!1;case 12:return t.abrupt("return",(!o||!s||s<Date.now())&&l?this.refreshAccessToken():{accessToken:o,accessTokenExpire:s});case 13:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"request",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n,r){var i,o,s,l,u,c,h,p,f,d,g,y,v,m,_,x;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),o="application/x-www-form-urlencoded",s=S({action:e,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==oe.indexOf(e)){t.next=10;break}if(l=this._cache.keys.refreshTokenKey,t.t0=this._cache.getStore(l),!t.t0){t.next=10;break}return t.next=9,this.getAccessToken();case 9:s.access_token=t.sent.accessToken;case 10:if("storage.uploadFile"===e){for(c in u=new FormData,u)u.hasOwnProperty(c)&&void 0!==u[c]&&u.append(c,s[c]);o="multipart/form-data"}else for(h in o="application/json",u={},s)void 0!==s[h]&&(u[h]=s[h]);return p={headers:{"content-type":o}},r&&r.onUploadProgress&&(p.onUploadProgress=r.onUploadProgress),f=this._localCache.getStore(i),f&&(p.headers["X-TCB-Trace"]=f),d=n.parse,g=n.inQuery,y=n.search,v={env:this.config.env},d&&(v.parse=!0),g&&(v=S(S({},g),v)),m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(e),i="";for(var o in n)""===i?!r&&(e+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(n[o]));return/^http(s)?\:\/\//.test(e+=i)?e:"".concat(t).concat(e)}(Ot,"//tcb-api.tencentcloudapi.com/web",v),y&&(m+=y),t.next=22,this.post(S({url:m,data:u},p));case 22:if(_=t.sent,x=_.header&&_.header["x-tcb-trace"],x&&this._localCache.setStore(i,x),(200===Number(_.status)||200===Number(_.statusCode))&&_.data){t.next=26;break}throw new xt({code:"NETWORK_ERROR",message:"network request error"});case 26:return t.abrupt("return",_);case 27:case"end":return t.stop()}}),t,this)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"send",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},t.next=3,this.request(e,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=t.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==oe.indexOf(e)){t.next=13;break}return t.next=7,this.refreshAccessToken();case 7:return t.next=9,this.request(e,n,{onUploadProgress:n.onUploadProgress});case 9:if(i=t.sent,!i.data.code){t.next=12;break}throw new xt({code:i.data.code,message:i.data.message});case 12:return t.abrupt("return",i.data);case 13:if(!r.data.code){t.next=15;break}throw new xt({code:r.data.code,message:r.data.message});case 15:return t.abrupt("return",r.data);case 16:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(t){var e=this._cache.keys,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=e.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,t)}}]),t}(),ce={};function he(t){return ce[t]}var pe=function(){function t(e){(0,v.default)(this,t),this.config=e,this._cache=Gt(e.env),this._request=he(e.env)}return(0,m.default)(t,[{key:"setRefreshToken",value:function(t){var e=this._cache.keys,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=e.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,t)}},{key:"setAccessToken",value:function(t,e){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,t),this._cache.setStore(i,e)}},{key:"refreshUserInfo",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,n=e.data,t.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t)}}]),t}(),fe=function(){function t(e){if((0,v.default)(this,t),!e)throw new xt({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=Gt(this._envId),this._request=he(this._envId),this.setUserInfo()}return(0,m.default)(t,[{key:"linkWithTicket",value:function(t){if("string"!=typeof t)throw new xt({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:t})}},{key:"linkWithRedirect",value:function(t){t.signInWithRedirect()}},{key:"updatePassword",value:function(t,e){return this._request.send("auth.updatePassword",{oldPassword:e,newPassword:t})}},{key:"updateEmail",value:function(t){return this._request.send("auth.updateEmail",{newEmail:t})}},{key:"updateUsername",value:function(t){if("string"!=typeof t)throw new xt({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:t})}},{key:"getLinkedUidList",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return e=t.sent,n=e.data,r=!1,i=n.users,t.abrupt("return",(i.forEach((function(t){t.wxOpenId&&t.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(t){return this._request.send("auth.setPrimaryUid",{uid:t})}},{key:"unlink",value:function(t){return this._request.send("auth.unlink",{platform:t})}},{key:"update",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o,s,l,u,c;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.nickName,r=e.gender,i=e.avatarUrl,o=e.province,s=e.country,l=e.city,t.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:o,country:s,city:l});case 8:u=t.sent,c=u.data,this.setLocalUserInfo(c);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"refresh",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,n=e.data,t.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var t=this,e=this._cache.keys.userInfoKey,n=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(e){t[e]=n[e]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t),this.setUserInfo()}}]),t}(),de=function(){function t(e){if((0,v.default)(this,t),!e)throw new xt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Gt(e);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,o=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(i),l=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:l},this.user=new fe(e)}return(0,m.default)(t,[{key:"isAnonymousAuth",get:function(){return this.loginType===Qt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Qt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Qt.WECHAT||this.loginType===Qt.WECHAT_OPEN||this.loginType===Qt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),ge=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._cache.updatePersistence("local"),e=this._cache.keys,n=e.anonymousUuidKey,r=e.refreshTokenKey,i=this._cache.getStore(n)||void 0,o=this._cache.getStore(r)||void 0,t.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:o});case 8:if(s=t.sent,!s.uuid||!s.refresh_token){t.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),t.next=14,this._request.refreshAccessToken();case 14:return Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.ANONYMOUS,persistence:"local"}),l=new de(this.config.env),t.next=19,l.user.refresh();case 19:return t.abrupt("return",l);case 20:throw new xt({message:"匿名登录失败"});case 21:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,o=this._cache.getStore(r),s=this._cache.getStore(i),t.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:e});case 7:if(l=t.sent,!l.refresh_token){t.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(l.refresh_token),t.next=13,this._request.refreshAccessToken();case 13:return Kt(re,{env:this.config.env}),Kt(ne,{loginType:Qt.CUSTOM,persistence:"local"}),t.abrupt("return",{credential:{refreshToken:l.refresh_token}});case 16:throw new xt({message:"匿名转化失败"});case 17:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(t){var e=this._cache.keys,n=e.anonymousUuidKey,r=e.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,t),this._cache.setStore(r,Qt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(pe),ye=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new xt({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(n)||""});case 5:if(r=t.sent,!r.refresh_token){t.next=15;break}return this.setRefreshToken(r.refresh_token),t.next=10,this._request.refreshAccessToken();case 10:return Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.CUSTOM,persistence:this.config.persistence}),t.next=14,this.refreshUserInfo();case 14:return t.abrupt("return",new de(this.config.env));case 15:throw new xt({message:"自定义登录失败"});case 16:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),n}(pe),ve=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){var r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new xt({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=t.sent,o=i.refresh_token,s=i.access_token,l=i.access_token_expire,!o){t.next=22;break}if(this.setRefreshToken(o),!s||!l){t.next=15;break}this.setAccessToken(s,l),t.next=17;break;case 15:return t.next=17,this._request.refreshAccessToken();case 17:return t.next=19,this.refreshUserInfo();case 19:return Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.EMAIL,persistence:this.config.persistence}),t.abrupt("return",new de(this.config.env));case 22:throw i.code?new xt({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new xt({message:"邮箱登录失败"});case 23:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"activate",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.activateEndUserMail",{token:e}));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:n}));case 1:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()}]),n}(pe),me=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){var r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new xt({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,t.next=6,this._request.send("auth.signIn",{loginType:Qt.USERNAME,username:e,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=t.sent,o=i.refresh_token,s=i.access_token_expire,l=i.access_token,!o){t.next=23;break}if(this.setRefreshToken(o),!l||!s){t.next=16;break}this.setAccessToken(l,s),t.next=18;break;case 16:return t.next=18,this._request.refreshAccessToken();case 18:return t.next=20,this.refreshUserInfo();case 20:return Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.USERNAME,persistence:this.config.persistence}),t.abrupt("return",new de(this.config.env));case 23:throw i.code?new xt({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new xt({message:"用户名密码登录失败"});case 24:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()}]),n}(pe),_e=function(){function t(e){(0,v.default)(this,t),this.config=e,this._cache=Gt(e.env),this._request=he(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Zt(ne,this._onLoginTypeChanged)}return(0,m.default)(t,[{key:"currentUser",get:function(){var t=this.hasLoginState();return t&&t.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new ge(this.config)}},{key:"customAuthProvider",value:function(){return new ye(this.config)}},{key:"emailAuthProvider",value:function(){return new ve(this.config)}},{key:"usernameAuthProvider",value:function(){return new me(this.config)}},{key:"signInAnonymously",value:function(){var t=(0,h.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new ge(this.config).signIn());case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new ve(this.config).signIn(e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(t,e){return new me(this.config).signIn(t,e)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new ge(this.config)),Zt(re,this._onAnonymousConverted),t.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"signOut",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i,o,s;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.loginType!==Qt.ANONYMOUS){t.next=2;break}throw new xt({message:"匿名用户不支持登出操作"});case 2:if(e=this._cache.keys,n=e.refreshTokenKey,r=e.accessTokenKey,i=e.accessTokenExpireKey,o=this._cache.getStore(n),o){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=t.sent,t.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:n}));case 1:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:e}));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(t){var e=this;Zt(te,(function(){var n=e.hasLoginState();t.call(e,n)}));var n=this.hasLoginState();t.call(this,n)}},{key:"onLoginStateExpired",value:function(t){Zt(ee,t.bind(this))}},{key:"onAccessTokenRefreshed",value:function(t){Zt(ie,t.bind(this))}},{key:"onAnonymousConverted",value:function(t){Zt(re,t.bind(this))}},{key:"onLoginTypeChanged",value:function(t){var e=this;Zt(ne,(function(){var n=e.hasLoginState();t.call(e,n)}))}},{key:"getAccessToken",value:function(){var t=(0,h.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.getAccessToken();case 2:return t.t0=t.sent.accessToken,t.t1=this.config.env,t.abrupt("return",{accessToken:t.t0,env:t.t1});case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var t=this._cache.keys.refreshTokenKey;return this._cache.getStore(t)?new de(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new xt({code:"PARAM_ERROR",message:"username must be a string"});case 2:return t.next=4,this._request.send("auth.isUsernameRegistered",{username:e});case 4:return n=t.sent,r=n.data,t.abrupt("return",r&&r.isRegistered);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new ye(this.config).signIn(e));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(t){this._request._shouldRefreshAccessTokenHook=t.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(t){return t.code?t:S(S({},t.data),{},{requestId:t.seqId})}))}},{key:"getAuthHeader",value:function(){var t=this._cache.keys,e=t.refreshTokenKey,n=t.accessTokenKey,r=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(t){var e=t.data.env;e===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(t){var e=t.data,n=e.loginType,r=e.persistence,i=e.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),t}(),xe=function(t,e){e=e||Nt();var n=he(this.config.env),r=t.cloudPath,i=t.filePath,o=t.onUploadProgress,a=t.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(t){var a=t.data,l=a.url,u=a.authorization,c=a.token,h=a.fileId,p=a.cosFileId,f=t.requestId,d={key:r,signature:u,"x-cos-meta-fileid":p,success_action_status:"201","x-cos-security-token":c};n.upload({url:l,data:d,file:i,name:r,fileType:s,onUploadProgress:o}).then((function(t){201===t.statusCode?e(null,{fileID:h,requestId:f}):e(new xt({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(t.data)}))})).catch((function(t){e(t)}))})).catch((function(t){e(t)})),e.promise},be=function(t,e){e=e||Nt();var n=he(this.config.env),r=t.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(t){e(null,t)})).catch((function(t){e(t)})),e.promise},we=function(t,e){var n=t.fileList;if(e=e||Nt(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=x(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var a={fileid_list:n};return he(this.config.env).send("storage.batchDeleteFile",a).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.delete_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},Se=function(t,e){var n=t.fileList;e=e||Nt(),n&&Array.isArray(n)||e(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],o=x(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;"object"==(0,u.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(l){o.e(l)}finally{o.f()}var s={file_list:i};return he(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.download_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},ke=function(){var t=(0,h.default)(a.default.mark((function t(e,n){var r,i,o,s;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.fileID,t.next=3,Se.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=t.sent.fileList[0],"SUCCESS"===i.code){t.next=6;break}return t.abrupt("return",n?n(i):new Promise((function(t){t(i)})));case 6:if(o=he(this.config.env),s=i.download_url,s=encodeURI(s),n){t.next=10;break}return t.abrupt("return",o.download({url:s}));case 10:return t.t0=n,t.next=13,o.download({url:s});case 13:t.t1=t.sent,(0,t.t0)(t.t1);case 15:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),Me=function(t,e){var n,r=t.name,i=t.data,o=t.query,a=t.parse,s=t.search,l=e||Nt();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new xt({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:o,parse:a,search:s,function_name:r,request_data:n};return he(this.config.env).send("functions.invokeFunction",u).then((function(t){if(t.code)l(null,t);else{var e=t.data.response_data;if(a)l(null,{result:e,requestId:t.requestId});else try{e=JSON.parse(t.data.response_data),l(null,{result:e,requestId:t.requestId})}catch(t){l(new xt({message:"response data must be json"}))}}return l.promise})).catch((function(t){l(t)})),l.promise},Ae={timeout:15e3,persistence:"session"},Te={},Ce=function(){function t(e){(0,v.default)(this,t),this.config=e||this.config,this.authObj=void 0}return(0,m.default)(t,[{key:"init",value:function(e){switch(Ft.adapter||(this.requestClient=new Ft.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:"请求在".concat((e.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=S(S({},Ae),e),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new t(this.config)}},{key:"auth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.persistence;if(this.authObj)return this.authObj;var n,r=e||Ft.adapter.primaryStorage||Ae.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(t){var e=t.env;$t[e]=new Ut(t),Wt[e]=new Ut(S(S({},t),{},{persistence:"local"}))}(this.config),n=this.config,ce[n.env]=new ue(n),this.authObj=new _e(this.config),this.authObj}},{key:"on",value:function(t,e){return Zt.apply(this,[t,e])}},{key:"off",value:function(t,e){return Jt.apply(this,[t,e])}},{key:"callFunction",value:function(t,e){return Me.apply(this,[t,e])}},{key:"deleteFile",value:function(t,e){return we.apply(this,[t,e])}},{key:"getTempFileURL",value:function(t,e){return Se.apply(this,[t,e])}},{key:"downloadFile",value:function(t,e){return ke.apply(this,[t,e])}},{key:"uploadFile",value:function(t,e){return xe.apply(this,[t,e])}},{key:"getUploadMetadata",value:function(t,e){return be.apply(this,[t,e])}},{key:"registerExtension",value:function(t){Te[t.name]=t}},{key:"invokeExtension",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){var r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=Te[e],r){t.next=3;break}throw new xt({message:"扩展".concat(e," 必须先注册")});case 3:return t.next=5,r.invoke(n,this);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"useAdapters",value:function(t){var e=function(t){var e,n,r=(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]),i=x(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.isMatch,s=o.genAdapter,l=o.runtime;if(a())return{adapter:s(),runtime:l}}}catch(u){i.e(u)}finally{i.f()}}(t)||{},n=e.adapter,r=e.runtime;n&&(Ft.adapter=n),r&&(Ft.runtime=r)}}]),t}(),Ie=new Ce;function Oe(t,e,n){void 0===n&&(n={});var r=/\?/.test(e),i="";for(var o in n)""===i?!r&&(e+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(e+=i)?e:""+t+e}var Pe=function(){function t(){(0,v.default)(this,t)}return(0,m.default)(t,[{key:"post",value:function(t){var e=t.url,n=t.data,r=t.headers;return new Promise((function(t,i){bt.request({url:Oe("https:",e),data:n,method:"POST",header:r,success:function(e){t(e)},fail:function(t){i(t)}})}))}},{key:"upload",value:function(t){return new Promise((function(e,n){var r=t.url,i=t.file,o=t.data,a=t.headers,s=t.fileType,l=bt.uploadFile({url:Oe("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(t){var n={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),e(n)},fail:function(t){n(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(e){t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}]),t}(),De={setItem:function(t,e){bt.setStorageSync(t,e)},getItem:function(t){return bt.getStorageSync(t)},removeItem:function(t){bt.removeStorageSync(t)},clear:function(){bt.clearStorageSync()}},Le={genAdapter:function(){return{root:{},reqClass:Pe,localStorage:De,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ie.useAdapters(Le);var Ee=Ie,Re=Ee.init;Ee.init=function(t){t.env=t.spaceId;var e=Re.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;var n=e.auth;return e.auth=function(t){var e=n.call(this,t);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(t){var n;e[t]=(n=e[t],function(t){t=t||{};var e=vt(t),r=e.success,i=e.fail,o=e.complete;if(!(r||i||o))return n.call(this,t);n.call(this,t).then((function(t){r&&r(t),o&&o(t)}),(function(t){i&&i(t),o&&o(t)}))}).bind(e)})),e},e.customAuth=e.auth,e};var Ne=Ee,Be=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"getAccessToken",value:function(){var t=this;return new Promise((function(e,n){var r="Anonymous_Access_token";t.setAccessToken(r),e(r)}))}},{key:"setupRequest",value:function(t,e){var n=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==e&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Tt.sign(n,this.config.clientSecret);var i=Mt();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var o=wt(),a=o.token;return r["x-client-token"]=a,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(t){var e=this,n=t.url,r=t.formData,i=t.name,o=t.filePath,a=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var u=e.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,success:function(e){e&&e.statusCode<400?t(e):l(new xt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new xt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(t){var e,n=this,r=t.filePath,i=t.cloudPath,o=t.fileType,a=void 0===o?"image":o,s=t.onUploadProgress;if(!i)throw new xt({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(t){var i=t.result,o=i.url,l=i.formData,u=i.name;e=t.result.fileUrl;var c={url:o,formData:l,name:u,filePath:r,fileType:a};return n.uploadFileToOSS(Object.assign({},c,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(t){return new Promise((function(n,i){t.success?n({success:!0,filePath:r,fileID:e}):i(new xt({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(n)).then((function(t){if(t.success)return t.result;throw new xt({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList,n=t.maxAge;if(!Array.isArray(e)||0===e.length)throw new xt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:n})};return this.request(this.setupRequest(r)).then((function(t){if(t.success)return{fileList:t.result.fileList.map((function(t){return{fileID:t.fileID,tempFileURL:t.tempFileURL}}))};throw new xt({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(Ct),je={init:function(t){var e=new Be(t),n={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e.customAuth=e.auth,e}},Fe=M((function(t,e){t.exports=T.enc.Hex}));function ze(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.data,r=e.functionName,i=e.method,o=e.headers,a=e.signHeaderKeys,s=void 0===a?[]:a,u=e.config,c=Date.now(),h="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})),p=Object.assign({},o,{"x-from-app-id":u.spaceAppId,"x-from-env-id":u.spaceId,"x-to-env-id":u.spaceId,"x-from-instance-id":c,"x-from-function-name":r,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":h,"x-alipay-callid":h,"x-trace-id":h}),f=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),d=t.split("?")||[],g=(0,l.default)(d,2),y=g[0],v=void 0===y?"":y,m=g[1],_=void 0===m?"":m,x=function(t){var e=t.signedHeaders.join(";"),n=t.signedHeaders.map((function(e){return"".concat(e.toLowerCase(),":").concat(t.headers[e],"\n")})).join(""),r=Et(t.body).toString(Fe),i="".concat(t.method.toUpperCase(),"\n").concat(t.path,"\n").concat(t.query,"\n").concat(n,"\n").concat(e,"\n").concat(r,"\n"),o=Et(i).toString(Fe),a="HMAC-SHA256\n".concat(t.timestamp,"\n").concat(o,"\n"),s=Rt(a,t.secretKey).toString(Fe);return"HMAC-SHA256 Credential=".concat(t.secretId,", SignedHeaders=").concat(e,", Signature=").concat(s)}({path:v,query:_,method:i,headers:p,timestamp:c,body:JSON.stringify(n),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:f.sort()});return{url:"".concat(u.endpoint).concat(t),headers:Object.assign({},p,{Authorization:x})}}function He(t){var e=t.url,n=t.data,r=t.method,i=void 0===r?"POST":r,o=t.headers,a=void 0===o?{}:o;return new Promise((function(t,r){bt.request({url:e,method:i,data:n,header:a,dataType:"json",complete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){var i=e.data||{},o=i.message,s=i.errMsg,l=i.trace_id;return r(new xt({code:"SYS_ERR",message:o||s||"request:fail",requestId:l||n}))}t({status:e.statusCode,data:e.data,headers:e.header,requestId:n})}})}))}function Ve(t,e){var n=t.path,r=t.data,i=t.method,o=void 0===i?"GET":i,a=ze(n,{functionName:"",data:r,method:o,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:e}),s=a.url,l=a.headers;return He({url:s,data:r,method:o,headers:l}).then((function(t){var e=t.data||{};if(!e.success)throw new xt({code:t.errCode,message:t.errMsg,requestId:t.requestId});return e.data||{}})).catch((function(t){throw new xt({code:t.errCode,message:t.errMsg,requestId:t.requestId})}))}function Ue(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.trim().replace(/^cloud:\/\//,""),n=e.indexOf("/");if(n<=0)throw new xt({code:"INVALID_PARAM",message:"fileID不合法"});var r=e.substring(0,n),i=e.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(t," does not belong to env ").concat(this.config.spaceId)),i}function $e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(t.replace(/^\/+/,""))}var We=function(){function t(e){if((0,v.default)(this,t),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error("".concat(t," required"))})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||"https://".concat(e.spaceId,".api-hz.cloudbasefunction.cn")})}return(0,m.default)(t,[{key:"callFunction",value:function(t){return function(t,e){var n=t.name,r=t.data,i="POST",o=ze("/functions/invokeFunction",{functionName:n,data:r,method:i,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:e}),a=o.url,s=o.headers;return He({url:a,data:r,method:i,headers:s}).then((function(t){return{errCode:0,success:!0,requestId:t.requestId,result:t.data}})).catch((function(t){throw new xt({code:t.errCode,message:t.errMsg,requestId:t.requestId})}))}(t,this.config)}},{key:"uploadFileToOSS",value:function(t){var e=t.url,n=t.filePath,r=t.fileType,i=t.formData,o=t.onUploadProgress;return new Promise((function(t,a){var s=bt.uploadFile({url:e,filePath:n,fileType:r,formData:i,name:"file",success:function(e){e&&e.statusCode<400?t(e):a(new xt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){a(new xt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof o&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(t){o({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o,s,l,u,c,h,p,f;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.filePath,r=e.cloudPath,i=void 0===r?"":r,o=e.fileType,s=void 0===o?"image":o,l=e.onUploadProgress,"string"===N(i)){t.next=3;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){t.next=5;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){t.next=7;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return t.next=9,Ve({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return u=t.sent,c=u.file_id,h=u.upload_url,p=u.form_data,f=p&&p.reduce((function(t,e){return t[e.key]=e.value,t}),{}),t.abrupt("return",this.uploadFileToOSS({url:h,filePath:n,fileType:s,formData:f,onUploadProgress:l}).then((function(){return{fileID:c}})));case 15:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r=this;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.fileList,t.abrupt("return",new Promise((function(t,e){(!n||n.length<0)&&e(new xt({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&e(new xt({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var i,o=[],a=x(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;"string"!==N(s)&&e(new xt({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var l=Ue.call(r,s);o.push({file_id:l,expire:600})}}catch(u){a.e(u)}finally{a.f()}Ve({path:"/?download_url",data:{file_list:o},method:"POST"},r.config).then((function(e){var n=e.file_list,i=void 0===n?[]:n;t({fileList:i.map((function(t){return{fileID:$e.call(r,t.file_id),tempFileURL:t.download_url}}))})})).catch((function(t){return e(t)}))})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),Ge={init:function(t){t.provider="alipay";var e=new We(t);return e.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},e}};function qe(t){var e,n=t.data;e=Mt();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:e}),!r.uniIdToken){var i=wt(),o=i.token;o&&(r.uniIdToken=o)}return r}var Ye=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Xe=/[\\^$.*+?()[\]{}|]/g,Ze=RegExp(Xe.source);function Ke(t,e,n){return t.replace(new RegExp((r=e)&&Ze.test(r)?r.replace(Xe,"\\$&"):r,"g"),n);var r}var Je="request",Qe="response";var tn;tn="0123456789abcdef";var en={code:2e4,message:"System error"},nn={code:20101,message:"Invalid client"};function rn(t){var e=t||{},n=e.errSubject,r=e.subject,i=e.errCode,o=e.errMsg,a=e.code,s=e.message,l=e.cause;return new xt({subject:n||r||"uni-secure-network",code:i||a||en.code,message:o||s,cause:l})}var on;function an(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.secretType;return e===Je||e===Qe||"both"===e}function sn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,n=t.data,r=void 0===n?{}:n;return"app"===G&&"DCloud-clientDB"===e&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function ln(t){t.functionName,t.result,t.logPvd}function un(t){var e=t.callFunction,n=function(n){var r=this,i=n.name;n.data=qe.call(t,{data:n.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],a=an(n),s=sn(n),l=a||s;return e.call(this,n).then((function(t){return t.errCode=0,!l&&ln.call(r,{functionName:i,result:t,logPvd:o}),Promise.resolve(t)}),(function(t){return!l&&ln.call(r,{functionName:i,result:t,logPvd:o}),t&&t.message&&(t.message=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,n=void 0===e?"":e,r=t.extraInfo,i=void 0===r?{}:r,o=t.formatter,a=void 0===o?[]:o,s=0;s<a.length;s++){var l=a[s],u=l.rule,c=l.content,h=l.mode,p=n.match(u);if(p){for(var f=c,d=1;d<p.length;d++)f=Ke(f,"{$".concat(d,"}"),p[d]);for(var g in i)f=Ke(f,"{".concat(g,"}"),i[g]);return"replace"===h?f:n+f}}return n}({message:"[".concat(n.name,"]: ").concat(t.message),formatter:Ye,extraInfo:{functionName:i}})),Promise.reject(t)}))};t.callFunction=function(e){var r,i,o=t.config,a=o.provider,s=o.spaceId,l=e.name;return e.data=e.data||{},r=n,r=r.bind(t),i=sn(e)?n.call(t,e):function(t){var e=t.name,n=t.data,r=void 0===n?{}:n;return"mp-weixin"===G&&"uni-id-co"===e&&"secureNetworkHandshakeByWeixin"===r.method}(e)?r.call(t,e):an(e)?new on({secretType:e.secretType,uniCloudIns:t}).wrapEncryptDataCallFunction(n.bind(t))(e):function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.provider,n=t.spaceId,r=t.functionName,i=kt(),o=i.appId,a=i.uniPlatform,s=i.osName,l=a;"app"===a&&(l=s);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.provider,n=t.spaceId,r=W;if(!r)return{};e=function(t){return"tencent"===t?"tcb":t}(e);var i=r.find((function(t){return t.provider===e&&t.spaceId===n}));return i&&i.config}({provider:e,spaceId:n});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var c=u.accessControl.function||{},h=Object.keys(c);if(0===h.length)return!0;var p=function(t,e){for(var n,r,i,o=0;o<t.length;o++){var a=t[o];a!==e?"*"!==a?a.split(",").map((function(t){return t.trim()})).indexOf(e)>-1&&(r=a):i=a:n=a}return n||r||i}(h,r);if(!p)return!1;if((c[p]||[]).find((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.appId===o&&(t.platform||"").toLowerCase()===l.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(o,", platform: ").concat(l,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),rn(nn)}({provider:a,spaceId:s,functionName:l})?new on({secretType:e.secretType,uniCloudIns:t}).wrapVerifyClientCallFunction(n.bind(t))(e):r(e),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i}}on="mp-weixin"!==G&&"app"!==G?function(){return(0,m.default)((function t(){throw(0,v.default)(this,t),rn({message:"Platform ".concat(G," is not supported by secure network")})}))}():function(){return(0,m.default)((function t(){throw(0,v.default)(this,t),rn({message:"Platform ".concat(G," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var cn=Symbol("CLIENT_DB_INTERNAL");function hn(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=cn,t.inspect=null,t.__ob__=void 0,new Proxy(t,{get:function(t,n,r){if("_uniClient"===n)return null;if("symbol"==(0,u.default)(n))return t[n];if(n in t||"string"!=typeof n){var i=t[n];return"function"==typeof i?i.bind(t):i}return e.get(t,n,r)}})}function pn(t){return{on:function(e,n){t[e]=t[e]||[],t[e].indexOf(n)>-1||t[e].push(n)},off:function(e,n){t[e]=t[e]||[];var r=t[e].indexOf(n);-1!==r&&t[e].splice(r,1)}}}var fn=["db.Geo","db.command","command.aggregate"];function dn(t,e){return fn.indexOf("".concat(t,".").concat(e))>-1}function gn(t){switch(N(t)){case"array":return t.map((function(t){return gn(t)}));case"object":return t._internalType===cn||Object.keys(t).forEach((function(e){t[e]=gn(t[e])})),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}function yn(t){return t&&t.content&&t.content.$method}var vn=function(){function t(e,n,r){(0,v.default)(this,t),this.content=e,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(t,[{key:"toJSON",value:function(){for(var t=this,e=[t.content];t.prevStage;)t=t.prevStage,e.push(t.content);return{$db:e.reverse().map((function(t){return{$method:t.$method,$param:gn(t.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var t=this.toJSON().$db.find((function(t){return"action"===t.$method}));return t&&t.$param&&t.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(t){return"action"!==t.$method}))}}},{key:"isAggregate",get:function(){for(var t=this;t;){var e=yn(t),n=yn(t.prevStage);if("aggregate"===e&&"collection"===n||"pipeline"===e)return!0;t=t.prevStage}return!1}},{key:"isCommand",get:function(){for(var t=this;t;){if("command"===yn(t))return!0;t=t.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var t=this;t;){var e=yn(t),n=yn(t.prevStage);if("aggregate"===e&&"command"===n)return!0;t=t.prevStage}return!1}},{key:"getNextStageFn",value:function(t){var e=this;return function(){return mn({$method:t,$param:gn(Array.from(arguments))},e,e._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(t,e){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:t,$param:gn(e)}),this._database._callCloudFunction({action:n,command:r})}}]),t}();function mn(t,e,n){return hn(new vn(t,e,n),{get:function(t,e){var r="db";return t&&t.content&&(r=t.content.$method),dn(r,e)?mn({$method:e},t,n):function(){return mn({$method:e,$param:gn(Array.from(arguments))},t,n)}}})}function _n(t){var e=t.path,n=t.method;return function(){function t(){(0,v.default)(this,t),this.param=Array.from(arguments)}return(0,m.default)(t,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,c.default)(e.map((function(t){return{$method:t}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),t}()}function xn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return hn(new t(e),{get:function(t,e){return dn("db",e)?mn({$method:e},null,t):function(){return mn({$method:e,$param:gn(Array.from(arguments))},null,t)}}})}var bn=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(t){return this._isJQL?t.result:t}},{key:"_callCloudFunction",value:function(t){var e=this,n=t.action,r=t.command,i=t.multiCommand,o=t.queryList;function a(t,e){if(i&&o)for(var n=0;n<o.length;n++){var r=o[n];r.udb&&"function"==typeof r.udb.setResult&&(e?r.udb.setResult(e):r.udb.setResult(t.result.dataList[n]))}}var s=this,l=this._isJQL?"databaseForJQL":"database";function u(t){return s._callback("error",[t]),tt(et(l,"fail"),t).then((function(){return tt(et(l,"complete"),t)})).then((function(){return a(null,t),ft(it,{type:st,content:t}),Promise.reject(t)}))}var c=tt(et(l,"invoke")),h=this._uniClient;return c.then((function(){return h.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:n,command:r,multiCommand:i}})})).then((function(t){var n=t.result,r=n.code,i=n.message,o=n.token,c=n.tokenExpired,h=n.systemInfo,p=void 0===h?[]:h;if(p)for(var f=0;f<p.length;f++){var d=p[f],g=d.level,y=d.message,v=d.detail,m=console["app"===G&&"warn"===g?"error":g]||console.log,_="[System Info]"+y;v&&(_="".concat(_,"\n详细信息:").concat(v)),m(_)}if(r)return u(new xt({code:r,message:i,requestId:t.requestId}));t.result.errCode=t.result.errCode||t.result.code,t.result.errMsg=t.result.errMsg||t.result.message,o&&c&&(St({token:o,tokenExpired:c}),e._callbackAuth("refreshToken",[{token:o,tokenExpired:c}]),e._callback("refreshToken",[{token:o,tokenExpired:c}]),ft(at,{token:o,tokenExpired:c}));for(var x=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],b=function(e){var n=x[e],r=n.prop,i=n.tips;if(r in t.result){var o=t.result[r];Object.defineProperty(t.result,r,{get:function(){return console.warn(i),o}})}},w=0;w<x.length;w++)b(w);return function(t){return tt(et(l,"success"),t).then((function(){return tt(et(l,"complete"),t)})).then((function(){a(t,null);var e=s._parseResult(t);return ft(it,{type:st,content:e}),Promise.resolve(e)}))}(t)}),(function(t){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(t.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),u(new xt({code:t.code||"SYSTEM_ERROR",message:t.message,requestId:t.requestId}))}))}}]),n}(function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.uniClient,r=void 0===n?{}:n,i=e.isJQL,o=void 0!==i&&i;(0,v.default)(this,t),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=X("_globalUniCloudDatabaseCallback")),o||(this.auth=pn(this._authCallBacks)),this._isJQL=o,Object.assign(this,pn(this._dbCallBacks)),this.env=hn({},{get:function(t,e){return{$env:e}}}),this.Geo=hn({},{get:function(t,e){return _n({path:["Geo"],method:e})}}),this.serverDate=_n({path:[],method:"serverDate"}),this.RegExp=_n({path:[],method:"RegExp"})}return(0,m.default)(t,[{key:"getCloudEnv",value:function(t){if("string"!=typeof t||!t.trim())throw new Error("getCloudEnv参数错误");return{$env:t.replace("$cloudEnv_","")}}},{key:"_callback",value:function(t,e){var n=this._dbCallBacks;n[t]&&n[t].forEach((function(t){t.apply(void 0,(0,c.default)(e))}))}},{key:"_callbackAuth",value:function(t,e){var n=this._authCallBacks;n[t]&&n[t].forEach((function(t){t.apply(void 0,(0,c.default)(e))}))}},{key:"multiSend",value:function(){var t=Array.from(arguments),e=t.map((function(t){var e=t.getAction(),n=t.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:e,command:n}}));return this._callCloudFunction({multiCommand:e,queryList:t})}}]),t}()),wn="token无效,跳转登录页面",Sn="token过期,跳转登录页面",kn={TOKEN_INVALID_TOKEN_EXPIRED:Sn,TOKEN_INVALID_INVALID_CLIENTID:wn,TOKEN_INVALID:wn,TOKEN_INVALID_WRONG_TOKEN:wn,TOKEN_INVALID_ANONYMOUS_USER:wn},Mn={"uni-id-token-expired":Sn,"uni-id-check-token-failed":wn,"uni-id-token-not-exist":wn,"uni-id-check-device-feature-failed":wn};function An(t,e){var n="";return n=t?"".concat(t,"/").concat(e):e,n.replace(/^\//,"")}function Tn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return t.forEach((function(t){!0===t.needLogin?n.push(An(e,t.path)):!1===t.needLogin&&r.push(An(e,t.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Cn(t){return t.split("?")[0].replace(/^\//,"")}function In(){return function(t){var e=t&&t.$page&&t.$page.fullPath||"";return e?("/"!==e.charAt(0)&&(e="/"+e),e):e}(function(){var t=getCurrentPages();return t[t.length-1]}())}function On(){return Cn(In())}function Pn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return!1;if(!(e&&e.list&&e.list.length))return!1;var n=e.list,r=Cn(t);return n.some((function(t){return t.pagePath===r}))}var Dn,Ln=!!_.default.uniIdRouter,En=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.default,e=t.pages,n=void 0===e?[]:e,r=t.subPackages,i=void 0===r?[]:r,o=t.uniIdRouter,a=void 0===o?{}:o,s=t.tabBar,l=void 0===s?{}:s,u=a.loginPage,h=a.needLogin,p=void 0===h?[]:h,f=a.resToLogin,d=void 0===f||f,g=Tn(n),y=g.needLoginPage,v=g.notNeedLoginPage,m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],n=[];return t.forEach((function(t){var r=t.root,i=t.pages,o=void 0===i?[]:i,a=Tn(o,r),s=a.needLoginPage,l=a.notNeedLoginPage;e.push.apply(e,(0,c.default)(s)),n.push.apply(n,(0,c.default)(l))})),{needLoginPage:e,notNeedLoginPage:n}}(i),x=m.needLoginPage,b=m.notNeedLoginPage;return{loginPage:u,routerNeedLogin:p,resToLogin:d,needLoginPage:[].concat((0,c.default)(y),(0,c.default)(x)),notNeedLoginPage:[].concat((0,c.default)(v),(0,c.default)(b)),loginPageInTabBar:Pn(u,l)}}(),Rn=En.loginPage,Nn=En.routerNeedLogin,Bn=En.resToLogin,jn=En.needLoginPage,Fn=En.notNeedLoginPage,zn=En.loginPageInTabBar;if(jn.indexOf(Rn)>-1)throw new Error("Login page [".concat(Rn,'] should not be "needLogin", please check your pages.json'));function Hn(t){var e=On();if("/"===t.charAt(0))return t;var n=t.split("?"),r=(0,l.default)(n,2),i=r[0],o=r[1],a=i.replace(/^\//,"").split("/"),s=e.split("/");s.pop();for(var u=0;u<a.length;u++){var c=a[u];".."===c?s.pop():"."!==c&&s.push(c)}return""===s[0]&&s.shift(),"/"+s.join("/")+(o?"?"+o:"")}function Vn(t){var e=Cn(Hn(t));return!(Fn.indexOf(e)>-1)&&(jn.indexOf(e)>-1||Nn.some((function(e){return function(t,e){return new RegExp(e).test(t)}(t,e)})))}function Un(t){var e=t.redirect,n=Cn(e),r=Cn(Rn);return On()!==r&&n!==r}function $n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.api,n=t.redirect;if(n&&Un({redirect:n})){var i=function(t,e){return"/"!==t.charAt(0)&&(t="/"+t),e?t.indexOf("?")>-1?t+"&uniIdRedirectUrl=".concat(encodeURIComponent(e)):t+"?uniIdRedirectUrl=".concat(encodeURIComponent(e)):t}(Rn,n);zn?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");var o={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){o[e]({url:i})}))}}function Wn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var t,e=wt(),n=e.token,r=e.tokenExpired;if(n){if(r<Date.now()){var i="uni-id-token-expired";t={errCode:i,errMsg:Mn[i]}}}else{var o="uni-id-check-token-failed";t={errCode:o,errMsg:Mn[o]}}return t}();if(Vn(e)&&r){if(r.uniIdRedirectUrl=e,ct(ot).length>0)return setTimeout((function(){ft(ot,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Gn(){!function(){var t=In(),e=Wn({url:t}),n=e.abortLoginPageJump,r=e.autoToLoginPage;n||r&&$n({api:"redirectTo",redirect:t})}();for(var t=["navigateTo","redirectTo","reLaunch","switchTab"],e=function(e){var n=t[e];r.addInterceptor(n,{invoke:function(t){var e=Wn({url:t.url}),r=e.abortLoginPageJump,i=e.autoToLoginPage;return r?t:i?($n({api:n,redirect:Hn(t.url)}),!1):t}})},n=0;n<t.length;n++)e(n)}function qn(){this.onResponse((function(t){var e=t.type,n=t.content,r=!1;switch(e){case"cloudobject":r=function(t){if("object"!=(0,u.default)(t))return!1;var e=t||{},n=e.errCode;return n in Mn}(n);break;case"clientdb":r=function(t){if("object"!=(0,u.default)(t))return!1;var e=t||{},n=e.errCode;return n in kn}(n)}r&&function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=ct(ot);yt().then((function(){var n=In();if(n&&Un({redirect:n}))return e.length>0?ft(ot,Object.assign({uniIdRedirectUrl:n},t)):void(Rn&&$n({api:"navigateTo",redirect:n}))}))}(n)}))}function Yn(t){!function(t){t.onResponse=function(t){ht(it,t)},t.offResponse=function(t){pt(it,t)}}(t),function(t){t.onNeedLogin=function(t){ht(ot,t)},t.offNeedLogin=function(t){pt(ot,t)},Ln&&(X("_globalUniCloudStatus").needLoginInit||(X("_globalUniCloudStatus").needLoginInit=!0,yt().then((function(){Gn.call(t)})),Bn&&qn.call(t)))}(t),function(t){t.onRefreshToken=function(t){ht(at,t)},t.offRefreshToken=function(t){pt(at,t)}}(t)}var Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Zn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Kn(){var t,e,n=wt().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse((e=r[1],decodeURIComponent(Dn(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}Dn="function"!=typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!Zn.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o<t.length;)e=Xn.indexOf(t.charAt(o++))<<18|Xn.indexOf(t.charAt(o++))<<12|(n=Xn.indexOf(t.charAt(o++)))<<6|(r=Xn.indexOf(t.charAt(o++))),i+=64===n?String.fromCharCode(e>>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var Jn=M((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(t,e){return t.tempFiles.forEach((function(t,n){t.name||(t.name=t.path.substring(t.path.lastIndexOf("/")+1)),e&&(t.fileType=e),t.cloudPath=Date.now()+"_"+n+t.name.substring(t.name.lastIndexOf("."))})),t.tempFilePaths||(t.tempFilePaths=t.tempFiles.map((function(t){return t.path}))),t}function s(t,e,r){var i=r.onChooseFile,o=r.onUploadProgress;return e.then((function(t){if(i){var e=i(t);if(void 0!==e)return Promise.resolve(e).then((function(e){return void 0===e?t:e}))}return t})).then((function(e){return!1===e?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(e=Object.assign({},e)).errMsg=n;var o=e.tempFiles,a=o.length,s=0;return new Promise((function(n){for(;s<r;)l();function l(){var r=s++;if(r>=a)!o.find((function(t){return!t.url&&!t.errMsg}))&&n(e);else{var u=o[r];t.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(t){t.index=r,t.tempFile=u,t.tempFilePath=u.path,i&&i(t)}}).then((function(t){u.url=t.fileID,r<a&&l()})).catch((function(t){u.errMsg=t.errMsg||t.message,r<a&&l()}))}}}))}(t,e,5,o)}))}e.initChooseAndUploadFile=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===e.type?s(t,function(t){var e=t.count,n=t.sizeType,i=t.sourceType,s=void 0===i?["album","camera"]:i,l=t.extension;return new Promise((function(t,i){r.chooseImage({count:e,sizeType:n,sourceType:s,extension:l,success:function(e){t(a(e,"image"))},fail:function(t){i({errMsg:t.errMsg.replace("chooseImage:fail",o)})}})}))}(e),e):"video"===e.type?s(t,function(t){var e=t.camera,n=t.compressed,i=t.maxDuration,s=t.sourceType,l=void 0===s?["album","camera"]:s,u=t.extension;return new Promise((function(t,s){r.chooseVideo({camera:e,compressed:n,maxDuration:i,sourceType:l,extension:u,success:function(e){var n=e.tempFilePath,r=e.duration,i=e.size,o=e.height,s=e.width;t(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:e.tempFile&&e.tempFile.name||"",path:n,size:i,type:e.tempFile&&e.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(t){s({errMsg:t.errMsg.replace("chooseVideo:fail",o)})}})}))}(e),e):s(t,function(t){var e=t.count,n=t.extension;return new Promise((function(t,s){var l=r.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(l=i.chooseMessageFile),"function"!=typeof l)return s({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});l({type:"all",count:e,extension:n,success:function(e){t(a(e))},fail:function(t){s({errMsg:t.errMsg.replace("chooseFile:fail",o)})}})}))}(e),e)}}})),Qn=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Jn);function tr(t){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var t=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){e.push(t[n])})),e}),(function(e,n){if("manual"!==t.loadtime){for(var r=!1,i=[],o=2;o<e.length;o++)e[o]!==n[o]&&(i.push(e[o]),r=!0);e[0]!==n[0]&&(t.mixinDatacomPage.current=t.pageCurrent),t.mixinDatacomPage.size=t.pageSize,t.onMixinDatacomPropsChange(r,i)}}))},methods:{onMixinDatacomPropsChange:function(t,e){},mixinDatacomEasyGet:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getone,r=void 0!==n&&n,i=e.success,o=e.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(e){t.mixinDatacomLoading=!1;var n=e.result,o=n.data,a=n.count;t.getcount&&(t.mixinDatacomPage.count=a),t.mixinDatacomHasMore=o.length<t.pageSize;var s=r?o.length?o[0]:void 0:o;t.mixinDatacomResData=s,i&&i(s)})).catch((function(e){t.mixinDatacomLoading=!1,t.mixinDatacomErrorMessage=e,o&&o(e)})))},mixinDatacomGet:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.database(this.spaceInfo),i=n.action||this.action;i&&(r=r.action(i));var o=n.collection||this.collection;r=Array.isArray(o)?(e=r).collection.apply(e,(0,c.default)(o)):r.collection(o);var a=n.where||this.where;a&&Object.keys(a).length&&(r=r.where(a));var s=n.field||this.field;s&&(r=r.field(s));var l=n.foreignKey||this.foreignKey;l&&(r=r.foreignKey(l));var u=n.groupby||this.groupby;u&&(r=r.groupBy(u));var h=n.groupField||this.groupField;h&&(r=r.groupField(h)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var p=n.orderby||this.orderby;p&&(r=r.orderBy(p));var f=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,d=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,g=void 0!==n.getcount?n.getcount:this.getcount,y=void 0!==n.gettree?n.gettree:this.gettree,v=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,m={getCount:g},_={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return y&&(m.getTree=_),v&&(m.getTreePath=_),r=r.skip(d*(f-1)).limit(d).get(m),r}}}}function er(t){return X("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",t.config.spaceId))}function nr(){return rr.apply(this,arguments)}function rr(){return rr=(0,h.default)(a.default.mark((function t(){var e,n,i,o,s,l,u,c=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},n=e.openid,i=e.callLoginByWeixin,o=void 0!==i&&i,s=er(this),"mp-weixin"===G){t.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(G,"`"));case 4:if(!n||!o){t.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){t.next=8;break}return t.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return t.next=10,new Promise((function(t,e){r.login({success:function(e){t(e.code)},fail:function(t){e(new Error(t.errMsg))}})}));case 10:return l=t.sent,u=this.importObject("uni-id-co",{customUI:!0}),t.next=14,u.secureNetworkHandshakeByWeixin({code:l,callLoginByWeixin:o});case 14:return s.mpWeixinCode=l,t.abrupt("return",{code:l});case 16:case"end":return t.stop()}}),t,this)}))),rr.apply(this,arguments)}function ir(t){return or.apply(this,arguments)}function or(){return or=(0,h.default)(a.default.mark((function t(e){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=er(this),t.abrupt("return",(n.initPromise||(n.initPromise=nr.call(this,e)),n.initPromise));case 2:case"end":return t.stop()}}),t,this)}))),or.apply(this,arguments)}function ar(t){var e={getSystemInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(n){return new Promise((function(r,i){e[t](S(S({},n),{},{success:function(t){r(t)},fail:function(t){i(t)}}))}))}}var sr=function(t){(0,f.default)(n,t);var e=k(n);function n(){var t;return(0,v.default)(this,n),t=e.call(this),t._uniPushMessageCallback=t._receivePushMessage.bind((0,s.default)(t)),t._currentMessageId=-1,t._payloadQueue=[],t}return(0,m.default)(n,[{key:"init",value:function(){var t=this;return Promise.all([ar("getSystemInfo")(),ar("getPushClientId")()]).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,l.default)(e,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,o=n[1];o=void 0===o?{}:o;var a=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");t._appId=i,t._pushClientId=a,t._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),t.emit("open"),t._initMessageListener()}),(function(e){throw t.emit("error",e),t.close(),e}))}},{key:"open",value:function(){var t=(0,h.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this.init());case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(t){if("receive"!==t.type)return!1;var e=t&&t.data&&t.data.payload;return!(!e||"UNI_CLOUD_SSE"!==e.channel||e.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(t){if(this._isUniCloudSSE(t)){var e=t&&t.data&&t.data.payload,n=e.action,r=e.messageId,i=e.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var t=this;;){var e=this._payloadQueue.find((function(e){return e.messageId===t._currentMessageId+1}));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}},{key:"_parseMessagePayload",value:function(t){var e=t.action,n=t.messageId,r=t.message;"end"===e?this._end({messageId:n,message:r}):"message"===e&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.messageId,t.message);this.emit("message",e)}},{key:"_end",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.messageId,t.message);this.emit("end",e),this.close()}},{key:"_initMessageListener",value:function(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function t(){(0,v.default)(this,t),this._callback={}}return(0,m.default)(t,[{key:"addListener",value:function(t,e){this._callback[t]||(this._callback[t]=[]),this._callback[t].push(e)}},{key:"on",value:function(t,e){return this.addListener(t,e)}},{key:"removeListener",value:function(t,e){if(!e)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[t];if(n){var r=function(t,e){for(var n=t.length-1;n>=0;n--)if(t[n]===e)return n;return-1}(n,e);n.splice(r,1)}}},{key:"off",value:function(t,e){return this.removeListener(t,e)}},{key:"removeAllListener",value:function(t){delete this._callback[t]}},{key:"emit",value:function(t){for(var e=this._callback[t],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(e)for(var o=0;o<e.length;o++)e[o].apply(e,r)}}]),t}());var lr={tcb:Ne,tencent:Ne,aliyun:It,private:je,alipay:Ge},ur=new(function(){function t(){(0,v.default)(this,t)}return(0,m.default)(t,[{key:"init",value:function(t){var e={},n=lr[t.provider];if(!n)throw new Error("未提供正确的provider参数");return e=n.init(t),function(t){t._initPromiseHub||(t._initPromiseHub=new V({createPromise:function(){var e=Promise.resolve();e=new Promise((function(t){setTimeout((function(){t()}),1)}));var n=t.auth();return e.then((function(){return n.getLoginState()})).then((function(t){return t?Promise.resolve():n.signInAnonymously()}))}}))}(e),un(e),function(t){var e=t.uploadFile;t.uploadFile=function(t){return e.call(this,t)}}(e),function(t){t.database=function(e){if(e&&Object.keys(e).length>0)return t.init(e).database();if(this._database)return this._database;var n=xn(bn,{uniClient:t});return this._database=n,n},t.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return t.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=xn(bn,{uniClient:t,isJQL:!0});return this._databaseForJQL=n,n}}(e),function(t){t.getCurrentUserInfo=Kn,t.chooseAndUploadFile=Qn.initChooseAndUploadFile(t),Object.assign(t,{get mixinDatacom(){return tr(t)}}),t.SSEChannel=sr,t.initSecureNetworkByWeixin=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.openid,r=e.callLoginByWeixin,i=void 0!==r&&r;return ir.call(t,{openid:n,callLoginByWeixin:i})}}(t),t.importObject=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.customUI=e.customUI||t.customUI,t.parseSystemError=e.parseSystemError||t.parseSystemError,Object.assign(t.loadingOptions,e.loadingOptions),Object.assign(t.errorOptions,e.errorOptions),"object"==(0,u.default)(e.secretMethods)&&(t.secretMethods=e.secretMethods),t}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var i=n,o=i.customUI,s=i.loadingOptions,l=i.errorOptions,c=i.parseSystemError,p=!o;return new Proxy({},{get:function(i,o){switch(o){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fn,n=t.interceptorName,r=t.getCallbackArgs;return(0,h.default)(a.default.mark((function t(){var i,o,s,l,u,c,h=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(i=h.length,o=new Array(i),s=0;s<i;s++)o[s]=h[s];return l=r?r({params:o}):{},t.prev=2,t.next=5,tt(et(n,"invoke"),S({},l));case 5:return t.next=7,e.apply(void 0,o);case 7:return u=t.sent,t.next=10,tt(et(n,"success"),S(S({},l),{},{result:u}));case 10:return t.abrupt("return",u);case 13:return t.prev=13,t.t0=t["catch"](2),c=t.t0,t.next=18,tt(et(n,"fail"),S(S({},l),{},{error:c}));case 18:throw c;case 19:return t.prev=19,t.next=22,tt(et(n,"complete"),S(S({},l),{},c?{error:c}:{result:u}));case 22:return t.finish(19);case 23:case"end":return t.stop()}}),t,null,[[2,13,19,23]])})))}({fn:function(){var i=(0,h.default)(a.default.mark((function i(){var d,g,y,v,m,_,x,b,w,k,M,A,T,C,I,O=arguments;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(p&&r.showLoading({title:s.title,mask:s.mask}),g=O.length,y=new Array(g),v=0;v<g;v++)y[v]=O[v];return m={name:e,type:D,data:{method:o,params:y}},"object"==(0,u.default)(n.secretMethods)&&function(t,e){var n=e.data.method,r=t.secretMethods||{},i=r[n]||r["*"];i&&(e.secretType=i)}(n,m),_=!1,i.prev=5,i.next=8,t.callFunction(m);case 8:d=i.sent,i.next=14;break;case 11:i.prev=11,i.t0=i["catch"](5),_=!0,d={result:new xt(i.t0)};case 14:if(x=d.result||{},b=x.errSubject,w=x.errCode,k=x.errMsg,M=x.newToken,p&&r.hideLoading(),M&&M.token&&M.tokenExpired&&(St(M),ft(at,S({},M))),!w){i.next=39;break}if(A=k,!_||!c){i.next=24;break}return i.next=20,c({objectName:e,methodName:o,params:y,errSubject:b,errCode:w,errMsg:k});case 20:if(i.t1=i.sent.errMsg,i.t1){i.next=23;break}i.t1=k;case 23:A=i.t1;case 24:if(!p){i.next=37;break}if("toast"!==l.type){i.next=29;break}r.showToast({title:A,icon:"none"}),i.next=37;break;case 29:if("modal"===l.type){i.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(l.type));case 31:return i.next=33,(0,h.default)(a.default.mark((function t(){var e,n,i,o,s,l,u=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:{},n=e.title,i=e.content,o=e.showCancel,s=e.cancelText,l=e.confirmText,t.abrupt("return",new Promise((function(t,e){r.showModal({title:n,content:i,showCancel:o,cancelText:s,confirmText:l,success:function(e){t(e)},fail:function(){t({confirm:!1,cancel:!0})}})})));case 2:case"end":return t.stop()}}),t)})))({title:"提示",content:A,showCancel:l.retry,cancelText:"取消",confirmText:l.retry?"重试":"确定"});case 33:if(T=i.sent,C=T.confirm,!l.retry||!C){i.next=37;break}return i.abrupt("return",f.apply(void 0,y));case 37:throw I=new xt({subject:b,code:w,message:k,requestId:d.requestId}),I.detail=d.result,ft(it,{type:ut,content:I}),I;case 39:return i.abrupt("return",(ft(it,{type:ut,content:d.result}),d.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function f(){return i.apply(this,arguments)}return f}(),interceptorName:"callObject",getCallbackArgs:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.params;return{objectName:e,methodName:o,params:n}}})}})}}(t)}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(t){if(e[t]){var n=e[t];e[t]=function(){return n.apply(e,Array.from(arguments))},e[t]=function(t,e){return function(n){var r=this,i=!1;if("callFunction"===e){var o=n&&n.type||P;i=o!==P}var a="callFunction"===e&&!i,s=this._initPromiseHub.exec();n=n||{};var l=vt(n),u=l.success,c=l.fail,h=l.complete,p=s.then((function(){return i?Promise.resolve():tt(et(e,"invoke"),n)})).then((function(){return t.call(r,n)})).then((function(t){return i?Promise.resolve(t):tt(et(e,"success"),t).then((function(){return tt(et(e,"complete"),t)})).then((function(){return a&&ft(it,{type:lt,content:t}),Promise.resolve(t)}))}),(function(t){return i?Promise.reject(t):tt(et(e,"fail"),t).then((function(){return tt(et(e,"complete"),t)})).then((function(){return ft(it,{type:lt,content:t}),Promise.reject(t)}))}));if(!(u||c||h))return p;p.then((function(t){u&&u(t),h&&h(t),a&&ft(it,{type:lt,content:t})}),(function(t){c&&c(t),h&&h(t),a&&ft(it,{type:lt,content:t})}))}}(e[t],t).bind(e)}})),e.init=this.init,e}}]),t}());(function(){var t=q,e={};if(t&&1===t.length)e=t[0],ur=ur.init(e),ur._isDefault=!0;else{var n;n=t&&t.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(t){ur[t]=function(){return console.error(n),Promise.reject(new xt({code:"SYS_ERR",message:n}))}}))}Object.assign(ur,{get mixinDatacom(){return tr(ur)}}),Yn(ur),ur.addInterceptor=J,ur.removeInterceptor=Q,ur.interceptObject=nt})();var cr=ur;e.default=cr}).call(this,n("c8ba"),n("543d")["default"],n("bc2e")["default"])},ac88:function(t,e,n){(function(t,r){var i,o,a,s=n("7037");!function(t,n){"object"==s(e)&&"object"==s(r)?r.exports=n():(o=[],i=n,a="function"===typeof i?i.apply(e,o):i,void 0===a||(r.exports=a))}(self,(function(){return e={779:function(t,e,n){var r=n(173);t.exports=function t(e,n,i){return r(n)||(i=n||i,n=[]),i=i||{},e instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return h(t,e)}(e,n):r(e)?function(e,n,r){for(var i=[],o=0;o<e.length;o++)i.push(t(e[o],n,r).source);return h(new RegExp("(?:"+i.join("|")+")",p(r)),n)}(e,n,i):function(t,e,n){return f(o(t,n),e,n)}(e,n,i)},t.exports.parse=o,t.exports.compile=function(t,e){return l(o(t,e),e)},t.exports.tokensToFunction=l,t.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var h=n[0],p=n[1],f=n.index;if(s+=t.slice(a,f),a=f+h.length,p)s+=p[1];else{var d=t[a],g=n[2],y=n[3],v=n[4],m=n[5],_=n[6],x=n[7];s&&(r.push(s),s="");var b=null!=g&&null!=d&&d!==g,w="+"===_||"*"===_,S="?"===_||"*"===_,k=n[2]||l,M=v||m;r.push({name:y||o++,prefix:g||"",delimiter:k,optional:S,repeat:w,partial:b,asterisk:!!x,pattern:M?c(M):x?".*":"[^"+u(k)+"]+?"})}}return a<t.length&&(s+=t.substr(a)),s&&r.push(s),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function l(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"==s(t[i])&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",p(e)));return function(e,i){for(var o="",s=e||{},l=(i||{}).pretty?a:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!=typeof c){var h,p=s[c.name];if(null==p){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(h=l(p[f]),!n[u].test(h))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(h)+"`");o+=(0===f?c.prefix:c.delimiter)+h}}else{if(h=c.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[u].test(h))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+h+'"');o+=c.prefix+h}}else o+=c}return o}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function h(t,e){return t.keys=e,t}function p(t){return t&&t.sensitive?"":"i"}function f(t,e,n){r(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<t.length;s++){var l=t[s];if("string"==typeof l)a+=u(l);else{var c=u(l.prefix),f="(?:"+l.pattern+")";e.push(l),l.repeat&&(f+="(?:"+c+f+")*"),a+=f=l.optional?l.partial?c+"("+f+")?":"(?:"+c+"("+f+"))?":c+"("+f+")"}}var d=u(n.delimiter||"/"),g=a.slice(-d.length)===d;return i||(a=(g?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=o?"$":i&&g?"":"(?="+d+"|$)",h(new RegExp("^"+a,p(n)),e)}},173:function(t){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},844:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.buildVueRouter=e.buildVueRoutes=void 0;var i=n(366),o=n(883),a=n(789),s=n(169);e.buildVueRoutes=function(t,e){for(var n=t.routesMap,r=n.pathMap,l=n.finallyPathList,u=Object.keys(e),c=0;c<u.length;c++){var h=u[c],p=r[h],f=e[h];if(p){var d=a.getRoutePath(p,t).finallyPath;if(d instanceof Array)throw new Error("非 vueRouterDev 模式下,alias、aliasPath、path 无法提供数组类型! "+JSON.stringify(p));null!=p.name&&(f.name=p.name);var g=f.path,y=f.alias;delete f.alias,f.path=d,"/"===g&&null!=y&&(f.alias=y,f.path=g),p.beforeEnter&&(f.beforeEnter=function(e,n,r){s.onTriggerEachHook(e,n,t,i.hookToggle.enterHooks,r)})}else o.warn(h+" 路由地址在路由表中未找到,确定是否传递漏啦",t,!0)}return l.includes("*")&&(e["*"]=r["*"]),e},e.buildVueRouter=function(t,e,n){var i;i="[object Array]"===a.getDataType(n)?n:Object.values(n);var o=t.options.h5,s=o.scrollBehavior,l=o.fallback,u=e.options.scrollBehavior;e.options.scrollBehavior=function(t,e,n){return u&&u(t,e,n),s(t,e,n)},e.fallback=l;var c=new e.constructor(r(r({},t.options.h5),{base:e.options.base,mode:e.options.mode,routes:i}));e.matcher=c.matcher}},147:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.proxyH5Mount=e.proxyEachHook=e.MyArray=void 0;var i=function(t){function e(n,r,i,o){var a=t.call(this)||this;return a.router=n,a.vueEachArray=r,a.myEachHook=i,a.hookName=o,Object.setPrototypeOf(a,e.prototype),a}return r(e,t),e.prototype.push=function(t){var e=this;this.vueEachArray.push(t);var n=this.length;this[this.length]=function(t,r,i){n>0?e.vueEachArray[n](t,r,(function(){i&&i()})):e.myEachHook(t,r,(function(o){!1===o?i(!1):e.vueEachArray[n](t,r,(function(t){i(o)}))}),e.router,!0)}},e}(Array);e.MyArray=i,e.proxyEachHook=function(t,e){for(var n=["beforeHooks","afterHooks"],r=0;r<n.length;r++){var o=n[r],a=t.lifeCycle[o][0];if(a){var s=e[o];e[o]=new i(t,s,a,o)}}},e.proxyH5Mount=function(t){var e;if(0===t.mount.length){if(null===(e=t.options.h5)||void 0===e?void 0:e.vueRouterDev)return;navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)&&setTimeout((function(){if(document.getElementsByTagName("uni-page").length>0)return!1;window.location.reload()}),0)}else t.mount[0].app.$mount(),t.mount=[]}},814:function(e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.tabIndexSelect=n.runtimeQuit=n.registerLoddingPage=void 0;var i=null,o=null;n.registerLoddingPage=function(t){if(t.options.registerLoadingPage){var e=t.options.APP,n=e.loadingPageHook,i=e.loadingPageStyle;n(new plus.nativeObj.View("router-loadding",r({top:"0px",left:"0px",height:"100%",width:"100%"},i())))}},n.runtimeQuit=function(e){void 0===e&&(e="再按一次退出应用");var n=+new Date;i?n-i<1e3&&plus.runtime.quit():(i=n,t.showToast({title:e,icon:"none",position:"bottom",duration:1e3}),setTimeout((function(){i=null}),1e3))},n.tabIndexSelect=function(e,n){if(!__uniConfig.tabBar||!Array.isArray(__uniConfig.tabBar.list))return!1;for(var r=__uniConfig.tabBar.list,i=[],a=0,s=0;s<r.length;s++){var l=r[s];if("/"+l.pagePath!==e.path&&"/"+l.pagePath!==n.path||(l.pagePath===n.path&&(a=s),i.push(l)),2===i.length)break}return 2===i.length&&(null==o&&(o=t.requireNativePlugin("uni-tabview")),o.switchSelect({index:a}),!0)}},334:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEnterPath=void 0,e.getEnterPath=function(t,e){switch(e.options.platform){case"mp-alipay":case"mp-weixin":case"mp-toutiao":case"mp-qq":return t.$options.mpInstance.route;case"mp-baidu":return t.$options.mpInstance.is||t.$options.mpInstance.pageinstance.route}return t.$options.mpInstance.route}},282:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.proxyHookName=e.proxyHookDeps=e.lifeCycle=e.baseConfig=e.mpPlatformReg=void 0;var r=n(883);e.mpPlatformReg="(^mp-weixin$)|(^mp-baidu$)|(^mp-alipay$)|(^mp-toutiao$)|(^mp-qq$)|(^mp-360$)",e.baseConfig={h5:{paramsToQuery:!1,vueRouterDev:!1,vueNext:!1,mode:"hash",base:"/",linkActiveClass:"router-link-active",linkExactActiveClass:"router-link-exact-active",scrollBehavior:function(t,e,n){return{x:0,y:0}},fallback:!0},APP:{registerLoadingPage:!0,loadingPageStyle:function(){return JSON.parse('{"backgroundColor":"#FFF"}')},loadingPageHook:function(t){t.show()},launchedHook:function(){plus.navigator.closeSplashscreen()},animation:{}},applet:{animationDuration:300},platform:"h5",keepUniOriginNav:!1,debugger:!1,routerBeforeEach:function(t,e,n){n()},routerAfterEach:function(t,e){},routerErrorEach:function(t,e){e.$lockStatus=!1,r.err(t,e,!0)},detectBeforeLock:function(t,e,n){},routes:[{path:"/choose-location"},{path:"/open-location"},{path:"/preview-image"}]},e.lifeCycle={beforeHooks:[],afterHooks:[],routerBeforeHooks:[],routerAfterHooks:[],routerErrorHooks:[]},e.proxyHookDeps={resetIndex:[],hooks:{},options:{}},e.proxyHookName=["onLaunch","onShow","onHide","onError","onInit","onLoad","onReady","onUnload","onResize","created","beforeMount","mounted","beforeDestroy","destroyed"]},801:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createRouteMap=void 0;var r=n(883),i=n(789);e.createRouteMap=function(t,e){var n={finallyPathList:[],finallyPathMap:Object.create(null),aliasPathMap:Object.create(null),pathMap:Object.create(null),vueRouteMap:Object.create(null),nameMap:Object.create(null)};return e.forEach((function(e){var o=i.getRoutePath(e,t),a=o.finallyPath,s=o.aliasPath,l=o.path;if(null==l)throw new Error("请提供一个完整的路由对象,包括以绝对路径开始的 ‘path’ 字符串 "+JSON.stringify(e));if(a instanceof Array&&!t.options.h5.vueRouterDev&&"h5"===t.options.platform)throw new Error("非 vueRouterDev 模式下,route.alias 目前无法提供数组类型! "+JSON.stringify(e));var u=a,c=s;"h5"!==t.options.platform&&0!==u.indexOf("/")&&"*"!==l&&r.warn("当前路由对象下,route:"+JSON.stringify(e)+" 是否缺少了前缀 ‘/’",t,!0),n.finallyPathMap[u]||(n.finallyPathMap[u]=e,n.aliasPathMap[c]=e,n.pathMap[l]=e,n.finallyPathList.push(u),null!=e.name&&(n.nameMap[e.name]=e))})),n}},662:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerEachHooks=e.registerRouterHooks=e.registerHook=void 0;var r=n(366),i=n(169);function o(t,e){t[0]=e}e.registerHook=o,e.registerRouterHooks=function(t,e){return o(t.routerBeforeHooks,(function(t,n,r){e.routerBeforeEach(t,n,r)})),o(t.routerAfterHooks,(function(t,n){e.routerAfterEach(t,n)})),o(t.routerErrorHooks,(function(t,n){e.routerErrorEach(t,n)})),t},e.registerEachHooks=function(t,e,n){o(t.lifeCycle[e],(function(t,o,a,s,l){l?i.onTriggerEachHook(t,o,s,r.hookToggle[e],a):n(t,o,a)}))}},460:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initMixins=e.getMixins=void 0;var i=n(801),o=n(844),a=n(147),s=n(814),l=n(845),u=n(890),c=n(789),h=n(334),p=n(282),f=!1,d=!1,g={app:!1,page:""};function y(t,e){var n=e.options.platform;return new RegExp(p.mpPlatformReg,"g").test(n)&&(n="app-lets"),{h5:{beforeCreate:function(){var t;if(this.$options.router){e.$route=this.$options.router;var n=[];(null===(t=e.options.h5)||void 0===t?void 0:t.vueRouterDev)?n=e.options.routes:(n=i.createRouteMap(e,this.$options.router.options.routes).finallyPathMap,e.routesMap.vueRouteMap=n,o.buildVueRoutes(e,n)),o.buildVueRouter(e,this.$options.router,n),a.proxyEachHook(e,this.$options.router)}}},"app-plus":{beforeCreate:function(){f||(f=!0,l.proxyPageHook(this,e,"app"),s.registerLoddingPage(e))}},"app-lets":{beforeCreate:function(){c.voidFun("UNI-SIMPLE-ROUTER");var t=!0,n=this.$options.mpType;d||("component"===n?t=c.assertParentChild(g.page,this):"page"===n?(g[n]=h.getEnterPath(this,e),e.enterPath=g[n]):g[n]=!0,t&&l.proxyPageHook(this,e,n))},onLoad:function(){c.voidFun("UNI-SIMPLE-ROUTER"),!d&&c.assertParentChild(g.page,this)&&(d=!0,u.forceGuardEach(e))}}}[n]}e.getMixins=y,e.initMixins=function(t,e){var n=i.createRouteMap(e,e.options.routes);e.routesMap=n,t.mixin(r({},y(0,e)))}},789:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},o=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.deepDecodeQuery=e.resolveAbsolutePath=e.assertParentChild=e.lockDetectWarn=e.deepClone=e.baseClone=e.assertDeepObject=e.paramsToQuery=e.forMatNextToFrom=e.urlToJson=e.getUniCachePage=e.copyData=e.getDataType=e.routesForMapRoute=e.notRouteTo404=e.getWildcardRule=e.assertNewOptions=e.getRoutePath=e.notDeepClearNull=e.mergeConfig=e.timeOut=e.def=e.voidFun=void 0;var a=n(282),l=n(169),u=n(883),c=n(890),h=n(779);function p(t,e){for(var n=Object.create(null),i=Object.keys(t).concat(["resolveQuery","parseQuery"]),a=0;a<i.length;a+=1){var s=i[a];null!=e[s]?e[s].constructor===Object?n[s]=r(r({},t[s]),e[s]):n[s]="routes"===s?o(t[s],e[s]):e[s]:n[s]=t[s]}return n}function f(t,e){var n=t.aliasPath||t.alias||t.path;return"h5"!==e.options.platform&&(n=t.path),{finallyPath:n,aliasPath:t.aliasPath||t.path,path:t.path,alias:t.alias}}function d(t,e){var n=t.routesMap.finallyPathMap["*"];if(n)return n;throw e&&l.ERRORHOOK[0](e,t),new Error("当前路由表匹配规则已全部匹配完成,未找到满足的匹配规则。你可以使用 '*' 通配符捕捉最后的异常")}function g(t){return Object.prototype.toString.call(t)}function y(t,e){if(null==t)e=t;else for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n],o=i;t[i]!==t&&("object"==s(t[i])?(e[o]="[object Array]"===g(t[i])?[]:{},e[o]=y(t[i],e[o])):e[o]=t[i])}return e}function v(t){var e="[object Array]"===g(t)?[]:{};return y(t,e),e}e.voidFun=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e.def=function(t,e,n){Object.defineProperty(t,e,{get:function(){return n()}})},e.timeOut=function(t){return new Promise((function(e){setTimeout((function(){e()}),t)}))},e.mergeConfig=p,e.notDeepClearNull=function(t){for(var e in t)null==t[e]&&delete t[e];return t},e.getRoutePath=f,e.assertNewOptions=function(t){var e,n=t.platform,r=t.routes;if(null==n)throw new Error("你在实例化路由时必须传递 'platform'");if(null==r||0===r.length)throw new Error("你在实例化路由时必须传递 routes 为空,这是无意义的。");return"h5"===t.platform&&(null===(e=t.h5)||void 0===e?void 0:e.vueRouterDev)&&(a.baseConfig.routes=[]),p(a.baseConfig,t)},e.getWildcardRule=d,e.notRouteTo404=function(t,e,n,r){if("*"!==e.path)return e;var i=e.redirect;if(void 0===i)throw new Error(" * 通配符必须配合 redirect 使用。redirect: string | Location | Function");var o=i;return"function"==typeof o&&(o=o(n)),c.navjump(o,t,r,void 0,void 0,void 0,!1)},e.routesForMapRoute=function t(e,n,r,i){var o;if(void 0===i&&(i=!1),null===(o=e.options.h5)||void 0===o?void 0:o.vueRouterDev)return{path:n};for(var a=n.split("?")[0],s="",l=e.routesMap,u=0;u<r.length;u++)for(var c=l[r[u]],p=0,f=Object.entries(c);p<f.length;p++){var y=f[p],v=y[0],m=y[1];if("*"!==v){var _=m,x=v;if("[object Array]"===g(c)&&(x=_),null!=h(x).exec(a))return"[object String]"===g(_)?l.finallyPathMap[_]:_}else""===s&&(s="*")}if(i)return{};if(l.aliasPathMap){var b=t(e,n,["aliasPathMap"],!0);if(Object.keys(b).length>0)return b}if(""!==s)return d(e);throw new Error(n+" 路径无法在路由表中找到!检查跳转路径及路由表")},e.getDataType=g,e.copyData=function(t){return JSON.parse(JSON.stringify(t))},e.getUniCachePage=function(t){var e=getCurrentPages();if(null==t)return e;if(0===e.length)return e;var n=e.reverse()[t];return null==n?[]:n},e.urlToJson=function(t){var e={},n=t.split("?"),r=n[0],i=n[1];if(null!=i)for(var o=0,a=i.split("&");o<a.length;o++){var s=a[o].split("=");e[s[0]]=s[1]}return{path:r,query:e}},e.forMatNextToFrom=function(t,e,n){var r=[e,n],i=r[0],o=r[1];if("h5"===t.options.platform){var a=t.options.h5,s=a.vueNext,l=a.vueRouterDev;s||l||(i=c.createRoute(t,void 0,i),o=c.createRoute(t,void 0,o))}else i=c.createRoute(t,void 0,v(i)),o=c.createRoute(t,void 0,v(o));return{matTo:i,matFrom:o}},e.paramsToQuery=function(t,e){var n;if("h5"===t.options.platform&&!(null===(n=t.options.h5)||void 0===n?void 0:n.paramsToQuery))return e;if("[object Object]"===g(e)){var o=e,a=o.name,s=o.params,u=i(o,["name","params"]),c=s;if("h5"!==t.options.platform&&null==c&&(c={}),null!=a&&null!=c){var h=t.routesMap.nameMap[a];null==h&&(h=d(t,{type:2,msg:"命名路由为:"+a+" 的路由,无法在路由表中找到!",toRule:e}));var p=f(h,t).finallyPath;if(!p.includes(":"))return r(r({},u),{path:p,query:c});l.ERRORHOOK[0]({type:2,msg:"动态路由:"+p+" 无法使用 paramsToQuery!",toRule:e},t)}}return e},e.assertDeepObject=function(t){var e=null;try{e=JSON.stringify(t).match(/\{|\[|\}|\]/g)}catch(t){u.warnLock("传递的参数解析对象失败。"+t)}return null!=e&&e.length>3},e.baseClone=y,e.deepClone=v,e.lockDetectWarn=function(t,e,n,r,i,o){if(void 0===i&&(i={}),"afterHooks"===o)r();else{var a=t.options.detectBeforeLock;a&&a(t,e,n),t.$lockStatus?t.options.routerErrorEach({type:2,msg:"当前页面正在处于跳转状态,请稍后再进行跳转....",NAVTYPE:n,uniActualData:i},t):r()}},e.assertParentChild=function(t,e){for(;null!=e.$parent;){var n=e.$parent.$mp;if(n.page&&n.page.is===t)return!0;e=e.$parent}try{if(e.$mp.page.is===t||e.$mp.page.route===t)return!0}catch(t){return!1}return!1},e.resolveAbsolutePath=function(t,e){var n=/^\/?([^\?\s]+)(\?.+)?$/,r=t.trim();if(!n.test(r))throw new Error("【"+t+"】 路径错误,请提供完整的路径(10001)。");var i=r.match(n);if(null==i)throw new Error("【"+t+"】 路径错误,请提供完整的路径(10002)。");var o=i[2]||"";if(/^\.\/[^\.]+/.test(r))return(e.currentRoute.path+t).replace(/[^\/]+\.\//,"");var a=i[1].replace(/\//g,"\\/").replace(/\.\./g,"[^\\/]+").replace(/\./g,"\\."),s=new RegExp("^\\/"+a+"$"),l=e.options.routes.filter((function(t){return s.test(t.path)}));if(1!==l.length)throw new Error("【"+t+"】 路径错误,尝试转成绝对路径失败,请手动转成绝对路径(10003)。");return l[0].path+o},e.deepDecodeQuery=function t(e){for(var n="[object Array]"===g(e)?[]:{},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i],a=e[o];if("string"==typeof a)try{var l=JSON.parse(decodeURIComponent(a));"object"!=s(l)&&(l=a),n[o]=l}catch(t){try{n[o]=decodeURIComponent(a)}catch(t){n[o]=a}}else if("object"==s(a)){var u=t(a);n[o]=u}else n[o]=a}return n}},883:function(t,e){"use strict";function n(t,e,n,r){if(void 0===r&&(r=!1),!r){var i="[object Object]"===e.toString();if(!1===e)return!1;if(i&&!1===e[t])return!1}return console[t](n),!0}Object.defineProperty(e,"__esModule",{value:!0}),e.warnLock=e.log=e.warn=e.err=e.isLog=void 0,e.isLog=n,e.err=function(t,e,r){n("error",e.options.debugger,t,r)},e.warn=function(t,e,r){n("warn",e.options.debugger,t,r)},e.log=function(t,e,r){n("log",e.options.debugger,t,r)},e.warnLock=function(t){console.warn(t)}},607:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createRouter=e.RouterMount=e.runtimeQuit=void 0,i(n(366),e),i(n(309),e);var o=n(814);Object.defineProperty(e,"runtimeQuit",{enumerable:!0,get:function(){return o.runtimeQuit}});var a=n(963);Object.defineProperty(e,"RouterMount",{enumerable:!0,get:function(){return a.RouterMount}}),Object.defineProperty(e,"createRouter",{enumerable:!0,get:function(){return a.createRouter}})},366:function(t,e){"use strict";var n,r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.rewriteMethodToggle=e.navtypeToggle=e.hookToggle=void 0,(i=e.hookToggle||(e.hookToggle={})).beforeHooks="beforeEach",i.afterHooks="afterEach",i.enterHooks="beforeEnter",(r=e.navtypeToggle||(e.navtypeToggle={})).push="navigateTo",r.replace="redirectTo",r.replaceAll="reLaunch",r.pushTab="switchTab",r.back="navigateBack",(n=e.rewriteMethodToggle||(e.rewriteMethodToggle={})).navigateTo="push",n.navigate="push",n.redirectTo="replace",n.reLaunch="replaceAll",n.switchTab="pushTab",n.navigateBack="back"},309:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},169:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.loopCallHook=e.transitionTo=e.onTriggerEachHook=e.callHook=e.callBeforeRouteLeave=e.HOOKLIST=e.ERRORHOOK=void 0;var i=n(789),o=n(890),a=n(147),l=n(814);function u(t,e,n,r){var o,a=i.getUniCachePage(0);if(Object.keys(a).length>0){var s=void 0;switch("h5"===t.options.platform?s=a.$options.beforeRouteLeave:null!=a.$vm&&(s=a.$vm.$options.beforeRouteLeave),i.getDataType(s)){case"[object Array]":o=(o=s[0]).bind(a);break;case"[object Function]":o=s.bind(a.$vm)}}return c(o,e,n,t,r)}function c(t,e,n,r,i,o){void 0===o&&(o=!0),null!=t&&t instanceof Function?!0===o?t(e,n,i,r,!1):(t(e,n,(function(){}),r,!1),i()):i()}function h(t,e,n,r,o,a){var s=i.forMatNextToFrom(t,e,n),l=s.matTo,u=s.matFrom;"h5"===t.options.platform?p(o,0,a,t,l,u,r):p(o.slice(0,4),0,(function(){a((function(){p(o.slice(4),0,i.voidFun,t,l,u,r)}))}),t,l,u,r)}function p(t,n,a,u,c,h,f){var d=i.routesForMapRoute(u,c.path,["finallyPathMap","pathMap"]);if(t.length-1<n)return a();var g=t[n],y=e.ERRORHOOK[0];g(u,c,h,d,(function(e){if("app-plus"===u.options.platform&&(!1!==e&&"string"!=typeof e&&"object"!=s(e)||l.tabIndexSelect(c,h)),!1===e)"h5"===u.options.platform&&a(!1),y({type:0,msg:"管道函数传递 false 导航被终止!",matTo:c,matFrom:h,nextTo:e},u);else if("string"==typeof e||"object"==s(e)){var i=f,d=e;if("object"==s(e)){var g=e.NAVTYPE;d=r(e,["NAVTYPE"]),null!=g&&(i=g)}o.navjump(d,u,i,{from:h,next:a})}else null==e?(n++,p(t,n,a,u,c,h,f)):y({type:1,msg:"管道函数传递未知类型,无法被识别。导航被终止!",matTo:c,matFrom:h,nextTo:e},u)}))}e.ERRORHOOK=[function(t,e){return e.lifeCycle.routerErrorHooks[0](t,e)}],e.HOOKLIST=[function(t,e,n,r,i){return c(t.lifeCycle.routerBeforeHooks[0],e,n,t,i)},function(t,e,n,r,i){return u(t,e,n,i)},function(t,e,n,r,i){return c(t.lifeCycle.beforeHooks[0],e,n,t,i)},function(t,e,n,r,i){return c(r.beforeEnter,e,n,t,i)},function(t,e,n,r,i){return c(t.lifeCycle.afterHooks[0],e,n,t,i,!1)},function(t,e,n,r,i){return t.$lockStatus=!1,"h5"===t.options.platform&&a.proxyH5Mount(t),c(t.lifeCycle.routerAfterHooks[0],e,n,t,i,!1)}],e.callBeforeRouteLeave=u,e.callHook=c,e.onTriggerEachHook=function(t,n,r,i,o){var a=[];switch(i){case"beforeEach":a=e.HOOKLIST.slice(0,3);break;case"afterEach":a=e.HOOKLIST.slice(4);break;case"beforeEnter":a=e.HOOKLIST.slice(3,4)}h(r,t,n,"push",a,o)},e.transitionTo=h,e.loopCallHook=p},890:function(e,n,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};Object.defineProperty(n,"__esModule",{value:!0}),n.createRoute=n.forceGuardEach=n.backOptionsBuild=n.navjump=n.lockNavjump=void 0;var a=r(366),s=r(99),l=r(789),u=r(169),c=r(845),h=r(169);function p(t,e,n,r,i){l.lockDetectWarn(e,t,n,(function(){"h5"!==e.options.platform&&(e.$lockStatus=!0),f(t,e,n,void 0,r,i)}),i)}function f(e,n,r,o,p,f,g){if(void 0===g&&(g=!0),"back"===r){var y;if(y="string"==typeof e?+e:e.delta||1,"h5"===n.options.platform){n.$route.go(-y);var v=(f||{success:l.voidFun}).success||l.voidFun,m=(f||{complete:l.voidFun}).complete||l.voidFun;return v({errMsg:"navigateBack:ok"}),void m({errMsg:"navigateBack:ok"})}e=d(n,y,f)}var _=s.queryPageToMap(e,n).rule;_.type=a.navtypeToggle[r];var x=l.paramsToQuery(n,_),b=s.resolveQuery(x,n);if("h5"===n.options.platform)if("push"!==r&&(r="replace"),null!=o)o.next(i({replace:"push"!==r},b));else if("push"===r&&Reflect.has(b,"events")){if(Reflect.has(b,"name"))throw new Error("在h5端上使用 'push'、'navigateTo' 跳转时,如果包含 events 不允许使用 name 跳转,因为 name 实现了动态路由。请更换为 path 或者 url 跳转!");t.navigateTo(b,!0,l.voidFun,p)}else n.$route[r](b,b.success||l.voidFun,b.fail||l.voidFun);else{var w={path:""};if(null==o){var S=l.routesForMapRoute(n,b.path,["finallyPathMap","pathMap"]);S=l.notRouteTo404(n,S,b,r),b=i(i(i(i({},S),{params:{}}),b),{path:S.path}),w=c.createToFrom(b,n)}else w=o.from;if(c.createFullPath(b,w),!1===g)return b;u.transitionTo(n,b,w,r,h.HOOKLIST,(function(e){t[a.navtypeToggle[r]](b,!0,e,p)}))}}function d(t,e,n){void 0===n&&(n={});var r=g(t,e,void 0,i({NAVTYPE:"back"},n)),o=i(i({},n),{path:r.path,query:r.query,delta:e});if("[object Object]"===l.getDataType(n)){var a=n,s=a.animationDuration,u=a.animationType;null!=s&&(o.animationDuration=s),null!=u&&(o.animationType=u);var c=n.from;null!=c&&(o.BACKTYPE=c)}return o}function g(t,e,n,r){void 0===e&&(e=0),void 0===r&&(r={});var u={name:"",meta:{},path:"",fullPath:"",NAVTYPE:"",query:{},params:{},BACKTYPE:(n||{BACKTYPE:""}).BACKTYPE||""};if(19970806===e)return u;if("h5"===t.options.platform){var c={path:""};c=null!=n?n:t.$route.currentRoute;var h=l.copyData(c.params);delete h.__id__;var p=s.parseQuery(i(i({},h),l.copyData(c.query)),t);c=i(i({},c),{query:p}),u.path=c.path,u.fullPath=c.fullPath||"",u.query=l.deepDecodeQuery(c.query||{}),u.NAVTYPE=a.rewriteMethodToggle[c.type||"reLaunch"]}else{var f={};if(null!=n)f=i(i({},n),{openType:n.type});else{var d=l.getUniCachePage(e);if(0===Object.keys(d).length){var g=r.NAVTYPE,y=o(r,["NAVTYPE"]),v="不存在的页面栈,请确保有足够的页面可用,当前 level:"+e;throw t.options.routerErrorEach({type:3,msg:v,NAVTYPE:g,level:e,uniActualData:y},t),new Error(v)}var m=d.options||{};f=i(i({},d.$page||{}),{query:l.deepDecodeQuery(m),fullPath:decodeURIComponent((d.$page||{}).fullPath||"/"+d.route)}),"app-plus"!==t.options.platform&&(f.path="/"+d.route)}var _=f.openType;u.query=f.query,u.path=f.path,u.fullPath=f.fullPath,u.NAVTYPE=a.rewriteMethodToggle[_||"reLaunch"]}var x=l.routesForMapRoute(t,u.path,["finallyPathMap","pathMap"]),b=i(i({},u),x);return b.query=s.parseQuery(b.query,t),b}n.lockNavjump=p,n.navjump=f,n.backOptionsBuild=d,n.forceGuardEach=function(t,e,n){if(void 0===e&&(e="replaceAll"),void 0===n&&(n=!1),"h5"===t.options.platform)throw new Error("在h5端上使用:forceGuardEach 是无意义的,目前 forceGuardEach 仅支持在非h5端上使用");var r=l.getUniCachePage(0);0===Object.keys(r).length&&t.options.routerErrorEach({type:3,NAVTYPE:e,uniActualData:{},level:0,msg:"不存在的页面栈,请确保有足够的页面可用,当前 level:0"},t);var i=r,o=i.route,a=i.options;p({path:"/"+o,query:l.deepDecodeQuery(a||{})},t,e,n)},n.createRoute=g},845:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetPageHook=e.resetAndCallPageHook=e.proxyPageHook=e.createFullPath=e.createToFrom=void 0;var r=n(282),i=n(789),o=n(890),a=n(99);function s(t){for(var e=t.proxyHookDeps,n=0,r=Object.entries(e.hooks);n<r.length;n++)(0,r[n][1].resetHook)()}e.createToFrom=function(t,e){var n=i.getUniCachePage(0);return"[object Array]"===i.getDataType(n)?i.deepClone(t):o.createRoute(e)},e.createFullPath=function(t,e){if(null==t.fullPath){var n=a.stringifyQuery(t.query);t.fullPath=t.path+n}null==e.fullPath&&(n=a.stringifyQuery(e.query),e.fullPath=e.path+n)},e.proxyPageHook=function(t,e,n){for(var i=e.proxyHookDeps,o=t.$options,a=function(a){var s=r.proxyHookName[a],l=o[s];if(l)for(var u=function(r){if(l[r].toString().includes("UNI-SIMPLE-ROUTER"))return"continue";var o=Object.keys(i.hooks).length+1,a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.resetIndex.push(o),i.options[o]=t},s=l.splice(r,1,a)[0];i.hooks[o]={proxyHook:a,callHook:function(r){if(e.enterPath.replace(/^\//,"")===r.replace(/^\//,"")||"app"===n){var a=i.options[o];s.apply(t,a)}},resetHook:function(){l.splice(r,1,s)}}},c=0;c<l.length;c++)u(c)},s=0;s<r.proxyHookName.length;s++)a(s)},e.resetAndCallPageHook=function(t,e,n){void 0===n&&(n=!0);var r=e.trim().match(/^(\/?[^\?\s]+)(\?[\s\S]*$)?$/);if(null==r)throw new Error("还原hook失败。请检查 【"+e+"】 路径是否正确。");e=r[1];for(var i=t.proxyHookDeps,o=i.resetIndex,a=0;a<o.length;a++){var l=o[a];(0,i.hooks[l].callHook)(e)}n&&s(t)},e.resetPageHook=s},99:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringifyQuery=e.parseQuery=e.resolveQuery=e.queryPageToMap=void 0;var i=n(789),o=n(169),a=n(883),l=/[!'()*]/g,u=function(t){return"%"+t.charCodeAt(0).toString(16)},c=/%2C/g,h=function(t){return encodeURIComponent(t).replace(l,u).replace(c,",")};e.queryPageToMap=function(t,e){var n={},a="",s=t.success,l=t.fail;if("[object Object]"===i.getDataType(t)){var u=t;if(null!=u.path){var c=i.urlToJson(u.path),h=c.path,p=c.query;a=i.routesForMapRoute(e,h,["finallyPathList","pathMap"]),n=r(r({},p),t.query||{}),u.path=h,u.query=n,delete t.params}else null!=u.name?null==(a=e.routesMap.nameMap[u.name])?a=i.getWildcardRule(e,{type:2,msg:"命名路由为:"+u.name+" 的路由,无法在路由表中找到!",toRule:t}):(n=t.params||{},delete t.query):a=i.getWildcardRule(e,{type:2,msg:t+" 解析失败,请检测当前路由表下是否有包含。",toRule:t})}else t=i.urlToJson(t),a=i.routesForMapRoute(e,t.path,["finallyPathList","pathMap"]),n=t.query;if("h5"===e.options.platform){i.getRoutePath(a,e).finallyPath.includes(":")&&null==t.name&&o.ERRORHOOK[0]({type:2,msg:"当有设置 alias或者aliasPath 为动态路由时,不允许使用 path 跳转。请使用 name 跳转!",route:a},e);var f=t.complete,d=t.success,g=t.fail;if("[object Function]"===i.getDataType(f)){var y=function(t,e){"[object Function]"===i.getDataType(e)&&e.apply(this,t),f.apply(this,t)};s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];y.call(this,t,d)},l=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];y.call(this,t,g)}}}var v=t;return"[object Function]"===i.getDataType(v.success)&&(v.success=s),"[object Function]"===i.getDataType(v.fail)&&(v.fail=l),{rule:v,route:a,query:n}},e.resolveQuery=function(t,e){var n="query";null!=t.params&&(n="params"),null!=t.query&&(n="query");var r=i.copyData(t[n]||{}),o=e.options.resolveQuery;if(o){var s=o(r);"[object Object]"!==i.getDataType(s)?a.warn("请按格式返回参数: resolveQuery?:(jsonQuery:{[propName: string]: any;})=>{[propName: string]: any;}",e):t[n]=s}else{if(!i.assertDeepObject(r))return t;var l=JSON.stringify(r);t[n]={query:l}}return t},e.parseQuery=function(t,e){var n=e.options.parseQuery;if(n)t=n(i.copyData(t)),"[object Object]"!==i.getDataType(t)&&a.warn("请按格式返回参数: parseQuery?:(jsonQuery:{[propName: string]: any;})=>{[propName: string]: any;}",e);else if(Reflect.get(t,"query")){var r=Reflect.get(t,"query");if("string"==typeof r)try{r=JSON.parse(r)}catch(t){a.warn("尝试解析深度对象失败,按原样输出。"+t,e)}if("object"==s(r))return i.deepDecodeQuery(r)}return t},e.stringifyQuery=function(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return h(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(h(e)):r.push(h(e)+"="+h(t)))})),r.join("&")}return h(e)+"="+h(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}},314:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.rewriteMethod=void 0;var i=r(366),o=r(789),a=r(883),s=r(809),l=["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"];n.rewriteMethod=function(e){!1===e.options.keepUniOriginNav&&l.forEach((function(n){var r=t[n];t[n]=function(t,l,u,c){void 0===l&&(l=!1),l?s.uniOriginJump(e,r,n,t,u,c):("app-plus"===e.options.platform&&0===Object.keys(e.appMain).length&&(e.appMain={NAVTYPE:n,path:t.url}),function(t,e,n){if("app-plus"===n.options.platform){var r=null;t&&(r=t.openType),null!=r&&"appLaunch"===r&&(e="reLaunch")}if("reLaunch"===e&&'{"url":"/"}'===JSON.stringify(t)&&(a.warn("uni-app 原生方法:reLaunch({url:'/'}) 默认被重写啦!你可以使用 this.$Router.replaceAll() 或者 uni.reLaunch({url:'/?xxx=xxx'})",n,!0),e="navigateBack",t={from:"backbutton"}),"navigateBack"===e){var s=1;null==t&&(t={delta:1}),"[object Number]"===o.getDataType(t.delta)&&(s=t.delta),n.back(s,t)}else{var l=i.rewriteMethodToggle[e],u=t.url;if(!u.startsWith("/")){var c=o.resolveAbsolutePath(u,n);u=c,t.url=c}if("switchTab"===e){var h=o.routesForMapRoute(n,u,["pathMap","finallyPathList"]),p=o.getRoutePath(h,n).finallyPath;if("[object Array]"===o.getDataType(p)&&a.warn("uni-app 原生方法跳转路径为:"+u+"。此路为是tab页面时,不允许设置 alias 为数组的情况,并且不能为动态路由!当然你可以通过通配符*解决!",n,!0),"*"===p&&a.warn("uni-app 原生方法跳转路径为:"+u+"。在路由表中找不到相关路由表!当然你可以通过通配符*解决!",n,!0),"h5"===n.options.platform){var f=t.success;t.success=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];null==f||f.apply(null,e),o.timeOut(150).then((function(){var e=t.detail||{};if(Object.keys(e).length>0&&Reflect.has(e,"index")){var n=o.getUniCachePage(0);if(0===Object.keys(n).length)return!1;var r=n,i=r.$options.onTabItemTap;if(i)for(var a=0;a<i.length;a++)i[a].call(r,e)}}))}}u=p}var d=t,g=d.events,y=d.success,v=d.fail,m=d.complete,_=d.animationType,x={path:u,events:g,success:y,fail:v,complete:m,animationDuration:d.animationDuration,animationType:_};n[l](o.notDeepClearNull(x))}}(t,n,e))}}))}},963:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.createRouter=e.RouterMount=void 0;var i=n(282),o=n(789),a=n(662),l=n(460),u=n(890),c=n(314),h=function(){},p=new Promise((function(t){return h=t}));e.createRouter=function(t){var e=o.assertNewOptions(t),n={options:e,mount:[],Vue:null,proxyHookDeps:i.proxyHookDeps,appMain:{},enterPath:"",$route:null,$lockStatus:!1,routesMap:{},lifeCycle:a.registerRouterHooks(i.lifeCycle,e),push:function(t){u.lockNavjump(t,n,"push")},replace:function(t){u.lockNavjump(t,n,"replace")},replaceAll:function(t){u.lockNavjump(t,n,"replaceAll")},pushTab:function(t){u.lockNavjump(t,n,"pushTab")},back:function(t,e){void 0===t&&(t=1),"[object Object]"!==o.getDataType(e)?e={from:"navigateBack"}:Reflect.has(e,"from")||(e=r(r({},e),{from:"navigateBack"})),u.lockNavjump(t+"",n,"back",void 0,e)},forceGuardEach:function(t,e){u.forceGuardEach(n,t,e)},beforeEach:function(t){a.registerEachHooks(n,"beforeHooks",t)},afterEach:function(t){a.registerEachHooks(n,"afterHooks",t)},install:function(t){n.Vue=t,c.rewriteMethod(this),l.initMixins(t,this),Object.defineProperty(t.prototype,"$Router",{get:function(){var t=n;return Object.defineProperty(this,"$Router",{value:t,writable:!1,configurable:!1,enumerable:!1}),Object.seal(t)}}),Object.defineProperty(t.prototype,"$Route",{get:function(){return u.createRoute(n)}}),Object.defineProperty(t.prototype,"$AppReady",{get:function(){return"h5"===n.options.platform?Promise.resolve():p},set:function(t){!0===t&&h()}})}};return o.def(n,"currentRoute",(function(){return u.createRoute(n)})),n.beforeEach((function(t,e,n){return n()})),n.afterEach((function(){})),n},e.RouterMount=function(t,e,n){if(void 0===n&&(n="#app"),"[object Array]"!==o.getDataType(e.mount))throw new Error("挂载路由失败,router.app 应该为数组类型。当前类型:"+s(e.mount));if(e.mount.push({app:t,el:n}),"h5"===e.options.platform){var r=e.$route;r.replace({path:r.currentRoute.fullPath})}}},809:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.formatOriginURLQuery=e.uniOriginJump=void 0;var s=n(99),l=n(789),u=n(282),c=n(845),h=0,p="reLaunch";function f(t,e,n){var i,o=e.url,a=e.path,u=e.query,c=e.animationType,h=e.animationDuration,p=e.events,f=e.success,d=e.fail,g=e.complete,y=e.delta,v=e.animation,m=s.stringifyQuery(u||{}),_=""===m?a||o:(a||o)+m,x={};return"app-plus"===t.options.platform&&"navigateBack"!==n&&(x=(null===(i=t.options.APP)||void 0===i?void 0:i.animation)||{},x=r(r({},x),v||{})),l.notDeepClearNull({delta:y,url:_,animationType:c||x.animationType,animationDuration:h||x.animationDuration,events:p,success:f,fail:d,complete:g})}e.uniOriginJump=function(t,e,n,s,d,g){var y=f(t,s,n),v=y.complete,m=a(y,["complete"]),_=t.options.platform;null!=g&&!1===g?(0===h&&(h++,"h5"!==_&&(c.resetAndCallPageHook(t,m.url),t.Vue.prototype.$AppReady=!0)),v&&v.apply(null,{msg:"forceGuardEach强制触发并且不执行跳转"}),d&&d.apply(null,{msg:"forceGuardEach强制触发并且不执行跳转"})):(0===h&&("app-plus"===_?c.resetAndCallPageHook(t,m.url):new RegExp(u.mpPlatformReg,"g").test(_)&&c.resetAndCallPageHook(t,m.url,!1)),e(r(r({},m),{from:s.BACKTYPE,complete:function(){for(var e,r,a,s,f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];return i(this,void 0,void 0,(function(){var i,g,y;return o(this,(function(o){switch(o.label){case 0:return 0===h&&(h++,"h5"!==_&&(new RegExp(u.mpPlatformReg,"g").test(_)&&c.resetPageHook(t),t.Vue.prototype.$AppReady=!0,"app-plus"===_&&((i=plus.nativeObj.View.getViewById("router-loadding"))&&i.close(),(g=null===(e=t.options.APP)||void 0===e?void 0:e.launchedHook)&&g()))),y=0,new RegExp(u.mpPlatformReg,"g").test(_)?y=null===(r=t.options.applet)||void 0===r?void 0:r.animationDuration:"app-plus"===_&&"navigateBack"===n&&"navigateTo"===p&&(y=null===(s=null===(a=t.options.APP)||void 0===a?void 0:a.animation)||void 0===s?void 0:s.animationDuration),"navigateTo"!==n&&"navigateBack"!==n||0===y?[3,2]:[4,l.timeOut(y)];case 1:o.sent(),o.label=2;case 2:return p=n,v&&v.apply(null,f),d&&d.apply(null,f),[2]}}))}))}})))},e.formatOriginURLQuery=f}},n={},function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{}};return e[r].call(i.exports,i,i.exports,t),i.exports}(607);var e,n}))}).call(this,n("543d")["default"],n("62e4")(t))},acb7:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.state=e.mutations=e.actions=void 0;var i=r(n("beaf"));e.state={systemData:[],roleData:[],questionData:[],processData:[],feedBackList:[],queryListStas:{},queryData:{}};e.mutations={setSystemData:function(t,e){t.systemData=e},setRoleData:function(t,e){t.roleData=e},setQuestionData:function(t,e){t.questionData=e},setProcessData:function(t,e){t.processData=e},setFeedBackList:function(t,e){t.feedBackList=e},setQueryListStas:function(t,e){t.queryListStas=e},setQueryData:function(t,e){t.queryData=e}};var o={getSystemData:function(t){var e=t.commit;a("sys",e,"setSystemData")},getRoleData:function(t){var e=t.commit;a("role",e,"setRoleData")},getQuestionData:function(t){var e=t.commit;a("prbType",e,"setQuestionData")},getQueryData:function(e){var n=e.commit,r=e.rootState;return new Promise((function(e,o){var a=t.getStorageSync("openID"),s=r.userInfo.openID||a;(0,i.default)("query.details",{rcdId:r.queryListStas.id,wechatId:s},"加载中").then((function(e){0===e.code&&(n("setQueryData",e.data),t.navigateTo({url:"/pages/details/details",success:function(t){}}))})).catch((function(t){o(t)}))}))},getProcessData:function(t){var e=t.commit;return new Promise((function(t,n){(0,i.default)("feedback.processData",{}).then((function(t){if(0===t.code){var n=s(t.data);e("setProcessData",n)}})).catch((function(t){n(t)}))}))},getFeedBackList:function(e,n){e.commit;var r=e.rootState,o=n.current,a=n.size,s=n.that;return new Promise((function(e,n){var l=t.getStorageSync("openID"),u=r.userInfo.openID||l;(0,i.default)("feedback.getFedbackList",{wechatId:u,current:o,size:a},"加载中").then((function(t){if(0===t.code){var e=t.data.records||[];s.$refs.paging.complete(e)}})).catch((function(t){n(t),s.$refs.paging.complete(!1)}))}))}};function a(t,e,n){return new Promise((function(r,o){(0,i.default)("feedback.system",{listType:t},"加载中").then((function(t){if(0===t.code){var r=s(t.data);e(n,r)}})).catch((function(t){o(t)}))}))}function s(t){var e=[];return t.length>0&&t.forEach((function(t){e.push({text:t.listVal||t.userName,value:t.listVal||t.userId,userid:t.userId||""})})),e}e.actions=o}).call(this,n("543d")["default"])},b17c:function(t,e,n){var r=n("4a4b"),i=n("6f8f");function o(e,n,a){return i()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports["default"]=t.exports):(t.exports=o=function(t,e,n){var i=[null];i.push.apply(i,e);var o=Function.bind.apply(t,i),a=new o;return n&&r(a,n.prototype),a},t.exports.__esModule=!0,t.exports["default"]=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},b1b5:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("2eee")),o=r(n("9523")),a=r(n("c973")),s=r(n("970b")),l=r(n("5bc3"));function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=n("fabb"),p=function(){function e(){var t=this;(0,s.default)(this,e),this.config={baseUrl:h,header:{"content-type":"application/json"},url:"",data:{},params:{},method:"GET",dataType:"json",responseType:"text",custom:{},sslVerify:!1},this.interceptor={request:function(e){t.requestBefore=e||function(t){return t}},response:function(e){t.requestAfter=e||function(t){return t}}}}return(0,l.default)(e,[{key:"setConfig",value:function(t){return t(this.config)}},{key:"request",value:function(){var n=(0,a.default)(i.default.mark((function n(){var r,o=this,a=arguments;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},r=c(c(c({},r),this.config),this.requestBefore(r)),n.abrupt("return",new Promise((function(n,i){var a=e.isUrl(r.url)?r.url:r.baseUrl+r.url;if("{}"!==JSON.stringify(r.params)){var s=e.addQueryString(r.params);a+=-1===a.indexOf("?")?"?".concat(s):"&".concat(s)}r.url=a,r.success=function(t){n(o.requestAfter(t.data))},r.fail=function(t){i(o.requestAfter(t))},t.request(r)})));case 3:case"end":return n.stop()}}),n,this)})));return function(){return n.apply(this,arguments)}}()},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(c({url:t,method:"GET"},e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(c({url:t,data:e,method:"POST"},n))}}],[{key:"isUrl",value:function(t){return/(http|https):\/\/([\w.]+\/?)\S*/.test(t)}},{key:"addQueryString",value:function(t){var e="";return Object.keys(t).forEach((function(n){e+=n+"="+encodeURIComponent(t[n])+"&"})),e.substring(0,e.length-1)}},{key:"requestBefore",value:function(t){return t}},{key:"requestAfter",value:function(t){return t}}]),e}();e.default=p}).call(this,n("543d")["default"])},b399:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={common:{login:{url:"/web/lgin/userLgin",auth:!1,method:"POST"},applogin:{url:"/app/wechat/login",auth:!1,method:"POST"}},home:{getUserData:{url:"/web/lgin/getUserRoleInfo",auth:!0,method:"GET"}},homePage:{splerCosm:{url:"/web/weChat/forms/amtSplerCosm",auth:!0,method:"POST"},totalCosm:{url:"/web/weChat/forms/totalCosm",auth:!0,method:"POST"},amtCosm:{url:"/web/weChat/forms/amtCosm",auth:!0,method:"POST"},cntCosm:{url:"/web/weChat/forms/cntCosm",auth:!0,method:"POST"},deptCosm:{url:"/web/weChat/forms/deptCosm",auth:!0,method:"POST"},statCosm:{url:"/web/weChat/forms/statCosm",auth:!0,method:"POST"},information:{url:"/app/wechat/select/information",auth:!0,method:"POST"},informationData:{url:"/app/wechat/save/information",auth:!0,method:"POST"}}}},bc2e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],i=["lanDebug","router","worklet"],o="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=o[a],l=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function u(t){return(!l||1154!==l.scene||!i.includes(t))&&(r.indexOf(t)>-1||"function"===typeof s[t])}o[a]=function(){var t={};for(var e in s)u(e)&&(t[e]=s[e]);return t}();var c=o[a];e.default=c},bd3c:function(t,e){},beaf:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=s(e);return a.interceptor.request((function(e,n){var i=t.getStorageSync("token")||"";if(o.auth&&!i)throw t.hideLoading(),t.showToast({title:"暂未登录,请先登录",icon:"none",duration:2e3}),t.navigateTo({url:"/pages/login/index",success:function(t){}}),"暂未登录,已阻止此次API请求: '".concat(o.url,"'");return i&&a.setConfig((function(t){t.header.Authorization=i})),""!==r&&t.showLoading({title:r,mask:!0}),e})),a.interceptor.response((function(e){if(t.hideLoading(),(0!=e.code||!1===e.success)&&(i&&t.showToast({title:e.message||"请求出错,稍后重试",icon:"none",duration:1e3,mask:!0}),161099===e.code))throw"当前登录已失效,请重新登录"==e.message?(t.navigateTo({url:"/subpkg/pages/login/index",success:function(t){}}),t.removeStorageSync("token")):t.showToast({title:e.message,icon:"none"}),"登录已过期或注销,已阻止请求: '".concat(o.url,"'");return e})),a.request({url:o.url||e,data:n,method:o.method})};var i=r(n("b1b5")),o=r(n("b399")),a=new i.default;function s(t){var e,n=t.split(".");return 1==n.length?e={auth:!0,method:"POST",url:t}:(e=o.default,n.forEach((function(t){e=e[t]}))),e}}).call(this,n("543d")["default"])},c135:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},c240:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},c5f7:function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports["default"]=t.exports},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c973:function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},d48a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterMount",{enumerable:!0,get:function(){return r.RouterMount}}),e.router=void 0;var r=n("ac88"),i=(0,r.createRouter)({platform:"mp-weixin",applet:{animationDuration:100},routes:[{path:"*",redirect:function(t){return{name:"404"}}}]});e.router=i,i.beforeEach((function(t,e,n){console.log("跳转结束"),t.meta&&t.meta.auth?n(!1):n()})),i.afterEach((function(t,e){}))},d4eb:function(t,e,n){(function(r){var i,o,a,s=n("7037");!function(n,r){"object"==s(e)&&"undefined"!=typeof t?r(e):(o=[e],i=r,a="function"===typeof i?i.apply(e,o):i,void 0===a||(t.exports=a))}(0,(function(t){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},o=new function(){this.browser=new i,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"==("undefined"===typeof r?"undefined":s(r))&&"function"==typeof r.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?o.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):(w=navigator.userAgent,zt=(St=o).browser,O=w.match(/Firefox\/([\d.]+)/),y=w.match(/MSIE\s([\d.]+)/)||w.match(/Trident\/.+?rv:(([\d.]+))/),b=w.match(/Edge?\/([\d.]+)/),w=/micromessenger/i.test(w),O&&(zt.firefox=!0,zt.version=O[1]),y&&(zt.ie=!0,zt.version=y[1]),b&&(zt.edge=!0,zt.version=b[1],zt.newEdge=18<+b[1].split(".")[0]),w&&(zt.weChat=!0),St.svgSupported="undefined"!=typeof SVGRect,St.touchEventsSupported="ontouchstart"in window&&!zt.ie&&!zt.edge,St.pointerEventsSupported="onpointerdown"in window&&(zt.edge||zt.ie&&11<=+zt.version),St.domSupported="undefined"!=typeof document,O=document.documentElement.style,St.transform3dSupported=(zt.ie&&"transition"in O||zt.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in O)&&!("OTransition"in O),St.transformSupported=St.transform3dSupported||zt.ie&&9<=+zt.version);var a,l,u="12px sans-serif",c=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(a||(n=h.createCanvas(),a=n&&n.getContext("2d")),a)return l!==e&&(l=a.font=e||u),a.measureText(t);t=t||"",e=e||u;var n=/(\d+)px/.exec(e),r=n&&+n[1]||12,i=0;if(0<=e.indexOf("mono"))i=r*t.length;else for(var o=0;o<t.length;o++){var s=c[t[o]];i+=null==s?r:s*r}return{width:i}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function p(t){for(var e in h)t[e]&&(h[e]=t[e])}var f=B(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),d=B(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),g=Object.prototype.toString,y=Array.prototype,v=y.forEach,m=y.filter,_=y.slice,x=y.map,b=function(){}.constructor,w=b?b.prototype:null,S="__proto__",k=2311;function M(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function A(t){if(null==t||"object"!=s(t))return t;var e=t,n=g.call(t);if("[object Array]"===n){if(!ct(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=A(t[r])}}else if(d[n]){if(!ct(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),r=0,i=t.length;r<i;r++)e[r]=t[r]}}else if(!f[n]&&!ct(t)&&!Z(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==S&&(e[a]=A(t[a]));return e}function T(t,e,n){if(!q(e)||!q(t))return n?A(e):t;for(var r in e){var i,o;e.hasOwnProperty(r)&&r!==S&&(i=t[r],!q(o=e[r])||!q(i)||V(o)||V(i)||Z(o)||Z(i)||Y(o)||Y(i)||ct(o)||ct(i)?!n&&r in t||(t[r]=A(e[r])):T(i,o,n))}return t}function C(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==S&&(t[n]=e[n]);return t}function I(t,e,n){for(var r=F(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var O=h.createCanvas;function P(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function D(t,e){var n,r=t.prototype;function i(){}for(n in i.prototype=e.prototype,t.prototype=new i,r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);(t.prototype.constructor=t).superClass=e}function L(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else I(t,e,n)}function E(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function R(t,e,n){if(t&&e)if(t.forEach&&t.forEach===v)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function N(t,e,n){if(!t)return[];if(!e)return it(t);if(t.map&&t.map===x)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function B(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function j(t,e,n){if(!t)return[];if(!e)return it(t);if(t.filter&&t.filter===m)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function F(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}var z=w&&U(w.bind)?w.call.bind(w.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(_.call(arguments)))}};function H(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(_.call(arguments)))}}function V(t){return Array.isArray?Array.isArray(t):"[object Array]"===g.call(t)}function U(t){return"function"==typeof t}function $(t){return"string"==typeof t}function W(t){return"[object String]"===g.call(t)}function G(t){return"number"==typeof t}function q(t){var e=s(t);return"function"==e||!!t&&"object"==e}function Y(t){return!!f[g.call(t)]}function X(t){return!!d[g.call(t)]}function Z(t){return"object"==s(t)&&"number"==typeof t.nodeType&&"object"==s(t.ownerDocument)}function K(t){return null!=t.colorStops}function J(t){return null!=t.image}function Q(t){return"[object RegExp]"===g.call(t)}function tt(t){return t!=t}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function nt(t,e){return null!=t?t:e}function rt(t,e,n){return null!=t?t:null!=e?e:n}function it(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return _.apply(t,e)}function ot(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function at(t,e){if(!t)throw new Error(e)}function st(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lt="__ec_primitive__";function ut(t){t[lt]=!0}function ct(t){return t[lt]}pt.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},pt.prototype.has=function(t){return this.data.hasOwnProperty(t)},pt.prototype.get=function(t){return this.data[t]},pt.prototype.set=function(t,e){return this.data[t]=e,this},pt.prototype.keys=function(){return F(this.data)},pt.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var ht=pt;function pt(){this.data={}}var ft="function"==typeof Map;gt.prototype.hasKey=function(t){return this.data.has(t)},gt.prototype.get=function(t){return this.data.get(t)},gt.prototype.set=function(t,e){return this.data.set(t,e),e},gt.prototype.each=function(t,e){this.data.forEach((function(n,r){t.call(e,n,r)}))},gt.prototype.keys=function(){var t=this.data.keys();return ft?Array.from(t):t},gt.prototype.removeKey=function(t){this.data.delete(t)};var dt=gt;function gt(t){var e=V(t),n=(this.data=new(ft?Map:ht),this);function r(t,r){e?n.set(t,r):n.set(r,t)}t instanceof gt?t.each(r):t&&R(t,r)}function yt(t){return new dt(t)}function vt(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function mt(t,e){var n;t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&C(t,e),t}function _t(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function xt(t,e){return t.hasOwnProperty(e)}function bt(){}var wt=180/Math.PI,St=Object.freeze({__proto__:null,HashMap:dt,RADIAN_TO_DEGREE:wt,assert:at,bind:z,clone:A,concatArray:vt,createCanvas:O,createHashMap:yt,createObject:mt,curry:H,defaults:I,disableUserSelect:_t,each:R,eqNaN:tt,extend:C,filter:j,find:function(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]},guid:function(){return k++},hasOwn:xt,indexOf:P,inherits:D,isArray:V,isArrayLike:E,isBuiltInObject:Y,isDom:Z,isFunction:U,isGradientObject:K,isImagePatternObject:J,isNumber:G,isObject:q,isPrimitive:ct,isRegExp:Q,isString:$,isStringSafe:W,isTypedArray:X,keys:F,logError:M,map:N,merge:T,mergeAll:function(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=T(n,t[r],e);return n},mixin:L,noop:bt,normalizeCssArray:ot,reduce:B,retrieve:et,retrieve2:nt,retrieve3:rt,setAsPrimitive:ut,slice:it,trim:st});function kt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Mt(t){return[t[0],t[1]]}function At(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Tt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Ct(t){return Math.sqrt(It(t))}function It(t){return t[0]*t[0]+t[1]*t[1]}function Ot(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Pt(t,e){var n=Ct(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Dt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Lt=Dt;function Et(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Rt=Et;function Nt(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Bt(t,e,n){var r=e[0];e=e[1];return t[0]=n[0]*r+n[2]*e+n[4],t[1]=n[1]*r+n[3]*e+n[5],t}function jt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Ft(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var zt=Object.freeze({__proto__:null,add:At,applyTransform:Bt,clone:Mt,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:kt,dist:Lt,distSquare:Rt,distance:Dt,distanceSquare:Et,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:Ct,lenSquare:It,length:Ct,lengthSquare:It,lerp:Nt,max:Ft,min:jt,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Pt,scale:Ot,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:Tt}),Ht=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Vt=(Ut.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ht(e,t),"dragstart",t.event))},Ut.prototype._drag=function(t){var e,n,r,i,o=this._draggingTarget;o&&(e=t.offsetX,n=t.offsetY,r=e-this._x,i=n-this._y,this._x=e,this._y=n,o.drift(r,i,t),this.handler.dispatchToElement(new Ht(o,t),"drag",t.event),r=this.handler.findHover(e,n,o).target,i=this._dropTarget,o!==(this._dropTarget=r))&&(i&&r!==i&&this.handler.dispatchToElement(new Ht(i,t),"dragleave",t.event),r)&&r!==i&&this.handler.dispatchToElement(new Ht(r,t),"dragenter",t.event)},Ut.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ht(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ht(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},Ut);function Ut(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}Wt.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),n&&t){var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;o={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},e=i[t].length-1,r=i[t][e],r&&r.callAtLast?i[t].splice(e,0,o):i[t].push(o)}return this},Wt.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},Wt.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},Wt.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}i&&i.afterTrigger&&i.afterTrigger(t)}return this},Wt.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}i&&i.afterTrigger&&i.afterTrigger(t)}return this};var $t=Wt;function Wt(t){t&&(this._$eventProcessor=t)}var Gt=Math.log(2);function qt(t,e,n,r,i,o){var a,s=r+"-"+i,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~i)/Gt),t[n][a];for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,p=0,f=0;p<l;p++){var d=1<<p;d&i||(h+=(f%2?-1:1)*t[n][p]*qt(t,e-1,c,u,i|d,o),f++)}return o[s]=h}function Yt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=qt(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*qt(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var Xt="___zrEVENTSAVED",Zt=[];function Kt(t,e,n,r,i){if(e.getBoundingClientRect&&o.domSupported&&!Jt(e)){var a=e[Xt]||(e[Xt]={});e=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left;c=c.top;a.push(p,c),l=l&&o&&p===o[h]&&c===o[1+h],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?Yt(s,a):Yt(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>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;"),t.appendChild(a),n.push(a)}}return n}(e,a),a,i);if(e)return e(t,n,r),!0}return!1}function Jt(t){return"CANVAS"===t.nodeName.toUpperCase()}var Qt=/([&<>"'])/g,te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ee(t){return null==t?"":(t+"").replace(Qt,(function(t,e){return te[e]}))}var ne=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,re=[],ie=o.browser.firefox&&+o.browser.version.split(".")[0]<39;function oe(t,e,n,r){return n=n||{},r?ae(t,e,n):ie&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ae(t,e,n),n}function ae(t,e,n){if(o.domSupported&&t.getBoundingClientRect){var r,i=e.clientX;e=e.clientY;if(Jt(t))return r=t.getBoundingClientRect(),n.zrX=i-r.left,void(n.zrY=e-r.top);if(Kt(re,t,i,e))return n.zrX=re[0],void(n.zrY=re[1])}n.zrX=n.zrY=0}function se(t){return t||window.event}function le(t,e,n){var r;return null==(e=se(e)).zrX&&((r=e.type)&&0<=r.indexOf("touch")?(r=("touchend"!==r?e.targetTouches:e.changedTouches)[0])&&oe(t,r,e,n):(oe(t,e,e,n),r=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX;t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=r?r/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&ne.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}var ue=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ce(t){return 2===t.which||3===t.which}pe.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},pe.prototype.clear=function(){return this._track.length=0,this},pe.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=oe(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},pe.prototype._recognize=function(t){for(var e in de)if(de.hasOwnProperty(e)&&(e=de[e](this._track,t),e))return e};var he=pe;function pe(){this._track=[]}function fe(t){var e=t[1][0]-t[0][0];t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var de={pinch:function(t,e){var n,r=t.length;if(r)return n=(t[r-1]||{}).points,(r=(t[r-2]||{}).points||n)&&1<r.length&&n&&1<n.length?(r=fe(n)/fe(r),isFinite(r)||(r=1),e.pinchScale=r,r=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=r[0],e.pinchY=r[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function ge(){return[1,0,0,1,0,0]}function ye(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ve(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function me(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4];n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=n,t}function _e(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function xe(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=(e=e[5],Math.sin(n));n=Math.cos(n);return t[0]=i*n+s*u,t[1]=-i*u+s*n,t[2]=o*n+l*u,t[3]=-o*u+n*l,t[4]=n*(a-r[0])+u*(e-r[1])+r[0],t[5]=n*(e-r[1])-u*(a-r[0])+r[1],t}function be(t,e,n){var r=n[0];n=n[1];return t[0]=e[0]*r,t[1]=e[1]*n,t[2]=e[2]*r,t[3]=e[3]*n,t[4]=e[4]*r,t[5]=e[5]*n,t}function we(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=(e=e[5],n*a-o*r);return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-r*s,t[3]=n*s,t[4]=(r*e-a*i)*s,t[5]=(o*i-n*e)*s,t):null}var Se=Object.freeze({__proto__:null,clone:function(t){var e=ge();return ve(e,t),e},copy:ve,create:ge,identity:ye,invert:we,mul:me,rotate:xe,scale:be,translate:_e}),ke=(Me.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Me.prototype.clone=function(){return new Me(this.x,this.y)},Me.prototype.set=function(t,e){return this.x=t,this.y=e,this},Me.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Me.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Me.prototype.scale=function(t){this.x*=t,this.y*=t},Me.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Me.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Me.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Me.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Me.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Me.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Me.prototype.distance=function(t){var e=this.x-t.x;t=this.y-t.y;return Math.sqrt(e*e+t*t)},Me.prototype.distanceSquare=function(t){var e=this.x-t.x;t=this.y-t.y;return e*e+t*t},Me.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Me.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},Me.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Me.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Me.set=function(t,e,n){t.x=e,t.y=n},Me.copy=function(t,e){t.x=e.x,t.y=e.y},Me.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Me.lenSquare=function(t){return t.x*t.x+t.y*t.y},Me.dot=function(t,e){return t.x*e.x+t.y*e.y},Me.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Me.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Me.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Me.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},Me.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},Me);function Me(t,e){this.x=t||0,this.y=e||0}var Ae=Math.min,Te=Math.max,Ce=new ke,Ie=new ke,Oe=new ke,Pe=new ke,De=new ke,Le=new ke,Ee=(Re.prototype.union=function(t){var e=Ae(t.x,this.x),n=Ae(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Te(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Te(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},Re.prototype.applyTransform=function(t){Re.applyTransform(this,this,t)},Re.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,r=ge();return _e(r,r,[-this.x,-this.y]),be(r,r,[e,n]),_e(r,r,[t.x,t.y]),r},Re.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Re||(t=Re.create(t));var n,r,i,o,a,s,l,u,c=this,h=c.x,p=c.x+c.width,f=c.y,d=(c=c.y+c.height,t.x),g=t.x+t.width,y=t.y,v=(t=t.y+t.height,!(p<d||g<h||c<y||t<f));return e&&(n=1/0,r=0,i=Math.abs(p-d),o=Math.abs(g-h),a=Math.abs(c-y),s=Math.abs(t-f),l=Math.min(i,o),u=Math.min(a,s),p<d||g<h?r<l&&(r=l,i<o?ke.set(Le,-i,0):ke.set(Le,o,0)):l<n&&(n=l,i<o?ke.set(De,i,0):ke.set(De,-o,0)),c<y||t<f?r<u&&(r=u,a<s?ke.set(Le,0,-a):ke.set(Le,0,s)):l<n&&(n=l,a<s?ke.set(De,0,a):ke.set(De,0,-s))),e&&ke.copy(e,v?De:Le),v},Re.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Re.prototype.clone=function(){return new Re(this.x,this.y,this.width,this.height)},Re.prototype.copy=function(t){Re.copy(this,t)},Re.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Re.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Re.prototype.isZero=function(){return 0===this.width||0===this.height},Re.create=function(t){return new Re(t.x,t.y,t.width,t.height)},Re.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Re.applyTransform=function(t,e,n){var r,i,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(r=n[0],i=n[3],o=n[4],a=n[5],t.x=e.x*r+o,t.y=e.y*i+a,t.width=e.width*r,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Ce.x=Oe.x=e.x,Ce.y=Pe.y=e.y,Ie.x=Pe.x=e.x+e.width,Ie.y=Oe.y=e.y+e.height,Ce.transform(n),Pe.transform(n),Ie.transform(n),Oe.transform(n),t.x=Ae(Ce.x,Ie.x,Oe.x,Pe.x),t.y=Ae(Ce.y,Ie.y,Oe.y,Pe.y),o=Te(Ce.x,Ie.x,Oe.x,Pe.x),a=Te(Ce.y,Ie.y,Oe.y,Pe.y),t.width=o-t.x,t.height=a-t.y):t!==e&&Re.copy(t,e)},Re);function Re(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}function Ne(){ue(this.event)}n(Fe,Be=$t),Fe.prototype.dispose=function(){},Fe.prototype.setCursor=function(){};var Be,je=Fe;function Fe(){var t=null!==Be&&Be.apply(this,arguments)||this;return t.handler=null,t}var ze,He=function(t,e){this.x=t,this.y=e},Ve=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ue=new Ee(0,0,0,0),$e=(n(We,ze=$t),We.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(R(Ve,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},We.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=qe(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target),r=this._hovered=r?new He(e,n):this.findHover(e,n),e=r.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),o&&e!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(r,"mousemove",t),e&&e!==o&&this.dispatchToElement(r,"mouseover",t)},We.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},We.prototype.resize=function(){this._hovered=new He(0,0)},We.prototype.dispatch=function(t,e){t=this[t],t&&t.call(this,e)},We.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},We.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},We.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ne};r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget||r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},We.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new He(t,e);if(Ge(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Ee(t-s,e-s,a,a),u=r.length-1;0<=u;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Ue.copy(c.getBoundingRect()),c.transform&&Ue.applyTransform(c.transform),Ue.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,f=0;f<s;f+=4)for(var d=0;d<p;d+=h)if(Ge(o,i,t+f*Math.cos(d),e+f*Math.sin(d),n),i.target)return i}return i},We.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new he);var n=this._gestureMgr,r=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),r&&(e=r.type,t.gestureEvent=e,(n=new He).target=r.target,this.dispatchToElement(n,e,r.event))},We);function We(t,e,n,r,i){var o=ze.call(this)||this;return o._hovered=new He(0,0),o.storage=t,o.painter=e,o.painterRoot=r,o._pointerSize=i,n=n||new je,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new Vt(o),o}function Ge(t,e,n,r,i){for(var o=t.length-1;0<=o;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(!(o=!!r.ignoreClip||o)){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0),a=r.__hostTarget,r=a||r.parent}return!i||"silent"}return!1}(a,n,r))&&(e.topTarget||(e.topTarget=a),"silent"!==s)){e.target=a;break}}}function qe(t,e,n){return t=t.painter,e<0||e>t.getWidth()||n<0||n>t.getHeight()}R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){$e.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=qe(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<Lt(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));function Ye(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;var o=t,a=e,s=i;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;i<n&&0<=r(t[i],t[i-1]);)i++;return i-e}function Xe(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)i(a,t[o=s+l>>>1])<0?l=o:s=1+o;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ze(t,e,n,r,i,o){var a=0,s=0,l=1;if(0<o(t,e[n+i])){for(s=r-i;l<s&&0<o(t,e[n+i+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);r=a,a=i-(l=s<l?s:l),l=i-r}for(a++;a<l;){var u=a+(l-a>>>1);0<o(t,e[n+u])?a=u+1:l=u}return l}function Ke(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[n+i-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a;a=i-(l=s<l?s:l),l=i-u}else{for(s=r-i;l<s&&0<=o(t,e[n+i+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Je(t,e,n,r){var i=(r=r||t.length)-(n=n||0);if(!(i<2)){var o=0;if(i<32)Xe(t,n,r,n+(o=Ye(t,n,r,e)),e);else{var a,s=function(t,e){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],h=r[s+1];r[s]=u+h,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--,s=Ke(t[c],t,l,u,0,e);if(l+=s,0!=(u-=s)&&0!==(h=Ze(t[l+u-1],t,c,h,h-1,e)))if(u<=h){var p=l,f=u,d=(s=c,h),g=0;for(g=0;g<f;g++)a[g]=t[p+g];var y=0,v=s,m=p;if(t[m++]=t[v++],0==--d)for(g=0;g<f;g++)t[m+g]=a[y+g];else if(1===f){for(g=0;g<d;g++)t[m+g]=t[v+g];t[m+d]=a[y]}else{for(var _,x,b,w=i;;){x=_=0,b=!1;do{if(e(t[v],a[y])<0){if(t[m++]=t[v++],x++,(_=0)==--d){b=!0;break}}else if(t[m++]=a[y++],_++,x=0,1==--f){b=!0;break}}while((_|x)<w);if(b)break;do{if(0!==(_=Ke(t[v],a,y,f,0,e))){for(g=0;g<_;g++)t[m+g]=a[y+g];if(m+=_,y+=_,(f-=_)<=1){b=!0;break}}if(t[m++]=t[v++],0==--d){b=!0;break}if(0!==(x=Ze(a[y],t,v,d,0,e))){for(g=0;g<x;g++)t[m+g]=t[v+g];if(m+=x,v+=x,0===(d-=x)){b=!0;break}}if(t[m++]=a[y++],1==--f){b=!0;break}}while(w--,7<=_||7<=x);if(b)break;w<0&&(w=0),w+=2}if((i=w)<1&&(i=1),1===f){for(g=0;g<d;g++)t[m+g]=t[v+g];t[m+d]=a[y]}else{if(0===f)throw new Error;for(g=0;g<f;g++)t[m+g]=a[y+g]}}}else{var S=l,k=u,M=c,A=h,T=0;for(T=0;T<A;T++)a[T]=t[M+T];var C=S+k-1,I=A-1,O=M+A-1,P=0,D=0;if(t[O--]=t[C--],0==--k)for(P=O-(A-1),T=0;T<A;T++)t[P+T]=a[T];else if(1===A){for(D=1+(O-=k),P=1+(C-=k),T=k-1;0<=T;T--)t[D+T]=t[P+T];t[O]=a[I]}else{for(var L=i;;){var E=0,R=0,N=!1;do{if(e(a[I],t[C])<0){if(t[O--]=t[C--],E++,(R=0)==--k){N=!0;break}}else if(t[O--]=a[I--],R++,E=0,1==--A){N=!0;break}}while((E|R)<L);if(N)break;do{if(0!==(E=k-Ke(a[I],t,S,k,k-1,e))){for(k-=E,D=1+(O-=E),P=1+(C-=E),T=E-1;0<=T;T--)t[D+T]=t[P+T];if(0===k){N=!0;break}}if(t[O--]=a[I--],1==--A){N=!0;break}if(0!==(R=A-Ze(t[C],a,0,A,A-1,e))){for(A-=R,D=1+(O-=R),P=1+(I-=R),T=0;T<R;T++)t[D+T]=a[P+T];if(A<=1){N=!0;break}}if(t[O--]=t[C--],0==--k){N=!0;break}}while(L--,7<=E||7<=R);if(N)break;L<0&&(L=0),L+=2}if((i=L)<1&&(i=1),1===A){for(D=1+(O-=k),P=1+(C-=k),T=k-1;0<=T;T--)t[D+T]=t[P+T];t[O]=a[I]}else{if(0===A)throw new Error;for(P=O-(A-1),T=0;T<A;T++)t[P+T]=a[T]}}}}return n=[],r=[],{mergeRuns:function(){for(;1<o;){var t=o-2;if(1<=t&&r[t-1]<=r[t]+r[t+1]||2<=t&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;s(t)}},forceMergeRuns:function(){for(;1<o;){var t=o-2;0<t&&r[t-1]<r[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,r[o]=e,o+=1}}}(t,e),l=function(t){for(var e=0;32<=t;)e|=1&t,t>>=1;return t+e}(i);do{}while((o=Ye(t,n,r,e))<l&&(Xe(t,n,n+(a=l<(a=i)?l:i),n+o,e),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!==(i-=o));s.forceMergeRuns()}}}var Qe=!1;function tn(){Qe||(Qe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function en(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}rn.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},rn.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},rn.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,Je(n,en)},rn.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),i=(o=i).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else r=t,e&&e.length?r.__clipPaths=e:r.__clipPaths&&0<r.__clipPaths.length&&(r.__clipPaths=[]),isNaN(r.z)&&(tn(),r.z=0),isNaN(r.z2)&&(tn(),r.z2=0),isNaN(r.zlevel)&&(tn(),r.zlevel=0),this._displayList[this._displayListLen++]=r;r=t.getDecalElement&&t.getDecalElement(),r&&this._updateAndAddDisplayable(r,e,n),r=t.getTextGuideLine(),r&&this._updateAndAddDisplayable(r,e,n),r=t.getTextContent(),r&&this._updateAndAddDisplayable(r,e,n)}},rn.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},rn.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=P(this._roots,t);0<=r&&this._roots.splice(r,1)}},rn.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},rn.prototype.getRoots=function(){return this._roots},rn.prototype.dispose=function(){this._displayList=null,this._roots=null};var nn=rn;function rn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=en}var on=o.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},an={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-an.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*an.bounceIn(2*t):.5*an.bounceOut(2*t-1)+.5}},sn=Math.pow,ln=Math.sqrt,un=ln(3),cn=kt(),hn=kt(),pn=kt();function fn(t){return-1e-8<t&&t<1e-8}function dn(t){return 1e-8<t||t<-1e-8}function gn(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function yn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function vn(t,e,n,r,i,o){r=r+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t-=i,i=n*n-3*r*e;var a,s,l=n*e-9*r*t,u=(t=e*e-3*n*t,0);return fn(i)&&fn(l)?fn(n)?o[0]=0:0<=(a=-e/n)&&a<=1&&(o[u++]=a):fn(e=l*l-4*i*t)?(s=-(t=l/i)/2,0<=(a=-n/r+t)&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s)):0<e?(e=i*n+1.5*r*(-l-(t=ln(e))),0<=(a=(-n-((t=(t=i*n+1.5*r*(-l+t))<0?-sn(-t,1/3):sn(t,1/3))+(e=e<0?-sn(-e,1/3):sn(e,1/3))))/(3*r))&&a<=1&&(o[u++]=a)):(t=(2*i*n-3*r*l)/(2*ln(i*i*i)),e=Math.acos(t)/3,a=(-n-2*(l=ln(i))*(t=Math.cos(e)))/(3*r),s=(-n+l*(t+un*Math.sin(e)))/(3*r),i=(-n+l*(t-un*Math.sin(e)))/(3*r),0<=a&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s),0<=i&&i<=1&&(o[u++]=i)),u}function mn(t,e,n,r,i){var o,a=6*n-12*e+6*t;r=9*e+3*r-3*t-9*n,n=3*e-3*t,e=0;return fn(r)?dn(a)&&0<=(o=-n/a)&&o<=1&&(i[e++]=o):fn(t=a*a-4*r*n)?i[0]=-a/(2*r):0<t&&(t=(-a-(n=ln(t)))/(2*r),0<=(o=(-a+n)/(2*r))&&o<=1&&(i[e++]=o),0<=t)&&t<=1&&(i[e++]=t),e}function _n(t,e,n,r,i,o){var a=(e-t)*i+t,s=(e=(n-e)*i+e,n=(r-n)*i+n,(e-a)*i+a);e=(n-e)*i+e,i=(e-s)*i+s;o[0]=t,o[1]=a,o[2]=s,o[3]=i,o[4]=i,o[5]=e,o[6]=n,o[7]=r}function xn(t,e,n,r,i,o,a,s,l,u,c){var h,p,f,d,g=.005,y=1/0;cn[0]=l,cn[1]=u;for(var v=0;v<1;v+=.05)hn[0]=gn(t,n,i,a,v),hn[1]=gn(e,r,o,s,v),(f=Rt(cn,hn))<y&&(h=v,y=f);y=1/0;for(var m=0;m<32&&!(g<1e-4);m++)p=h+g,hn[0]=gn(t,n,i,a,d=h-g),hn[1]=gn(e,r,o,s,d),f=Rt(hn,cn),0<=d&&f<y?(h=d,y=f):(pn[0]=gn(t,n,i,a,p),pn[1]=gn(e,r,o,s,p),d=Rt(pn,cn),p<=1&&d<y?(h=p,y=d):g*=.5);return c&&(c[0]=gn(t,n,i,a,h),c[1]=gn(e,r,o,s,h)),ln(y)}function bn(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function wn(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Sn(t,e,n){return n=t+n-2*e,0==n?.5:(t-e)/n}function kn(t,e,n,r,i){var o=(e-t)*r+t;e=(n-e)*r+e,r=(e-o)*r+o;i[0]=t,i[1]=o,i[2]=r,i[3]=r,i[4]=e,i[5]=n}function Mn(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;cn[0]=a,cn[1]=s;for(var p=0;p<1;p+=.05)hn[0]=bn(t,n,i,p),hn[1]=bn(e,r,o,p),(y=Rt(cn,hn))<h&&(u=p,h=y);h=1/0;for(var f=0;f<32&&!(c<1e-4);f++){var d=u-c,g=u+c,y=(hn[0]=bn(t,n,i,d),hn[1]=bn(e,r,o,d),Rt(hn,cn));0<=d&&y<h?(u=d,h=y):(pn[0]=bn(t,n,i,g),pn[1]=bn(e,r,o,g),d=Rt(pn,cn),g<=1&&d<h?(u=g,h=d):c*=.5)}return l&&(l[0]=bn(t,n,i,u),l[1]=bn(e,r,o,u)),ln(h)}var An=/cubic-bezier\(([0-9,\.e ]+)\)/;function Tn(t){if(t=t&&An.exec(t),t){t=t[1].split(",");var e,n=+st(t[0]),r=+st(t[1]),i=+st(t[2]),o=+st(t[3]);if(!isNaN(n+r+i+o))return e=[],function(t){return t<=0?0:1<=t?1:vn(0,n,i,1,t,e)&&gn(0,r,o,1,e[0])}}}In.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n,o=(i<0&&(i=0),i=Math.min(i,1),this.easingFunc);o=o?o(i):i;if(this.onframe(o),1===i){if(!this.loop)return!0;this._startTime=t-r%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},In.prototype.pause=function(){this._paused=!0},In.prototype.resume=function(){this._paused=!1},In.prototype.setEasing=function(t){this.easing=t,this.easingFunc=U(t)?t:an[t]||Tn(t)};var Cn=In;function In(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||bt,this.ondestroy=t.ondestroy||bt,this.onrestart=t.onrestart||bt,t.easing&&this.setEasing(t.easing)}var On=function(t){this.value=t},Pn=(Dn.prototype.insert=function(t){return t=new On(t),this.insertEntry(t),t},Dn.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Dn.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Dn.prototype.len=function(){return this._len},Dn.prototype.clear=function(){this.head=this.tail=null,this._len=0},Dn);function Dn(){this._len=0}En.prototype.put=function(t,e){var n,r,i=this._list,o=this._map,a=null;return null==o[t]&&(r=i.len(),n=this._lastRemovedEntry,r>=this._maxSize&&0<r&&(r=i.head,i.remove(r),delete o[r.key],a=r.value,this._lastRemovedEntry=r),n?n.value=e:n=new On(e),n.key=t,i.insertEntry(n),o[t]=n),a},En.prototype.get=function(t){t=this._map[t];var e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},En.prototype.clear=function(){this._list.clear(),this._map={}},En.prototype.len=function(){return this._list.len()};var Ln=En;function En(t){this._list=new Pn,this._maxSize=10,this._map={},this._maxSize=t}var Rn={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 Nn(t){return(t=Math.round(t))<0?0:255<t?255:t}function Bn(t){return t<0?0:1<t?1:t}function jn(t){return t.length&&"%"===t.charAt(t.length-1)?Nn(parseFloat(t)/100*255):Nn(parseInt(t,10))}function Fn(t){return t.length&&"%"===t.charAt(t.length-1)?Bn(parseFloat(t)/100):Bn(parseFloat(t))}function zn(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Hn(t,e,n){return t+(e-t)*n}function Vn(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Un(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var $n=new Ln(20),Wn=null;function Gn(t,e){Wn&&Un(Wn,e),Wn=$n.put(t,Wn||e.slice())}function qn(t,e){if(t){e=e||[];var n=$n.get(t);if(n)return Un(e,n);if(n=(t+="").replace(/ /g,"").toLowerCase(),n in Rn)return Un(e,Rn[n]),Gn(t,e),e;var r=n.length;if("#"===n.charAt(0))return 4===r||5===r?0<=(i=parseInt(n.slice(1,4),16))&&i<=4095?(Vn(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===r?parseInt(n.slice(4),16)/15:1),Gn(t,e),e):void Vn(e,0,0,0,1):7===r||9===r?0<=(i=parseInt(n.slice(1,7),16))&&i<=16777215?(Vn(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===r?parseInt(n.slice(7),16)/255:1),Gn(t,e),e):void Vn(e,0,0,0,1):void 0;var i=n.indexOf("("),o=n.indexOf(")");if(-1!==i&&o+1===r){r=n.substr(0,i);var a=n.substr(i+1,o-(i+1)).split(","),s=1;switch(r){case"rgba":if(4!==a.length)return 3===a.length?Vn(e,+a[0],+a[1],+a[2],1):Vn(e,0,0,0,1);s=Fn(a.pop());case"rgb":return 3<=a.length?(Vn(e,jn(a[0]),jn(a[1]),jn(a[2]),3===a.length?s:Fn(a[3])),Gn(t,e),e):void Vn(e,0,0,0,1);case"hsla":return 4!==a.length?void Vn(e,0,0,0,1):(a[3]=Fn(a[3]),Yn(a,e),Gn(t,e),e);case"hsl":return 3!==a.length?void Vn(e,0,0,0,1):(Yn(a,e),Gn(t,e),e);default:return}}Vn(e,0,0,0,1)}}function Yn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Fn(t[1]),i=Fn(t[2]);r=i<=.5?i*(r+1):i+r-i*r,i=2*i-r;return Vn(e=e||[],Nn(255*zn(i,r,n+1/3)),Nn(255*zn(i,r,n)),Nn(255*zn(i,r,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Xn(t,e){var n=qn(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,255<n[r]?n[r]=255:n[r]<0&&(n[r]=0);return tr(n,4===n.length?"rgba":"rgb")}}function Zn(t,e,n){var r,i,o;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t*=e.length-1,r=Math.floor(t),o=Math.ceil(t),i=e[r],e=e[o],n[0]=Nn(Hn(i[0],e[0],o=t-r)),n[1]=Nn(Hn(i[1],e[1],o)),n[2]=Nn(Hn(i[2],e[2],o)),n[3]=Bn(Hn(i[3],e[3],o)),n}var Kn=Zn;function Jn(t,e,n){var r,i,o,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,r=Math.floor(t),i=Math.ceil(t),a=qn(e[r]),e=qn(e[i]),a=tr([Nn(Hn(a[0],e[0],o=t-r)),Nn(Hn(a[1],e[1],o)),Nn(Hn(a[2],e[2],o)),Bn(Hn(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:r,rightIndex:i,value:t}:a}var Qn=Jn;function tr(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function er(t,e){return t=qn(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var nr=new Ln(100);function rr(t){var e;return $(t)?((e=nr.get(t))||(e=Xn(t,-.1),nr.put(t,e)),e):K(t)?((e=C({},t)).colorStops=N(t.colorStops,(function(t){return{offset:t.offset,color:Xn(t.color,-.1)}})),e):t}Kn=Object.freeze({__proto__:null,fastLerp:Zn,fastMapToColor:Kn,lerp:Jn,lift:Xn,liftColor:rr,lum:er,mapToColor:Qn,modifyAlpha:function(t,e){if((t=qn(t))&&null!=e)return t[3]=Bn(e),tr(t,"rgba")},modifyHSL:function(t,e,n,r){var i=qn(t);if(t)return i=function(t){var e,n,r,i,o,a,s,l,u,c;if(t)return c=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(c,e,n),i=((r=Math.max(c,e,n))+s)/2,0==(u=r-s)?a=o=0:(a=i<.5?u/(r+s):u/(2-r-s),s=((r-c)/6+u/2)/u,l=((r-e)/6+u/2)/u,u=((r-n)/6+u/2)/u,c===r?o=u-l:e===r?o=1/3+s-u:n===r&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),c=[360*o,a,i],null!=t[3]&&c.push(t[3]),c}(i),null!=e&&(i[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(i[1]=Fn(n)),null!=r&&(i[2]=Fn(r)),tr(Yn(i),"rgba")},parse:qn,random:function(){return tr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:tr,toHex:function(t){if(t=qn(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),o.hasGlobalWindow&&U(window.btoa);var ir=Array.prototype.slice;function or(t,e,n){return(e-t)*n+t}function ar(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=or(e[o],n[o],r);return t}function sr(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function lr(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function ur(t){if(E(t)){var e=t.length;if(E(t[0])){for(var n=[],r=0;r<e;r++)n.push(ir.call(t[r]));return n}return ir.call(t)}return t}function cr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function hr(t){return 4===t||5===t}function pr(t){return 1===t||2===t}var fr=[0,0,0,0],dr=(gr.prototype.isFinished=function(){return this._finished},gr.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},gr.prototype.needsAnimate=function(){return 1<=this.keyframes.length},gr.prototype.getAdditiveTrack=function(){return this._additiveTrack},gr.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r,i=this.keyframes,o=i.length,a=!1,s=6,l=e,u=(E(e)?(1==(s=r=E((r=e)&&r[0])?2:1)&&!G(e[0])||2==r&&!G(e[0][0]))&&(a=!0):G(e)&&!tt(e)?s=0:$(e)?isNaN(+e)?(r=qn(e))&&(l=r,s=3):s=0:K(e)&&((u=C({},l)).colorStops=N(e.colorStops,(function(t){return{offset:t.offset,color:qn(t.color)}})),"linear"===e.type?s=4:"radial"===e.type&&(s=5),l=u),0===o?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:l,rawValue:e,percent:0});return n&&(u.easing=n,u.easingFunc=U(n)?n:an[n]||Tn(n)),i.push(u),u},gr.prototype.prepare=function(t,e){for(var n=this.keyframes,r=(this._needsSort&&n.sort((function(t,e){return t.time-e.time})),this.valType),i=n.length,o=n[i-1],a=this.discrete,s=pr(r),l=hr(r),u=0;u<i;u++){var c=n[u],h=c.value,p=o.value;if(c.percent=c.time/t,!a)if(s&&u!==i-1){x=_=m=v=g=f=c=void 0;var f=p,d=r,g=c=h,y=f;if(g.push&&y.push){c=g.length;var v=y.length;if(c!==v)if(v<c)g.length=v;else for(var m=c;m<v;m++)g.push(1===d?y[m]:ir.call(y[m]));var _=g[0]&&g[0].length;for(m=0;m<g.length;m++)if(1===d)isNaN(g[m])&&(g[m]=y[m]);else for(var x=0;x<_;x++)isNaN(g[m][x])&&(g[m][x]=y[m][x])}}else if(l){M=k=S=c=f=void 0;f=h.colorStops,c=p.colorStops;for(var b=f.length,w=c.length,S=w<b?c:f,k=(c=Math.min(b,w),S[c-1]||{color:[0,0,0,0],offset:0}),M=c;M<Math.max(b,w);M++)S.push({offset:k.offset,color:k.color.slice()})}}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var A=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-A:3===r?n[u].additiveValue=sr([],n[u].value,A,-1):pr(r)&&(n[u].additiveValue=(1===r?sr:lr)([],n[u].value,A,-1))}},gr.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,h=this.propName,p=3===l,f=this._lastFr,d=Math.min;if(1===c)n=r=u[0];else{if(e<0)g=0;else if(e<this._lastFrP){for(var g=d(f+1,c-1);0<=g&&!(u[g].percent<=e);g--);g=d(g,c-2)}else{for(g=f;g<c&&!(u[g].percent>e);g++);g=d(g-1,c-2)}r=u[g+1],n=u[g]}n&&r&&(this._lastFr=g,this._lastFrP=e,f=r.percent-n.percent,i=0==f?1:d((e-n.percent)/f,1),r.easingFunc&&(i=r.easingFunc(i)),d=a?this._additiveValue:p?fr:t[h],(pr(l)||p)&&(d=d||(this._additiveValue=[])),this.discrete?t[h]=(i<1?n:r).rawValue:pr(l)?(1===l?ar:function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=or(e[a][s],n[a][s],r)}})(d,n[s],r[s],i):hr(l)?(f=n[s],o=r[s],t[h]={type:(l=4===l)?"linear":"radial",x:or(f.x,o.x,i),y:or(f.y,o.y,i),colorStops:N(f.colorStops,(function(t,e){return e=o.colorStops[e],{offset:or(t.offset,e.offset,i),color:cr(ar([],t.color,e.color,i))}})),global:o.global},l?(t[h].x2=or(f.x2,o.x2,i),t[h].y2=or(f.y2,o.y2,i)):t[h].r=or(f.r,o.r,i)):p?(ar(d,n[s],r[s],i),a||(t[h]=cr(d))):(l=or(n[s],r[s],i),a?this._additiveValue=l:t[h]=l),a)&&this._addToTarget(t)}},gr.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(qn(t[n],fr),sr(fr,fr,r,1),t[n]=cr(fr)):1===e?sr(t[n],t[n],r,1):2===e&&lr(t[n],t[n],r,1)},gr);function gr(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}vr.prototype.getMaxTime=function(){return this._maxTime},vr.prototype.getDelay=function(){return this._delay},vr.prototype.getLoop=function(){return this._loop},vr.prototype.getTarget=function(){return this._target},vr.prototype.changeTarget=function(t){this._target=t},vr.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,F(e),n)},vr.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(l=i[a])){var s,l=i[a]=new dr(a),u=void 0,c=this._getAdditiveTrack(a);if(c?(u=(s=(s=c.keyframes)[s.length-1])&&s.value,3===c.valType&&(u=u&&cr(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,ur(u),r),this._trackKeys.push(a)}l.addKeyframe(t,ur(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},vr.prototype.pause=function(){this._clip.pause(),this._paused=!0},vr.prototype.resume=function(){this._clip.resume(),this._paused=!1},vr.prototype.isPaused=function(){return!!this._paused},vr.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},vr.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},vr.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},vr.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},vr.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},vr.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=(a=this._getAdditiveTrack(a),s.keyframes),u=l.length;s.prepare(i,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[u-1])&&(n._target[s.propName]=a.rawValue),s.setFinished()):r.push(s))}return r.length||this._force?(e=new Cn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var i=!1,o=0;o<e.length;o++)if(e[o]._clip){i=!0;break}i||(n._additiveAnimators=null)}for(o=0;o<r.length;o++)r[o].step(n._target,t);var a=n._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},vr.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},vr.prototype.delay=function(t){return this._delay=t,this},vr.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},vr.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},vr.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},vr.prototype.getClip=function(){return this._clip},vr.prototype.getTrack=function(t){return this._tracks[t]},vr.prototype.getTracks=function(){var t=this;return N(this._trackKeys,(function(e){return t._tracks[e]}))},vr.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},vr.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(t[i]=ur(o.rawValue))}}},vr.prototype.__changeFinalValue=function(t,e){e=e||F(t);for(var n=0;n<e.length;n++){var r,i=e[n],o=this._tracks[i];o&&1<(r=o.keyframes).length&&(r=r.pop(),o.addKeyframe(r.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack()))}};var yr=vr;function vr(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&r?M("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}function mr(){return(new Date).getTime()}n(br,_r=$t),br.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},br.prototype.addAnimator=function(t){t.animation=this,t=t.getClip(),t&&this.addClip(t)},br.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},br.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},br.prototype.update=function(t){for(var e=mr()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r=(r.step(e,n)&&(r.ondestroy(),this.removeClip(r)),i)}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},br.prototype._startLoop=function(){var t=this;this._running=!0,on((function e(){t._running&&(on(e),t._paused||t.update())}))},br.prototype.start=function(){this._running||(this._time=mr(),this._pausedTime=0,this._startLoop())},br.prototype.stop=function(){this._running=!1},br.prototype.pause=function(){this._paused||(this._pauseStart=mr(),this._paused=!0)},br.prototype.resume=function(){this._paused&&(this._pausedTime+=mr()-this._pauseStart,this._paused=!1)},br.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},br.prototype.isFinished=function(){return null==this._head},br.prototype.animate=function(t,e){return e=e||{},this.start(),t=new yr(t,e.loop),this.addAnimator(t),t};var _r,xr=br;function br(t){var e=_r.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}var wr,Sr=o.domSupported,kr=(wr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Qn=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:N(Qn,(function(t){var e=t.replace("mouse","pointer");return wr.hasOwnProperty(e)?e:t}))}),Mr=["mousemove","mouseup"],Ar=["pointermove","pointerup"],Tr=!1;function Cr(t){return t=t.pointerType,"pen"===t||"touch"===t}function Ir(t){t&&(t.zrByTouch=!0)}function Or(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var Pr=function(t,e){this.stopPropagation=bt,this.stopImmediatePropagation=bt,this.preventDefault=bt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Dr={mousedown:function(t){t=le(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=le(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=le(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Or(this,(t=le(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Tr=!0,t=le(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Tr||(t=le(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ir(t=le(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Dr.mousemove.call(this,t),Dr.mousedown.call(this,t)},touchmove:function(t){Ir(t=le(this.dom,t)),this.handler.processGesture(t,"change"),Dr.mousemove.call(this,t)},touchend:function(t){Ir(t=le(this.dom,t)),this.handler.processGesture(t,"end"),Dr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Dr.click.call(this,t)},pointerdown:function(t){Dr.mousedown.call(this,t)},pointermove:function(t){Cr(t)||Dr.mousemove.call(this,t)},pointerup:function(t){Dr.mouseup.call(this,t)},pointerout:function(t){Cr(t)||Dr.mouseout.call(this,t)}},Lr=(R(["click","dblclick","contextmenu"],(function(t){Dr[t]=function(e){e=le(this.dom,e),this.trigger(t,e)}})),{pointermove:function(t){Cr(t)||Lr.mousemove.call(this,t)},pointerup:function(t){Lr.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}});function Er(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,t.domTarget.addEventListener(e,n,r)}function Rr(t){var e,n,r,i,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,i=a[r=e],o=t.listenerOpts[e],n.removeEventListener(r,i,o));t.mounted={}}var Nr,Br=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},jr=(n(Fr,Nr=$t),Fr.prototype.dispose=function(){Rr(this._localHandlerScope),Sr&&Rr(this._globalHandlerScope)},Fr.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},Fr.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Sr&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?function(t,e){function n(n){Er(e,n,(function(r){var i;r=se(r),Or(t,r.target)||(i=r,r=le(t.dom,new Pr(t,i),!0),e.domHandlers[n].call(t,r))}),{capture:!0})}o.pointerEventsSupported?R(Ar,n):o.touchEventsSupported||R(Mr,n)}(this,e):Rr(e))},Fr);function Fr(t,e){var n=Nr.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Br(t,Dr),Sr&&(n._globalHandlerScope=new Br(document,Lr)),function(t,e){var n=e.domHandlers;o.pointerEventsSupported?R(kr.pointer,(function(r){Er(e,r,(function(e){n[r].call(t,e)}))})):(o.touchEventsSupported&&R(kr.touch,(function(r){Er(e,r,(function(i){var o;n[r].call(t,i),(o=e).touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout((function(){o.touching=!1,o.touchTimer=null}),700)}))})),R(kr.mouse,(function(r){Er(e,r,(function(i){i=se(i),e.touching||n[r].call(t,i)}))})))}(n,n._localHandlerScope),n}Qn=1;var zr=Qn=o.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):Qn,Hr="#333",Vr="#ccc",Ur=ye;function $r(t){return 5e-5<t||t<-5e-5}var Wr=[],Gr=[],qr=ge(),Yr=Math.abs,Xr=(Zr.prototype.getLocalTransform=function(t){return Zr.getLocalTransform(this,t)},Zr.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Zr.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Zr.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Zr.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Zr.prototype.needLocalTransform=function(){return $r(this.rotation)||$r(this.x)||$r(this.y)||$r(this.scaleX-1)||$r(this.scaleY-1)||$r(this.skewX)||$r(this.skewY)},Zr.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||ge(),e?this.getLocalTransform(n):Ur(n),t&&(e?me(n,t,n):ve(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ur(n),this.invTransform=null)},Zr.prototype._resolveGlobalScaleRatio=function(t){var e,n,r=this.globalScaleRatio;null!=r&&1!==r&&(this.getGlobalScale(Wr),n=((Wr[1]-(n=Wr[1]<0?-1:1))*r+n)/Wr[1]||0,t[0]*=r=((Wr[0]-(e=Wr[0]<0?-1:1))*r+e)/Wr[0]||0,t[1]*=r,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||ge(),we(this.invTransform,t)},Zr.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Zr.prototype.setLocalTransform=function(t){var e,n,r,i;t&&(i=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),r=Math.sqrt(r)*Math.cos(n),i=Math.sqrt(i),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=i,this.scaleY=r,this.originX=0,this.originY=0)},Zr.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||ge(),me(Gr,e.invTransform,t),t=Gr),e=this.originX,n=this.originY,(e||n)&&(qr[4]=e,qr[5]=n,me(Gr,t,qr),Gr[4]-=e,Gr[5]-=n,t=Gr),this.setLocalTransform(t))},Zr.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},Zr.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&Bt(t,t,e),t},Zr.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&Bt(t,t,e),t},Zr.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Yr(t[0]-1)&&1e-10<Yr(t[3]-1)?Math.sqrt(Yr(t[0]*t[3]-t[2]*t[1])):1},Zr.prototype.copyTransform=function(t){for(var e=t,n=0;n<Kr.length;n++){var r=Kr[n];this[r]=e[r]}},Zr.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0;t=t.skewY?Math.tan(-t.skewY):0;return n||r||a||s?(e[4]=-(a=n+a)*i-h*(s=r+s)*o,e[5]=-s*o-t*a*i):e[4]=e[5]=0,e[0]=i,e[3]=o,e[1]=t*i,e[2]=h*o,l&&xe(e,e,l),e[4]+=n+u,e[5]+=r+c,e},Zr.initDefaultProps=((Qn=Zr.prototype).scaleX=Qn.scaleY=Qn.globalScaleRatio=1,void(Qn.x=Qn.y=Qn.originX=Qn.originY=Qn.skewX=Qn.skewY=Qn.rotation=Qn.anchorX=Qn.anchorY=0)),Zr);function Zr(){}var Kr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Jr={};function Qr(t,e){var n=Jr[e=e||u],r=(n=n||(Jr[e]=new Ln(500))).get(t);return null==r&&(r=h.measureText(t,e).width,n.put(t,r)),r}function ti(t,e,n,r){return t=Qr(t,e),e=ii(e),n=ni(0,t,n),r=ri(0,e,r),new Ee(n,r,t,e)}function ei(t,e,n,r){var i=((t||"")+"").split("\n");if(1===i.length)return ti(i[0],e,n,r);for(var o=new Ee(0,0,0,0),a=0;a<i.length;a++){var s=ti(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function ni(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ri(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ii(t){return Qr("国",t)}function oi(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function ai(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=oi(r[0],n.width),u+=oi(r[1],n.height),h=c=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var si,li="__zr_normal__",ui=Kr.concat(["ignore"]),ci=B(Kr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),hi={},pi=new Ee(0,0,0,0);fi.prototype._init=function(t){this.attr(t)},fi.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;(r=r||(this.transform=[1,0,0,1,0,0]))[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},fi.prototype.beforeUpdate=function(){},fi.prototype.afterUpdate=function(){},fi.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},fi.prototype.updateInnerText=function(t){var e,n,r,i,o,a,s,l,u,c,h=this._textContent;!h||h.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,r=n=void 0,i=!1,(e=h.innerTransformable).parent=l?this:null,c=!1,e.copyTransform(h),null!=t.position&&(u=pi,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(hi,t,u):ai(hi,t,u),e.x=hi.x,e.y=hi.y,n=hi.align,r=hi.verticalAlign,o=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===o?(a=.5*u.width,.5*u.height):(a=oi(o[0],u.width),oi(o[1],u.height)),c=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(o=t.offset)&&(e.x+=o[0],e.y+=o[1],c||(e.originX=-o[0],e.originY=-o[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),c=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),c=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),c=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&c===s.autoStroke&&n===s.align&&r===s.verticalAlign||(i=!0,s.fill=l,s.stroke=u,s.autoStroke=c,s.align=n,s.verticalAlign=r,h.setDefaultTextStyle(s)),h.__dirty|=1,i&&h.dirtyStyle(!0))},fi.prototype.canBeInsideText=function(){return!0},fi.prototype.getInsideTextFill=function(){return"#fff"},fi.prototype.getInsideTextStroke=function(t){return"#000"},fi.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Vr:Hr},fi.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&qn(e),r=(n=n||[255,255,255,1])[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,tr(n,"rgba")},fi.prototype.traverse=function(t,e){},fi.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},C(this.extra,e)):this[t]=e},fi.prototype.hide=function(){this.ignore=!0,this.markRedraw()},fi.prototype.show=function(){this.ignore=!1,this.markRedraw()},fi.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(q(t))for(var n=F(t),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,t[i])}return this.markRedraw(),this},fi.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;r.getLoop()||i&&i!==li||(i=(i=r.targetName)?e[i]:e,r.saveTo(i))}},fi.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,ui)},fi.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},fi.prototype.hasState=function(){return 0<this.currentStates.length},fi.prototype.getState=function(t){return this.states[t]},fi.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},fi.prototype.clearStates=function(t){this.useState(li,!1,t)},fi.prototype.useState=function(t,e,n,r){var i=t===li,o=this.hasState();if(o||!i){o=this.currentStates;var a,s=this.stateTransition;if(!(0<=P(o,t))||!e&&1!==o.length){if((a=(a=this.stateProxy&&!i?this.stateProxy(t):a)||this.states&&this.states[t])||i)return i||this.saveCurrentToNormalState(a),(o=!!(a&&a.hoverLayer||r))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),r=this._textContent,s=this._textGuide,r&&r.useState(t,e,n,o),s&&s.useState(t,e,n,o),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!o&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),a;M("State "+t+" not exists.")}}},fi.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&r.push(u)}var c=r[o-1],h=(c=!!(c&&c.hoverLayer||n),n=(c&&this._toggleHoverLayerFlag(!0),this._mergeStates(r)),this.stateTransition);n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&h&&0<h.duration,h),this._textContent),h=this._textGuide;n&&n.useStates(t,e,c),h&&h.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},fi.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},fi.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},fi.prototype.removeState=function(t){var e;t=P(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},fi.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=(t=P(r,t),0<=P(r,e));0<=t?i?r.splice(t,1):r[t]=e:n&&!i&&r.push(e),this.useStates(r)},fi.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},fi.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];C(n,i),i.textConfig&&C(e=e||{},i.textConfig)}return e&&(n.textConfig=e),n},fi.prototype._applyStateObj=function(t,e,n,r,i,o){for(var a=!(e&&r),s=(e&&e.textConfig?(this.textConfig=C({},(r?this:n).textConfig),C(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),l=!1,u=0;u<ui.length;u++){var c=ui[u],h=i&&ci[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var p=this.animators[u],f=p.targetName;p.getLoop()||p.__changeFinalValue(f?(e||n)[f]:e||n)}l&&this._transitionState(t,s,o)},fi.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},fi.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},fi.prototype.getClipPath=function(){return this._clipPath},fi.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},fi.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},fi.prototype.getTextContent=function(){return this._textContent},fi.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Xr,this._attachComponent(t),this._textContent=t,this.markRedraw())},fi.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),C(this.textConfig,t),this.markRedraw()},fi.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},fi.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},fi.prototype.getTextGuideLine=function(){return this._textGuide},fi.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},fi.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},fi.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},fi.prototype.dirty=function(){this.markRedraw()},fi.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},fi.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},fi.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},fi.prototype.animate=function(t,e,n){var r=t?this[t]:this;r=new yr(r,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},fi.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=P(e,t);0<=n&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},fi.prototype.updateDuringAnimation=function(t){this.markRedraw()},fi.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},fi.prototype.animateTo=function(t,e,n){gi(this,t,e,n)},fi.prototype.animateFrom=function(t,e,n){gi(this,t,e,n,!0)},fi.prototype._transitionState=function(t,e,n,r){for(var i=gi(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},fi.prototype.getBoundingRect=function(){return null},fi.prototype.getPaintRect=function(){return null},fi.initDefaultProps=((si=fi.prototype).type="element",si.name="",si.ignore=si.silent=si.isGroup=si.draggable=si.dragging=si.ignoreClip=si.__inHover=!1,si.__dirty=1,void(Object.defineProperty&&(di("position","_legacyPos","x","y"),di("scale","_legacyScale","scaleX","scaleY"),di("origin","_legacyOrigin","originX","originY")))),Qn=fi;function fi(t){this.id=k++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function di(t,e,n,r){function i(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(si,t,{get:function(){var t;return this[e]||(t=this[e]=[],i(this,t)),this[e]},set:function(t){this[n]=t[0],this[r]=t[1],this[e]=t,i(this,t)}})}function gi(t,e,n,r,i){function o(){u=!0,--l<=0&&(u?c&&c():h&&h())}function a(){--l<=0&&(u?c&&c():h&&h())}var s=[],l=(function t(e,n,r,i,o,a,s,l){for(var u=F(i),c=o.duration,h=o.delay,p=o.additive,f=o.setToFinal,d=!q(a),g=e.animators,y=[],v=0;v<u.length;v++){var m=u[v],_=i[m];null!=_&&null!=r[m]&&(d||a[m])?!q(_)||E(_)||K(_)?y.push(m):n?l||(r[m]=_,e.updateDuringAnimation(n)):t(e,m,r[m],_,o,a&&a[m],s,l):l||(r[m]=_,e.updateDuringAnimation(n),y.push(m))}var x=y.length;if(!p&&x)for(var b,w=0;w<g.length;w++)(S=g[w]).targetName===n&&S.stopTracks(y)&&(b=P(g,S),g.splice(b,1));if(o.force||(y=j(y,(function(t){return!function(t,e){return t===e||E(t)&&E(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(t,e)}(i[t],r[t])})),x=y.length),0<x||o.force&&!s.length){var S,k=void 0,M=void 0,A=void 0;if(l)for(M={},f&&(k={}),w=0;w<x;w++)m=y[w],M[m]=r[m],f?k[m]=i[m]:r[m]=i[m];else if(f)for(A={},w=0;w<x;w++)m=y[w],A[m]=ur(r[m]),vi(r,i,m);(S=new yr(r,!1,!1,p?j(g,(function(t){return t.targetName===n})):null)).targetName=n,o.scope&&(S.scope=o.scope),f&&k&&S.whenWithKeys(0,k,y),A&&S.whenWithKeys(0,A,y),S.whenWithKeys(null==c?500:c,l?M:i,y).delay(h||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},r,s,i),s.length),u=!1,c=n.done,h=n.aborted;l||c&&c(),0<s.length&&n.during&&s[0].during((function(t,e){n.during(e)}));for(var p=0;p<s.length;p++){var f=s[p];f.done(o),f.aborted(a),n.force&&f.duration(n.duration),f.start(n.easing)}return s}function yi(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function vi(t,e,n){if(E(e[n]))if(E(t[n])||(t[n]=[]),X(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),yi(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(E(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?yi(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else yi(o,i,a);o.length=i.length}else t[n]=e[n]}L(Qn,$t),L(Qn,Xr),n(xi,mi=Qn),xi.prototype.childrenRef=function(){return this._children},xi.prototype.children=function(){return this._children.slice()},xi.prototype.childAt=function(t){return this._children[t]},xi.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},xi.prototype.childCount=function(){return this._children.length},xi.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},xi.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},xi.prototype.replace=function(t,e){return t=P(this._children,t),0<=t&&this.replaceAt(e,t),this},xi.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];return t&&t!==this&&t.parent!==this&&t!==r&&(n[e]=t,r.parent=null,(n=this.__zr)&&r.removeSelfFromZr(n),this._doAdd(t)),this},xi.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},xi.prototype.remove=function(t){var e=this.__zr,n=this._children,r=P(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},xi.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},xi.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},xi.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},xi.prototype.addSelfToZr=function(t){mi.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},xi.prototype.removeSelfFromZr=function(t){mi.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},xi.prototype.getBoundingRect=function(t){for(var e=new Ee(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(r))?(Ee.applyTransform(e,a,s),(i=i||e.clone()).union(e)):(i=i||a.clone()).union(a))}return i||e};var mi,_i=xi;function xi(t){var e=mi.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}_i.prototype.type="group";var bi={},wi={};Mi.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Mi.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Mi.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},Mi.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return er(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=er(e[i].color,1);return(n/=r)<.4}}return!1}(t))},Mi.prototype.getBackgroundColor=function(){return this._backgroundColor},Mi.prototype.setDarkMode=function(t){this._darkMode=t},Mi.prototype.isDarkMode=function(){return this._darkMode},Mi.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Mi.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Mi.prototype.flush=function(){this._disposed||this._flush(!1)},Mi.prototype._flush=function(t){var e,n=mr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),t=mr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},Mi.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Mi.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Mi.prototype.refreshHover=function(){this._needsRefreshHover=!0},Mi.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Mi.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Mi.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Mi.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Mi.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Mi.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Mi.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Mi.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Mi.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Mi.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Mi.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _i&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Mi.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete wi[t])};var Si,ki=Mi;function Mi(t,e,n){var r,i=this,a=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new nn),s=n.renderer||"canvas",l=(s=(bi[s]||(s=F(bi)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new bi[s](e,a,n,t)),e=n.ssr||s.ssrOnly,t=(this.storage=a,this.painter=s,o.node||o.worker||e?null:new jr(s.getViewportRoot(),s.root)),n.useCoarsePointer);(null==l||"auto"===l?o.touchEventsSupported:!!l)&&(r=nt(n.pointerSize,44)),this.handler=new $e(a,s,t,s.root,r),this.animation=new xr({stage:{update:e?null:function(){return i._flush(!0)}}}),e||this.animation.start()}function Ai(t,e){return t=new ki(k++,t,e),wi[t.id]=t}function Ti(t,e){bi[t]=e}function Ci(t){Si=t}var Ii=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in wi)wi.hasOwnProperty(t)&&wi[t].dispose();wi={}},getElementSSRData:function(t){if("function"==typeof Si)return Si(t)},getInstance:function(t){return wi[t]},init:Ai,registerPainter:Ti,registerSSRDataGetter:Ci,version:"5.5.0"});function Oi(t,e,n,r){var i=e[0],o=(e=e[1],n[0]),a=(n=n[1],e-i),s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(r)if(0<a){if(t<=i)return o;if(e<=t)return n}else{if(i<=t)return o;if(t<=e)return n}else{if(t===i)return o;if(t===e)return n}return(t-i)/a*s+o}function Pi(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return $(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Di(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Li(t){return t.sort((function(t,e){return t-e})),t}function Ei(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ri(t)}function Ri(t){t=t.toString().toLowerCase();var e=t.indexOf("e"),n=0<e?+t.slice(e+1):0;e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Ni(t,e){var n=Math.log,r=Math.LN10;t=Math.floor(n(t[1]-t[0])/r),n=Math.round(n(Math.abs(e[1]-e[0]))/r),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function Bi(t,e){var n=B(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),i=(e=N(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),100*r),o=N(e,(function(t){return Math.floor(t)})),a=B(o,(function(t,e){return t+e}),0),s=N(e,(function(t,e){return t-o[e]}));a<i;){for(var l=Number.NEGATIVE_INFINITY,u=null,c=0,h=s.length;c<h;++c)s[c]>l&&(l=s[c],u=c);++o[u],s[u]=0,++a}return N(o,(function(t){return t/r}))}function ji(t){var e=2*Math.PI;return(t%e+e)%e}function Fi(t){return-1e-4<t&&t<1e-4}var zi=/^(?:(\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 Hi(t){var e,n;return t instanceof Date?t:$(t)?(e=zi.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function Vi(t){return Math.pow(10,Ui(t))}function Ui(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function $i(t,e){var n=Ui(t),r=Math.pow(10,n),i=t/r;e=e?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;return t=e*r,-20<=n?+t.toFixed(n<0?-n:0):t}function Wi(t){var e=parseFloat(t);return e==t&&(0!==e||!$(t)||t.indexOf("x")<=0)?e:NaN}function Gi(t){return!isNaN(Wi(t))}function qi(){return Math.round(9*Math.random())}function Yi(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function Xi(t){throw new Error(t)}function Zi(t,e,n){return(e-t)*n+t}var Ki="series\0";function Ji(t){return t instanceof Array?t:null==t?[]:[t]}function Qi(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var to=["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 eo(t){return!q(t)||V(t)||t instanceof Date?t:t.value}function no(t,e,n){return e=io(e[t],null),n=io(n[t],null),null!=e&&null!=n&&e===n}function ro(t){return io(t,"")}function io(t,e){return null==t?e:$(t)?t:G(t)||W(t)?t+"":e}function oo(t){return t=t.name,!(!t||!t.indexOf(Ki))}function ao(t){return t&&null!=t.id&&0===ro(t.id).indexOf("\0_ec_\0")}function so(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?V(e.dataIndex)?N(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?V(e.name)?N(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function lo(){var t="__ec_inner_"+uo++;return function(e){return e[t]||(e[t]={})}}var uo=qi();function co(t,e,n){e=ho(e,n);var r=e.mainTypeSpecified,i=e.queryOptionMap,o=e.others,a=n?n.defaultMainType:null;return!r&&a&&i.set(a,{}),i.each((function(e,r){e=go(t,r,e,{useDefault:a===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone}),o[r+"Models"]=e.models,o[r+"Model"]=e.models[0]})),o}function ho(t,e){var n=$(t)?((n={})[t+"Index"]=0,n):t,r=yt(),i={},o=!1;return R(n,(function(t,n){var a;"dataIndex"===n||"dataIndexInside"===n?i[n]=t:(a=(n=n.match(/^(\w+)(Index|Id|Name)$/)||[])[1],n=(n[2]||"").toLowerCase(),!a||!n||e&&e.includeMainTypes&&P(e.includeMainTypes,a)<0||(o=o||!!a,(r.get(a)||r.set(a,{}))[n]=t))})),{mainTypeSpecified:o,queryOptionMap:r,others:i}}var po={useDefault:!0,enableAll:!1,enableNone:!1},fo={useDefault:!1,enableAll:!0,enableNone:!0};function go(t,e,n,r){r=r||po;var i=n.index,o=n.id,a=(n=n.name,{models:null,specified:null!=i||null!=o||null!=n});return a.specified?"none"===i||!1===i?(at(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===i&&(at(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=n=null),a.models=t.queryComponents({mainType:e,index:i,id:o,name:n})):(i=void 0,a.models=r.useDefault&&(i=t.getComponent(e))?[i]:[]),a}function yo(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function vo(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(G(r))return Di(p=Zi(n||0,r,i),o?Math.max(Ei(n||0),Ei(r)):e);if($(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h,p,f=t.getDimensionInfo(c);f&&"ordinal"===f.type?a[c]=(i<1&&s?s:l)[c]:(p=Zi(f=s&&s[c]?s[c]:0,h=l[c],i),a[c]=Di(p,o?Math.max(Ei(f),Ei(h)):e))}return a}var mo="___EC__COMPONENT__CONTAINER___",_o="___EC__EXTENDED_CLASS___";function xo(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e}function bo(t){(t.$constructor=t).extend=function(t){var e,r,i,o=this;function a(){return r.apply(this,arguments)||this}return U(i=o)&&/^class\s/.test(Function.prototype.toString.call(i))?(n(a,r=o),e=a):D(e=function(){(t.$constructor||o).apply(this,arguments)},this),C(e.prototype,t),e[_o]=!0,e.extend=this.extend,e.superCall=ko,e.superApply=Mo,e.superClass=o,e}}function wo(t,e){t.extend=e.extend}var So=Math.round(10*Math.random());function ko(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Mo(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ao(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;return r&&(at(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),(n=xo(t.prototype.type=r)).sub?n.sub!==mo&&((function(t){var n=e[t.main];return n&&n[mo]||(n=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),n}(n))[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[mo]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){t=xo(t);var n=[];t=e[t.main];return t&&t[mo]?R(t,(function(t,e){e!==mo&&n.push(t)})):n.push(t),n},t.hasClass=function(t){return t=xo(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return R(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){return t=xo(t),t=e[t.main],t&&t[mo]}}function To(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];r&&0<=P(r,s)||i&&P(i,s)<0||null!=(s=n.getShallow(s,e))&&(o[t[a][0]]=s)}return o}}var Co=To([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Io=(Oo.prototype.getAreaStyle=function(t,e){return Co(this,t,e)},Oo);function Oo(){}var Po=new Ln(50);function Do(t,e,n,r,i){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:r,cbPayload:i},(r=Po.get(t))?Eo(e=r.image)||r.pending.push(n):((e=h.loadImage(t,Lo,Lo)).__zrImageSrc=t,Po.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Lo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Eo(t){return t&&t.width&&t.height}var Ro=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function No(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Bo(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=jo(o[a],i);return o.join("\n")}function Bo(t,e,n,r){for(var i=C({},r=r||{}),o=(i.font=e,n=nt(n,"..."),i.maxIterations=nt(r.maxIterations,2),i.minChar=nt(r.minChar,0)),a=(i.cnCharWidth=Qr("国",e),i.ascCharWidth=Qr("a",e)),s=(i.placeholder=nt(r.placeholder,""),t=Math.max(0,t-1)),l=0;l<o&&a<=s;l++)s-=a;return r=Qr(n,e),s<r&&(n="",r=0),s=t-r,i.ellipsis=n,i.ellipsisWidth=r,i.contentWidth=s,i.containerWidth=t,i}function jo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=Qr(t,r);if(!(o<=n)){for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}(t,i,e.ascCharWidth,e.cnCharWidth):0<o?Math.floor(t.length*i/o):0;o=Qr(t=t.substr(0,s),r)}""===t&&(t=e.placeholder)}return t}var Fo=function(){},zo=function(t){this.tokens=[],t&&(this.tokens=t)},Ho=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Vo(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;r?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=oi(l.width,r.width)+n,0<u.length&&t+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=t):(t=$o(e,c,r.width,r.breakAll,r.accumWidth),r.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;p<o.length;p++){var f,d,g=o[p],y=new Fo;y.styleName=i,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:Qr(g,c),p||h?u.push(new zo([y])):1===(d=(f=(u[u.length-1]||(u[0]=new zo)).tokens).length)&&f[0].isLineHolder?f[0]=y:!g&&d&&!s||f.push(y)}}var Uo=B(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function $o(t,e,n,r,i){for(var o,a=[],s=[],l="",u="",c=0,h=0,p=0;p<t.length;p++){var f,d,g=t.charAt(p);"\n"===g?(u&&(l+=u,h+=c),a.push(l),s.push(h),u=l="",h=c=0):(f=Qr(g,e),d=!(r||(d=void 0,!(32<=(d=(d=o=g).charCodeAt(0))&&d<=591||880<=d&&d<=4351||4608<=d&&d<=5119||7680<=d&&d<=8303))||Uo[o]),(a.length?n<h+f:n<i+h+f)?h?(l||u)&&(h=d?(l||(l=u,u="",h=c=0),a.push(l),s.push(h-c),u+=g,l="",c+=f):(u&&(l+=u,u="",c=0),a.push(l),s.push(h),l=g,f)):d?(a.push(u),s.push(c),u=g,c=f):(a.push(g),s.push(f)):(h+=f,d?(u+=g,c+=f):(u&&(l+=u,u="",c=0),l+=g)))}return a.length||l||(l=t,u="",c=0),u&&(l+=u),l&&(a.push(l),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}var Wo,Go="__zr_style_"+Math.round(10*Math.random()),qo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Yo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Xo=(qo[Go]=!0,["z","z2","invisible"]),Zo=["invisible"];n(Ko,Wo=Qn),Ko.prototype._init=function(t){for(var e=F(t),n=0;n<e.length;n++){var r=e[n];"style"===r?this.useStyle(t[r]):Wo.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},Ko.prototype.beforeBrush=function(){},Ko.prototype.afterBrush=function(){},Ko.prototype.innerBeforeBrush=function(){},Ko.prototype.innerAfterBrush=function(){},Ko.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return Jo.copy(t.getBoundingRect()),t.transform&&Jo.applyTransform(t.transform),Qo.width=e,Qo.height=n,!Jo.intersect(Qo)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},Ko.prototype.contain=function(t,e){return this.rectContain(t,e)},Ko.prototype.traverse=function(t,e){t.call(e,this)},Ko.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},Ko.prototype.getPaintRect=function(){var t,e,n,r,i,o=this._paintRect;return this._paintRect&&!this.__dirty||(i=this.transform,t=this.getBoundingRect(),e=(r=this.style).shadowBlur||0,n=r.shadowOffsetX||0,r=r.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new Ee(0,0,0,0)),i?Ee.applyTransform(o,t,i):o.copy(t),(e||n||r)&&(o.width+=2*e+Math.abs(n),o.height+=2*e+Math.abs(r),o.x=Math.min(o.x,o.x+n-e),o.y=Math.min(o.y,o.y+r-e)),i=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-i),o.y=Math.floor(o.y-i),o.width=Math.ceil(o.width+1+2*i),o.height=Math.ceil(o.height+1+2*i)),o},Ko.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Ee(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},Ko.prototype.getPrevPaintRect=function(){return this._prevPaintRect},Ko.prototype.animateStyle=function(t){return this.animate("style",t)},Ko.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},Ko.prototype.attrKV=function(t,e){"style"!==t?Wo.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},Ko.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:C(this.style,t),this.dirtyStyle(),this},Ko.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},Ko.prototype.dirty=function(){this.dirtyStyle()},Ko.prototype.styleChanged=function(){return!!(2&this.__dirty)},Ko.prototype.styleUpdated=function(){this.__dirty&=-3},Ko.prototype.createStyle=function(t){return mt(qo,t)},Ko.prototype.useStyle=function(t){t[Go]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},Ko.prototype.isStyleObject=function(t){return t[Go]},Ko.prototype._innerSaveToNormal=function(t){Wo.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,Xo)},Ko.prototype._applyStateObj=function(t,e,n,r,i,o){Wo.prototype._applyStateObj.call(this,t,e,n,r,i,o);var a,s=!(e&&r);if(e&&e.style?i?r?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(r?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(i){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=F(l),c=0;c<u.length;c++)(p=u[c])in a&&(a[p]=a[p],this.style[p]=l[p]);var h=F(a);for(c=0;c<h.length;c++){var p=h[c];this.style[p]=this.style[p]}this._transitionState(t,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);var f=this.__inHover?Zo:Xo;for(c=0;c<f.length;c++)p=f[c],e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])},Ko.prototype._mergeStates=function(t){for(var e,n=Wo.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var i=t[r];i.style&&this._mergeStyle(e=e||{},i.style)}return e&&(n.style=e),n},Ko.prototype._mergeStyle=function(t,e){return C(t,e),t},Ko.prototype.getAnimationStyleProps=function(){return Yo},Ko.initDefaultProps=((Qn=Ko.prototype).type="displayable",Qn.invisible=!1,Qn.z=0,Qn.z2=0,Qn.zlevel=0,Qn.culling=!1,Qn.cursor="pointer",Qn.rectHover=!1,Qn.incremental=!1,Qn._rect=null,Qn.dirtyRectTolerance=0,void(Qn.__dirty=3)),Qn=Ko;function Ko(t){return Wo.call(this,t)||this}var Jo=new Ee(0,0,0,0),Qo=new Ee(0,0,0,0),ta=Math.min,ea=Math.max,na=Math.sin,ra=Math.cos,ia=2*Math.PI,oa=kt(),aa=kt(),sa=kt();function la(t,e,n,r,i,o){i[0]=ta(t,n),i[1]=ta(e,r),o[0]=ea(t,n),o[1]=ea(e,r)}var ua=[],ca=[],ha={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pa=[],fa=[],da=[],ga=[],ya=[],va=[],ma=Math.min,_a=Math.max,xa=Math.cos,ba=Math.sin,wa=Math.abs,Sa=Math.PI,ka=2*Sa,Ma="undefined"!=typeof Float32Array,Aa=[];function Ta(t){return Math.round(t/Sa*1e8)/1e8%2*Sa}function Ca(t,e){var n=Ta(t[0]),r=(n<0&&(n+=ka),n-t[0]),i=t[1];i+=r,!e&&ka<=i-n?i=n+ka:e&&ka<=n-i?i=n-ka:!e&&i<n?i=n+(ka-Ta(n-i)):e&&n<i&&(i=n-(ka-Ta(i-n))),t[0]=n,t[1]=i}Oa.prototype.increaseVersion=function(){this._version++},Oa.prototype.getVersion=function(){return this._version},Oa.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=wa(n/zr/t)||0,this._uy=wa(n/zr/e)||0)},Oa.prototype.setDPR=function(t){this.dpr=t},Oa.prototype.setContext=function(t){this._ctx=t},Oa.prototype.getContext=function(){return this._ctx},Oa.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},Oa.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},Oa.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ha.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},Oa.prototype.lineTo=function(t,e){var n=wa(t-this._xi),r=wa(e-this._yi),i=n>this._ux||r>this._uy;return this.addData(ha.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i?(this._xi=t,this._yi=e,this._pendingPtDist=0):(i=n*n+r*r)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=i),this},Oa.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(ha.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},Oa.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(ha.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},Oa.prototype.arc=function(t,e,n,r,i,o){return this._drawPendingPt(),Aa[0]=r,Aa[1]=i,Ca(Aa,o),this.addData(ha.A,t,e,n,n,r=Aa[0],(i=Aa[1])-r,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=xa(i)*n+t,this._yi=ba(i)*n+e,this},Oa.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},Oa.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(ha.R,t,e,n,r),this},Oa.prototype.closePath=function(){this._drawPendingPt(),this.addData(ha.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},Oa.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Oa.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Oa.prototype.len=function(){return this._len},Oa.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ma||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},Oa.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();for(Ma&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n)),i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},Oa.prototype.addData=function(t,e,n,r,i,o,a,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]}},Oa.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},Oa.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},Oa.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,Ma)&&11<this._len&&(this.data=new Float32Array(t))},Oa.prototype.getBoundingRect=function(){da[0]=da[1]=ya[0]=ya[1]=Number.MAX_VALUE,ga[0]=ga[1]=va[0]=va[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,r=0,i=0,o=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(i=n=e[a],o=r=e[a+1]),s){case ha.M:n=i=e[a++],r=o=e[a++],ya[0]=i,ya[1]=o,va[0]=i,va[1]=o;break;case ha.L:la(n,r,e[a],e[a+1],ya,va),n=e[a++],r=e[a++];break;case ha.C:k=S=w=b=x=_=m=v=void 0;var u=n,c=r,h=e[a++],p=e[a++],f=e[a++],d=e[a++],g=e[a],y=e[a+1],v=ya,m=va,_=mn,x=gn,b=_(u,h,f,g,ua);v[0]=1/0,v[1]=1/0,m[0]=-1/0,m[1]=-1/0;for(var w=0;w<b;w++){var S=x(u,h,f,g,ua[w]);v[0]=ta(S,v[0]),m[0]=ea(S,m[0])}for(b=_(c,p,d,y,ca),w=0;w<b;w++){var k=x(c,p,d,y,ca[w]);v[1]=ta(k,v[1]),m[1]=ea(k,m[1])}v[0]=ta(u,v[0]),m[0]=ea(u,m[0]),v[0]=ta(g,v[0]),m[0]=ea(g,m[0]),v[1]=ta(c,v[1]),m[1]=ea(c,m[1]),v[1]=ta(y,v[1]),m[1]=ea(y,m[1]),n=e[a++],r=e[a++];break;case ha.Q:_=n,F=r,P=e[a++],T=e[a++],O=e[a],M=e[a+1],I=ya,D=va,t=C=t=A=void 0,A=bn,t=ea(ta((C=Sn)(_,P,O),1),0),C=ea(ta(C(F,T,M),1),0),P=A(_,P,O,t),t=A(F,T,M,C),I[0]=ta(_,O,P),I[1]=ta(F,M,t),D[0]=ea(_,O,P),D[1]=ea(F,M,t),n=e[a++],r=e[a++];break;case ha.A:var M,A=e[a++],T=e[a++],C=e[a++],I=e[a++],O=e[a++],P=e[a++]+O,D=(a+=1,!e[a++]),L=(l&&(i=xa(O)*C+A,o=ba(O)*I+T),$=M=U=V=H=z=F=j=B=L=void 0,A),E=T,R=C,N=I,B=O,j=P,F=D,z=ya,H=va,V=jt,U=Ft;if((M=Math.abs(B-j))%ia<1e-4&&1e-4<M)z[0]=L-R,z[1]=E-N,H[0]=L+R,H[1]=E+N;else{oa[0]=ra(B)*R+L,oa[1]=na(B)*N+E,aa[0]=ra(j)*R+L,aa[1]=na(j)*N+E,V(z,oa,aa),U(H,oa,aa),(B%=ia)<0&&(B+=ia),(j%=ia)<0&&(j+=ia),j<B&&!F?j+=ia:B<j&&F&&(B+=ia),F&&(M=j,j=B,B=M);for(var $=0;$<j;$+=Math.PI/2)B<$&&(sa[0]=ra($)*R+L,sa[1]=na($)*N+E,V(z,sa,z),U(H,sa,H))}n=xa(P)*C+A,r=ba(P)*I+T;break;case ha.R:la(i=n=e[a++],o=r=e[a++],i+e[a++],o+e[a++],ya,va);break;case ha.Z:n=i,r=o}jt(da,da,ya),Ft(ga,ga,va)}return 0===a&&(da[0]=da[1]=ga[0]=ga[1]=0),new Ee(da[0],da[1],ga[0]-da[0],ga[1]-da[1])},Oa.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,c=0,h=0;h<e;){var p=t[h++],f=1===h,d=(f&&(a=i=t[h],s=o=t[h+1]),-1);switch(p){case ha.M:i=a=t[h++],o=s=t[h++];break;case ha.L:var g=t[h++],y=(_=t[h++])-o;(wa(T=g-i)>n||wa(y)>r||h===e-1)&&(d=Math.sqrt(T*T+y*y),i=g,o=_);break;case ha.C:var v=t[h++],m=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];d=function(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,p=1;p<=10;p++){var f=.1*p,d=gn(t,n,i,a,f),g=(f=gn(e,r,o,s,f),d-u),y=f-c;h+=Math.sqrt(g*g+y*y),u=d,c=f}return h}(i,o,v,m,g,_,x,b),i=x,o=b;break;case ha.Q:d=function(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1;c<=10;c++){var h=.1*c,p=bn(t,n,i,h),f=(h=bn(e,r,o,h),p-s),d=h-l;u+=Math.sqrt(f*f+d*d),s=p,l=h}return u}(i,o,v=t[h++],m=t[h++],g=t[h++],_=t[h++]),i=g,o=_;break;case ha.A:x=t[h++],b=t[h++];var w=t[h++],S=t[h++],k=t[h++],M=t[h++],A=M+k;h+=1,f&&(a=xa(k)*w+x,s=ba(k)*S+b),d=_a(w,S)*ma(ka,Math.abs(M)),i=xa(A)*w+x,o=ba(A)*S+b;break;case ha.R:a=i=t[h++],s=o=t[h++],d=2*t[h++]+2*t[h++];break;case ha.Z:var T=a-i;y=s-o;d=Math.sqrt(T*T+y*y),i=a,o=s}0<=d&&(u+=l[c++]=d)}return this._pathLen=u},Oa.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c=this.data,h=this._ux,p=this._uy,f=this._len,d=e<1,g=0,y=0,v=0;if(!d||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var m=0;m<f;){var _=c[m++],x=1===m;switch(x&&(n=i=c[m],r=o=c[m+1]),_!==ha.L&&0<v&&(t.lineTo(l,u),v=0),_){case ha.M:n=i=c[m++],r=o=c[m++],t.moveTo(i,o);break;case ha.L:var b=c[m++],w=c[m++],S=wa(b-i),k=wa(w-o);if(h<S||p<k){if(d){if(s<g+(V=a[y++])){var M=(s-g)/V;t.lineTo(i*(1-M)+b*M,o*(1-M)+w*M);break t}g+=V}t.lineTo(b,w),i=b,o=w,v=0}else S=S*S+k*k,v<S&&(l=b,u=w,v=S);break;case ha.C:var A=c[m++],T=c[m++],C=c[m++],I=c[m++];k=c[m++],S=c[m++];if(d){if(s<g+(V=a[y++])){_n(i,A,C,k,M=(s-g)/V,pa),_n(o,T,I,S,M,fa),t.bezierCurveTo(pa[1],fa[1],pa[2],fa[2],pa[3],fa[3]);break t}g+=V}t.bezierCurveTo(A,T,C,I,k,S),i=k,o=S;break;case ha.Q:if(A=c[m++],T=c[m++],C=c[m++],I=c[m++],d){if(s<g+(V=a[y++])){kn(i,A,C,M=(s-g)/V,pa),kn(o,T,I,M,fa),t.quadraticCurveTo(pa[1],fa[1],pa[2],fa[2]);break t}g+=V}t.quadraticCurveTo(A,T,C,I),i=C,o=I;break;case ha.A:var O=c[m++],P=c[m++],D=c[m++],L=c[m++],E=c[m++],R=c[m++],N=c[m++],B=!c[m++],j=L<D?D:L,F=.001<wa(D-L),z=E+R,H=!1;if(d&&(s<g+(V=a[y++])&&(z=E+R*(s-g)/V,H=!0),g+=V),F&&t.ellipse?t.ellipse(O,P,D,L,N,E,z,B):t.arc(O,P,j,E,z,B),H)break t;x&&(n=xa(E)*D+O,r=ba(E)*L+P),i=xa(z)*D+O,o=ba(z)*L+P;break;case ha.R:n=i=c[m],r=o=c[m+1],b=c[m++],w=c[m++];var V;R=c[m++],F=c[m++];if(d){if(s<g+(V=a[y++])){N=s-g,t.moveTo(b,w),t.lineTo(b+ma(N,R),w),0<(N-=R)&&t.lineTo(b+R,w+ma(N,F)),0<(N-=F)&&t.lineTo(b+_a(R-N,0),w+F),0<(N-=R)&&t.lineTo(b,w+_a(F-N,0));break t}g+=V}t.rect(b,w,R,F);break;case ha.Z:if(d){if(s<g+(V=a[y++])){M=(s-g)/V,t.lineTo(i*(1-M)+n*M,o*(1-M)+r*M);break t}g+=V}t.closePath(),i=n,o=r}}},Oa.prototype.clone=function(){var t=new Oa,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},Oa.CMD=ha,Oa.initDefaultProps=((Vl=Oa.prototype)._saveData=!0,Vl._ux=0,Vl._uy=0,Vl._pendingPtDist=0,void(Vl._version=0));var Ia=Oa;function Oa(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function Pa(t,e,n,r,i,o,a){var s;if(0!==i)return s=0,!(e+(i=i)<a&&r+i<a||a<e-i&&a<r-i||t+i<o&&n+i<o||o<t-i&&o<n-i)&&(t===n?Math.abs(o-t)<=i/2:(o=(s=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n))*o/(s*s+1)<=i/2*i/2)}var Da=2*Math.PI;function La(t){return(t%=Da)<0&&(t+=Da),t}var Ea=2*Math.PI;function Ra(t,e,n,r,i,o){return e<o&&r<o||o<e&&o<r||r===e?0:(n=(o=(o-e)/(r-e))*(n-t)+t)===i?1/0:i<n?1!=o&&0!=o?r<e?1:-1:r<e?.5:-.5:0}var Na=Ia.CMD,Ba=2*Math.PI,ja=[-1,-1,-1],Fa=[-1,-1];function za(t,e,n,r,i,o,a,s,l,u){if(e<u&&r<u&&o<u&&s<u||u<e&&u<r&&u<o&&u<s)return 0;var c=vn(e,r,o,s,u,ja);if(0===c)return 0;for(var h,p=0,f=-1,d=void 0,g=void 0,y=0;y<c;y++){var v=ja[y],m=0===v||1===v?.5:1;gn(t,n,i,a,v)<l||(f<0&&(f=mn(e,r,o,s,Fa),Fa[1]<Fa[0]&&1<f&&(void 0,h=Fa[0],Fa[0]=Fa[1],Fa[1]=h),d=gn(e,r,o,s,Fa[0]),1<f)&&(g=gn(e,r,o,s,Fa[1])),2===f?v<Fa[0]?p+=d<e?m:-m:v<Fa[1]?p+=g<d?m:-m:p+=s<g?m:-m:v<Fa[0]?p+=d<e?m:-m:p+=s<d?m:-m)}return p}function Ha(t,e,n,r,i,o,a,s){if(e<s&&r<s&&o<s||s<e&&s<r&&s<o)return 0;h=ja,c=(l=e)-2*(u=r)+(c=o),u=2*(u-l),l-=s=s,s=0,fn(c)?dn(u)&&0<=(p=-l/u)&&p<=1&&(h[s++]=p):fn(l=u*u-4*c*l)?0<=(p=-u/(2*c))&&p<=1&&(h[s++]=p):0<l&&(f=(-u-(l=ln(l)))/(2*c),0<=(p=(-u+l)/(2*c))&&p<=1&&(h[s++]=p),0<=f)&&f<=1&&(h[s++]=f);var l,u,c,h,p,f,d=s;if(0===d)return 0;var g=Sn(e,r,o);if(0<=g&&g<=1){for(var y=0,v=bn(e,r,o,g),m=0;m<d;m++){var _=0===ja[m]||1===ja[m]?.5:1;bn(t,n,i,ja[m])<a||(ja[m]<g?y+=v<e?_:-_:y+=o<v?_:-_)}return y}return _=0===ja[0]||1===ja[0]?.5:1,bn(t,n,i,ja[0])<a?0:o<e?_:-_}function Va(t,e,n,r,i){for(var o,a=t.data,s=t.len(),l=0,u=0,c=0,h=0,p=0,f=0;f<s;){var d=a[f++],g=1===f;switch(d===Na.M&&1<f&&(n||(l+=Ra(u,c,h,p,r,i))),g&&(h=u=a[f],p=c=a[f+1]),d){case Na.M:u=h=a[f++],c=p=a[f++];break;case Na.L:if(n){if(Pa(u,c,a[f],a[f+1],e,r,i))return!0}else l+=Ra(u,c,a[f],a[f+1],r,i)||0;u=a[f++],c=a[f++];break;case Na.C:if(n){if(function(t,e,n,r,i,o,a,s,l,u,c){if(0!==l)return!(e+(l=l)<c&&r+l<c&&o+l<c&&s+l<c||c<e-l&&c<r-l&&c<o-l&&c<s-l||t+l<u&&n+l<u&&i+l<u&&a+l<u||u<t-l&&u<n-l&&u<i-l&&u<a-l)&&xn(t,e,n,r,i,o,a,s,u,c,null)<=l/2}(u,c,a[f++],a[f++],a[f++],a[f++],a[f],a[f+1],e,r,i))return!0}else l+=za(u,c,a[f++],a[f++],a[f++],a[f++],a[f],a[f+1],r,i)||0;u=a[f++],c=a[f++];break;case Na.Q:if(n){if(function(t,e,n,r,i,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&r+a<l&&o+a<l||l<e-a&&l<r-a&&l<o-a||t+a<s&&n+a<s&&i+a<s||s<t-a&&s<n-a&&s<i-a)&&Mn(t,e,n,r,i,o,s,l,null)<=a/2}(u,c,a[f++],a[f++],a[f],a[f+1],e,r,i))return!0}else l+=Ha(u,c,a[f++],a[f++],a[f],a[f+1],r,i)||0;u=a[f++],c=a[f++];break;case Na.A:var y=a[f++],v=a[f++],m=a[f++],_=a[f++],x=a[f++],b=a[f++],w=(f+=1,!!(1-a[f++])),S=Math.cos(x)*m+y,k=Math.sin(x)*_+v,M=(g?(h=S,p=k):l+=Ra(u,c,S,k,r,i),(r-y)*_/m+y);if(n){if(function(t,e,n,r,i,o,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(r-i)%Ea<1e-4||((i=o?(e=r,r=La(i),La(e)):(r=La(r),La(i)))<r&&(i+=Ea),(t=Math.atan2(l,s))<0&&(t+=Ea),r<=t&&t<=i)||r<=t+Ea&&t+Ea<=i)}(y,v,_,x,x+b,w,e,M,i))return!0}else l+=function(t,e,n,r,i,o,a,s){if(n<(s-=e)||s<-n)return 0;e=Math.sqrt(n*n-s*s);if(ja[0]=-e,ja[1]=e,(n=Math.abs(r-i))<1e-4)return 0;if(Ba-1e-4<=n)return i=Ba,c=o?1:-1,a>=ja[r=0]+t&&a<=ja[1]+t?c:0;i<r&&(e=r,r=i,i=e),r<0&&(r+=Ba,i+=Ba);for(var l=0,u=0;u<2;u++){var c,h=ja[u];a<h+t&&(c=o?1:-1,r<=(h=(h=Math.atan2(s,h))<0?Ba+h:h)&&h<=i||r<=h+Ba&&h+Ba<=i)&&(l+=c=h>Math.PI/2&&h<1.5*Math.PI?-c:c)}return l}(y,v,_,x,x+b,w,M,i);u=Math.cos(x+b)*m+y,c=Math.sin(x+b)*_+v;break;case Na.R:if(h=u=a[f++],p=c=a[f++],S=h+a[f++],k=p+a[f++],n){if(Pa(h,p,S,p,e,r,i)||Pa(S,p,S,k,e,r,i)||Pa(S,k,h,k,e,r,i)||Pa(h,k,h,p,e,r,i))return!0}else l=(l+=Ra(S,p,S,k,r,i))+Ra(h,k,h,p,r,i);break;case Na.Z:if(n){if(Pa(u,c,h,p,e,r,i))return!0}else l+=Ra(u,c,h,p,r,i);u=h,c=p}}return n||(t=c,o=p,Math.abs(t-o)<1e-4)||(l+=Ra(u,c,h,p,r,i)||0),0!==l}var Ua,$a=I({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qo),Wa={style:I({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Yo.style)},Ga=Kr.concat(["invisible","culling","z","z2","zlevel","parent"]),qa=(n(Ya,Ua=Qn),Ya.prototype.update=function(){var t=this,e=(Ua.prototype.update.call(this),this.style);if(e.decal){var n,r=this._decalEl=this._decalEl||new Ya,i=(r.buildPath===Ya.prototype.buildPath&&(r.buildPath=function(e){t.buildPath(e,t.shape)}),r.silent=!0,r.style);for(n in e)i[n]!==e[n]&&(i[n]=e[n]);i.fill=e.fill?e.decal:null,i.decal=null,i.shadowColor=null,e.strokeFirst&&(i.stroke=null);for(var o=0;o<Ga.length;++o)r[Ga[o]]=this[Ga[o]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},Ya.prototype.getDecalElement=function(){return this._decalEl},Ya.prototype._init=function(t){var e=F(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var r=0;r<e.length;r++){var i=e[r],o=t[i];"style"===i?this.style?C(this.style,o):this.useStyle(o):"shape"===i?C(this.shape,o):Ua.prototype.attrKV.call(this,i,o)}this.style||this.useStyle({})},Ya.prototype.getDefaultStyle=function(){return null},Ya.prototype.getDefaultShape=function(){return{}},Ya.prototype.canBeInsideText=function(){return this.hasFill()},Ya.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if($(e))return.5<(t=er(e,0))?Hr:.2<t?"#eee":Vr;if(e)return Vr}return Hr},Ya.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if($(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==er(t,0)<.4)return e}},Ya.prototype.buildPath=function(t,e,n){},Ya.prototype.pathUpdated=function(){this.__dirty&=-5},Ya.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Ya.prototype.createPathProxy=function(){this.path=new Ia(!1)},Ya.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Ya.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ya.prototype.getBoundingRect=function(){var t,e,n=this._rect,r=this.style,i=!n;return i&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||4&this.__dirty)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||i)&&(t.copy(n),e=r.strokeNoScale?this.getLineScale():1,i=r.lineWidth,this.hasFill()||(r=this.strokeContainThreshold,i=Math.max(i,null==r?4:r)),1e-10<e)&&(t.width+=i/e,t.height+=i/e,t.x-=i/e/2,t.y-=i/e/2),t):n},Ya.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){if(n=this.path,this.hasStroke()&&(r=i.lineWidth,i=i.strokeNoScale?this.getLineScale():1,1e-10<i&&(this.hasFill()||(r=Math.max(r,this.strokeContainThreshold)),Va(n,r/i,!0,t,e))))return!0;if(this.hasFill())return Va(n,0,!1,t,e)}return!1},Ya.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Ya.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Ya.prototype.animateShape=function(t){return this.animate("shape",t)},Ya.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Ya.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Ua.prototype.attrKV.call(this,t,e)},Ya.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:C(n,t),this.dirtyShape(),this},Ya.prototype.shapeChanged=function(){return!!(4&this.__dirty)},Ya.prototype.createStyle=function(t){return mt($a,t)},Ya.prototype._innerSaveToNormal=function(t){Ua.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=C({},this.shape))},Ya.prototype._applyStateObj=function(t,e,n,r,i,o){Ua.prototype._applyStateObj.call(this,t,e,n,r,i,o);var a,l=!(e&&r);if(e&&e.shape?i?r?a=e.shape:(a=C({},n.shape),C(a,e.shape)):(a=C({},(r?this:n).shape),C(a,e.shape)):l&&(a=n.shape),a)if(i){this.shape=C({},this.shape);for(var u={},c=F(a),h=0;h<c.length;h++){var p=c[h];"object"==s(a[p])?this.shape[p]=a[p]:u[p]=a[p]}this._transitionState(t,{shape:u},o)}else this.shape=a,this.dirtyShape()},Ya.prototype._mergeStates=function(t){for(var e,n=Ua.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var i=t[r];i.shape&&this._mergeStyle(e=e||{},i.shape)}return e&&(n.shape=e),n},Ya.prototype.getAnimationStyleProps=function(){return Wa},Ya.prototype.isZeroArea=function(){return!1},Ya.extend=function(t){n(o,e=Ya),o.prototype.getDefaultStyle=function(){return A(t.style)},o.prototype.getDefaultShape=function(){return A(t.shape)};var e,r,i=o;function o(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}for(r in t)"function"==typeof t[r]&&(i.prototype[r]=t[r]);return i},Ya.initDefaultProps=((Vl=Ya.prototype).type="path",Vl.strokeContainThreshold=5,Vl.segmentIgnoreThreshold=0,Vl.subPixelOptimize=!1,Vl.autoBatch=!1,void(Vl.__dirty=7)),Ya);function Ya(t){return Ua.call(this,t)||this}var Xa,Za=I({strokeFirst:!0,font:u,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},$a),Ka=(n(Ja,Xa=Qn),Ja.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Ja.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ja.prototype.createStyle=function(t){return mt(Za,t)},Ja.prototype.setBoundingRect=function(t){this._rect=t},Ja.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=ei(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},Ja.initDefaultProps=void(Ja.prototype.dirtyRectTolerance=10),Ja);function Ja(){return null!==Xa&&Xa.apply(this,arguments)||this}Ka.prototype.type="tspan";var Qa=I({x:0,y:0},qo),ts={style:I({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Yo.style)};n(rs,es=Qn),rs.prototype.createStyle=function(t){return mt(Qa,t)},rs.prototype._getSize=function(t){var e,n=this.style,r=n[t];return null!=r?r:(r=(r=n.image)&&"string"!=typeof r&&r.width&&r.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?r[t]:r[t]/r[n]*e:0},rs.prototype.getWidth=function(){return this._getSize("width")},rs.prototype.getHeight=function(){return this._getSize("height")},rs.prototype.getAnimationStyleProps=function(){return ts},rs.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ee(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var es,ns=rs;function rs(){return null!==es&&es.apply(this,arguments)||this}ns.prototype.type="image";var is=Math.round;function os(t,e,n){var r,i,o;if(e)return r=e.x1,i=e.x2,o=e.y1,e=e.y2,t.x1=r,t.x2=i,t.y1=o,t.y2=e,(n=n&&n.lineWidth)&&(is(2*r)===is(2*i)&&(t.x1=t.x2=ss(r,n,!0)),is(2*o)===is(2*e))&&(t.y1=t.y2=ss(o,n,!0)),t}function as(t,e,n){var r,i,o;if(e)return r=e.x,i=e.y,o=e.width,e=e.height,t.x=r,t.y=i,t.width=o,t.height=e,(n=n&&n.lineWidth)&&(t.x=ss(r,n,!0),t.y=ss(i,n,!0),t.width=Math.max(ss(r+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(ss(i+e,n,!1)-t.y,0===e?0:1)),t}function ss(t,e,n){var r;return e?((r=is(2*t))+is(e))%2==0?r/2:(r+(n?1:-1))/2:t}var ls,us=function(){this.x=0,this.y=0,this.width=0,this.height=0},cs={},hs=(n(ps,ls=qa),ps.prototype.getDefaultShape=function(){return new us},ps.prototype.buildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,p,f,d,g;this.subPixelOptimize?(n=(a=as(cs,e,this.style)).x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a):(n=e.x,r=e.y,i=e.width,o=e.height),e.r?(a=t,p=(e=e).x,f=e.y,d=e.width,g=e.height,e=e.r,d<0&&(p+=d,d=-d),g<0&&(f+=g,g=-g),"number"==typeof e?s=l=u=c=e:e instanceof Array?1===e.length?s=l=u=c=e[0]:2===e.length?(s=u=e[0],l=c=e[1]):3===e.length?(s=e[0],l=c=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],c=e[3]):s=l=u=c=0,d<s+l&&(s*=d/(h=s+l),l*=d/h),d<u+c&&(u*=d/(h=u+c),c*=d/h),g<l+u&&(l*=g/(h=l+u),u*=g/h),g<s+c&&(s*=g/(h=s+c),c*=g/h),a.moveTo(p+s,f),a.lineTo(p+d-l,f),0!==l&&a.arc(p+d-l,f+l,l,-Math.PI/2,0),a.lineTo(p+d,f+g-u),0!==u&&a.arc(p+d-u,f+g-u,u,0,Math.PI/2),a.lineTo(p+c,f+g),0!==c&&a.arc(p+c,f+g-c,c,Math.PI/2,Math.PI),a.lineTo(p,f+s),0!==s&&a.arc(p+s,f+s,s,Math.PI,1.5*Math.PI)):t.rect(n,r,i,o)},ps.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},ps);function ps(t){return ls.call(this,t)||this}hs.prototype.type="rect";var fs,ds={fill:"#000"},gs={style:I({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},Yo.style)},ys=(n(vs,fs=Qn),vs.prototype.childrenRef=function(){return this._children},vs.prototype.update=function(){fs.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},vs.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):fs.prototype.updateTransform.call(this)},vs.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):fs.prototype.getLocalTransform.call(this,t)},vs.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),fs.prototype.getComputedTransform.call(this)},vs.prototype._updateSubTexts=function(){var t;this._childCursor=0,ws(t=this.style),R(t.rich,ws),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},vs.prototype.addSelfToZr=function(t){fs.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},vs.prototype.removeSelfFromZr=function(t){fs.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},vs.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Ee(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect();o=o.getLocalTransform(n);o?(t.copy(a),t.applyTransform(o),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},vs.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||ds},vs.prototype.setTextContent=function(t){},vs.prototype._mergeStyle=function(t,e){var n,r;return e&&(n=e.rich,r=t.rich||n&&{},C(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r)),t},vs.prototype._mergeRich=function(t,e){for(var n=F(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},C(t[i],e[i])}},vs.prototype.getAnimationStyleProps=function(){return gs},vs.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},vs.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||u,r=e.padding,i=function(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=ii(o),l=nt(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width,p=(r=(n=null==h||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?$o(t,e.font,h,"breakAll"===r,0).lines:[]).length*l,nt(e.height,r));if(p<r&&c&&(c=Math.floor(p/l),n=n.slice(0,c)),t&&a&&null!=h)for(var f=Bo(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),d=0;d<n.length;d++)n[d]=jo(n[d],f);c=p;var g=0;for(d=0;d<n.length;d++)g=Math.max(Qr(n[d],o),g);return null==h&&(h=g),t=g,i&&(c+=i[0]+i[2],t+=i[1]+i[3],h+=i[1]+i[3]),{lines:n,height:p,outerWidth:t=u?h:t,outerHeight:c,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:r,width:h}}(As(e),e),o=Ts(e),a=!!e.backgroundColor,s=i.outerHeight,l=i.outerWidth,c=i.contentWidth,h=i.lines,p=i.lineHeight,f=this._defaultStyle,d=e.x||0,g=e.y||0,y=e.align||f.align||"left",v=e.verticalAlign||f.verticalAlign||"top",m=d,_=ri(g,i.contentHeight,v),x=((o||r)&&(t=ni(d,l,y),g=ri(g,s,v),o)&&this._renderBackground(e,e,t,g,l,s),_+=p/2,r&&(m=Ms(d,y,r),"top"===v?_+=r[0]:"bottom"===v&&(_-=r[2])),0),b=(o=!1,ks(("fill"in e?e:(o=!0,f)).fill)),w=(Ss("stroke"in e?e.stroke:a||f.autoStroke&&!o?null:(x=2,f.stroke))),S=0<e.textShadowBlur,k=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=i.calculatedLineHeight,A=0;A<h.length;A++){var T=this._getOrCreateChild(Ka),C=T.createStyle();T.useStyle(C),C.text=h[A],C.x=m,C.y=_,y&&(C.textAlign=y),C.textBaseline="middle",C.opacity=e.opacity,C.strokeFirst=!0,S&&(C.shadowBlur=e.textShadowBlur||0,C.shadowColor=e.textShadowColor||"transparent",C.shadowOffsetX=e.textShadowOffsetX||0,C.shadowOffsetY=e.textShadowOffsetY||0),C.stroke=w,C.fill=b,w&&(C.lineWidth=e.lineWidth||x,C.lineDash=e.lineDash,C.lineDashOffset=e.lineDashOffset||0),C.font=n,bs(C,e),_+=p,k&&T.setBoundingRect(new Ee(ni(C.x,e.width,C.textAlign),ri(C.y,M,C.textBaseline),c,M))}},vs.prototype._updateRichTexts=function(){for(var t=this.style,e=function(t,e){var n=new Ho;if(null!=t&&(t+=""),t){for(var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Ro.lastIndex=0;null!=(r=Ro.exec(t));){var u=r.index;l<u&&Vo(n,t.substring(l,u),e,s),Vo(n,r[2],e,s,r[1]),l=Ro.lastIndex}l<t.length&&Vo(n,t.substring(l,t.length),e,s);var c,h=[],p=0,f=0,d=e.padding,g="truncate"===a,y="truncate"===e.lineOverflow;t:for(var v=0;v<n.lines.length;v++){for(var m=n.lines[v],_=0,x=0,b=0;b<m.tokens.length;b++){var w=(I=m.tokens[b]).styleName&&e.rich[I.styleName]||{},S=I.textPadding=w.padding,k=S?S[1]+S[3]:0,M=I.font=w.font||e.font,A=(I.contentHeight=ii(M),nt(w.height,I.contentHeight));if(I.innerHeight=A,S&&(A+=S[0]+S[2]),I.height=A,I.lineHeight=rt(w.lineHeight,e.lineHeight,A),I.align=w&&w.align||e.align,I.verticalAlign=w&&w.verticalAlign||"middle",y&&null!=o&&p+I.lineHeight>o){0<b?(m.tokens=m.tokens.slice(0,b),P(m,x,_),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}S=w.width;var T,C=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(I.percentWidth=S,h.push(I),I.contentWidth=Qr(I.text,M)):(C&&(S=(S=w.backgroundColor)&&S.image)&&(T=void 0,Eo(S="string"==typeof(c=S)?(T=Po.get(c))&&T.image:c))&&(I.width=Math.max(I.width,S.width*A/S.height)),null!=(T=g&&null!=i?i-x:null)&&T<I.width?!C||T<k?(I.text="",I.width=I.contentWidth=0):(I.text=No(I.text,T-k,M,e.ellipsis,{minChar:e.truncateMinChar}),I.width=I.contentWidth=Qr(I.text,M)):I.contentWidth=Qr(I.text,M)),I.width+=k,x+=I.width,w&&(_=Math.max(_,I.lineHeight))}P(m,x,_)}for(n.outerWidth=n.width=nt(i,f),n.outerHeight=n.height=nt(o,p),n.contentHeight=p,n.contentWidth=f,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),v=0;v<h.length;v++){var I,O=(I=h[v]).percentWidth;I.width=parseInt(O,10)/100*n.width}}return n;function P(t,e,n){t.width=e,t.lineHeight=n,p+=n,f=Math.max(f,e)}}(As(t),t),n=e.width,r=e.outerWidth,i=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=(l=t.verticalAlign||l.verticalAlign,a=ni(a,r,u),u=ri(s,i,l),a),h=u,p=(o&&(c+=o[3],h+=o[0]),c+n),f=(Ts(t)&&this._renderBackground(t,t,a,u,r,i),!!t.backgroundColor),d=0;d<e.lines.length;d++){for(var g=e.lines[d],y=g.tokens,v=y.length,m=g.lineHeight,_=g.width,x=0,b=c,w=p,S=v-1,k=void 0;x<v&&(!(k=y[x]).align||"left"===k.align);)this._placeToken(k,t,m,h,b,"left",f),_-=k.width,b+=k.width,x++;for(;0<=S&&"right"===(k=y[S]).align;)this._placeToken(k,t,m,h,w,"right",f),_-=k.width,w-=k.width,S--;for(b+=(n-(b-c)-(p-w)-_)/2;x<=S;)k=y[x],this._placeToken(k,t,m,h,b+k.width/2,"center",f),b+=k.width,x++;h+=m}},vs.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),c=r+n/2;"top"===l?c=r+t.height/2:"bottom"===l&&(c=r+n-t.height/2),!t.isLineHolder&&Ts(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,c-t.height/2,t.width,t.height);l=!!s.backgroundColor,r=t.textPadding,r&&(i=Ms(i,o,r),c-=t.height/2-r[0]-t.innerHeight/2),n=this._getOrCreateChild(Ka),r=n.createStyle();var h=(n.useStyle(r),this._defaultStyle),p=!1,f=0,d=ks(("fill"in s?s:"fill"in e?e:(p=!0,h)).fill);l=Ss("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!p?null:(f=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,r.text=t.text,r.x=i,r.y=c,a&&(r.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,r.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",r.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,r.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),r.textAlign=o,r.textBaseline="middle",r.font=t.font||u,r.opacity=rt(s.opacity,e.opacity,1),bs(r,s),l&&(r.lineWidth=rt(s.lineWidth,e.lineWidth,f),r.lineDash=nt(s.lineDash,e.lineDash),r.lineDashOffset=e.lineDashOffset||0,r.stroke=l),d&&(r.fill=d),p=t.contentWidth,h=t.contentHeight;n.setBoundingRect(new Ee(ni(r.x,p,r.textAlign),ri(r.y,h,r.textBaseline),p,h))},vs.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u,c=t.backgroundColor,h=t.borderWidth,p=t.borderColor,f=c&&c.image,d=c&&!f,g=t.borderRadius,y=this;(d||t.lineHeight||h&&p)&&((a=this._getOrCreateChild(hs)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=r,l.width=i,l.height=o,l.r=g,a.dirtyShape()),d?((u=a.style).fill=c||null,u.fillOpacity=nt(t.fillOpacity,1)):f&&((s=this._getOrCreateChild(ns)).onload=function(){y.dirtyStyle()},(l=s.style).image=c.image,l.x=n,l.y=r,l.width=i,l.height=o),h&&p&&((u=a.style).lineWidth=h,u.stroke=p,u.strokeOpacity=nt(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),g=(a||s).style;g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=rt(t.opacity,e.opacity,1)},vs.makeFont=function(t){var e,n="";return(n=null!=(e=t).fontSize||e.fontFamily||e.fontWeight?[t.fontStyle,t.fontWeight,"string"!=typeof(e=t.fontSize)||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e,t.fontFamily||"sans-serif"].join(" "):n)&&st(n)||t.textFont||t.font},vs);function vs(t){var e=fs.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=ds,e.attr(t),e}var ms={left:!0,right:1,center:1},_s={top:1,bottom:1,middle:1},xs=["fontStyle","fontWeight","fontSize","fontFamily"];function bs(t,e){for(var n=0;n<xs.length;n++){var r=xs[n],i=e[r];null!=i&&(t[r]=i)}}function ws(t){var e;t&&(t.font=ys.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||ms[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||_s[e]?e:"top",t.padding)&&(t.padding=ot(t.padding))}function Ss(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ks(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ms(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function As(t){return t=t.text,null!=t&&(t+=""),t}function Ts(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Cs=lo(),Is=1,Os={},Ps=lo(),Ds=lo(),Ls=["emphasis","blur","select"],Es=["normal","emphasis","blur","select"],Rs="highlight",Ns="downplay",Bs="select",js="unselect",Fs="toggleSelect";function zs(t){return null!=t&&"none"!==t}function Hs(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Vs(t){Hs(t,"emphasis",2)}function Us(t){2===t.hoverState&&Hs(t,"normal",0)}function $s(t){Hs(t,"blur",1)}function Ws(t){1===t.hoverState&&Hs(t,"normal",0)}function Gs(t){t.selected=!0}function qs(t){t.selected=!1}function Ys(t,e,n){e(t,n)}function Xs(t,e,n){Ys(t,e,n),t.isGroup&&t.traverse((function(t){Ys(t,e,n)}))}function Zs(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function Ks(t,e){var n,r,i,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,r=s,e=(e=e)&&0<=P(e,"select"),a=!1,n instanceof qa&&(i=Ps(n),o=e&&i.selectFill||i.normalFill,e=e&&i.selectStroke||i.normalStroke,zs(o)||zs(e))&&("inherit"===(i=(r=r||{}).style||{}).fill?(a=!0,r=C({},r),(i=C({},i)).fill=o):!zs(i.fill)&&zs(o)?(a=!0,r=C({},r),(i=C({},i)).fill=rr(o)):!zs(i.stroke)&&zs(e)&&(a||(r=C({},r),i=C({},i)),i.stroke=rr(e)),r.style=i),r&&null==r.z2&&(a||(r=C({},r)),o=n.z2EmphasisLift,r.z2=n.z2+(null!=o?o:10)),r;if("blur"===t)return function(t,e,n){var r=0<=P(t.currentStates,e),i=t.style.opacity;return t=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{},null==e.opacity&&(n=C({},n),e=C({opacity:r?i:.1*t.opacity},e),n.style=e),n}(this,t,s);if("select"===t)return e=this,(i=s)&&null==i.z2&&(i=C({},i),a=e.z2SelectLift,i.z2=e.z2+(null!=a?a:9)),i}return s}function Js(t){t.stateProxy=Ks;var e=t.getTextContent();t=t.getTextGuideLine();e&&(e.stateProxy=Ks),t&&(t.stateProxy=Ks)}function Qs(t,e){al(t,e)||t.__highByOuter||Xs(t,Vs)}function tl(t,e){al(t,e)||t.__highByOuter||Xs(t,Us)}function el(t,e){t.__highByOuter|=1<<(e||0),Xs(t,Vs)}function nl(t,e){(t.__highByOuter&=~(1<<(e||0)))||Xs(t,Us)}function rl(t){Xs(t,Ws)}function il(t){Xs(t,Gs)}function ol(t){Xs(t,qs)}function al(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function sl(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Ds(i),a=(e="series"===e,e?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i));e||r.push(a),o.isBlured&&(a.group.traverse((function(t){Ws(t)})),e)&&n.push(i),o.isBlured=!1})),R(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function ll(t,e,n,r){var i,o,a,s=r.getModel();function l(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&rl(r)}}n=n||"coordinateSystem",null!=t&&e&&"none"!==e&&(i=s.getSeriesByIndex(t),(o=i.coordinateSystem)&&o.master&&(o=o.master),a=[],s.eachSeries((function(t){var s=i===t,u=t.coordinateSystem;u=(u=u&&u.master?u.master:u)&&o?u===o:s;if(!("series"===n&&!s||"coordinateSystem"===n&&!u||"series"===e&&s)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&s&&"self"===e||$s(t)})),E(e))l(t.getData(),e);else if(q(e))for(var c=F(e),h=0;h<c.length;h++)l(t.getData(c[h]),e[c[h]]);a.push(t),Ds(t).isBlured=!0}})),s.eachComponent((function(t,e){"series"!==t&&(t=r.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(a,!0,s)})))}function ul(t,e,n){var r;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Ds(t).isBlured=!0,r=n.getViewOfComponentModel(t))&&r.focusBlurEnabled&&r.group.traverse((function(t){$s(t)}))}function cl(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;if(t=r.getModel().getComponent(t,e),!t)return i;if(e=r.getViewOfComponentModel(t),!e||!e.findHighDownDispatchers)return i;for(var o,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===Cs(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function hl(t){R(t.getAllData(),(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){(t.isSelected(n,r)?il:ol)(e)}))}))}function pl(t,e,n){vl(t,!0),Xs(t,Js),t=Cs(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function fl(t,e,n,r){r?vl(t,!1):pl(t,e,n)}var dl=["emphasis","blur","select"],gl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function yl(t,e,n,r){n=n||"itemStyle";for(var i=0;i<dl.length;i++){var o=dl[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[gl[n]]()}}function vl(t,e){e=!1===e;var n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function ml(t){return!(!t||!t.__highDownDispatcher)}function _l(t){return t=t.type,t===Bs||t===js||t===Fs}function xl(t){return t=t.type,t===Rs||t===Ns}var bl=Ia.CMD,wl=[[],[],[]],Sl=Math.sqrt,kl=Math.atan2,Ml=Math.sqrt,Al=Math.sin,Tl=Math.cos,Cl=Math.PI;function Il(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ol(t,e){return(t[0]*e[0]+t[1]*e[1])/(Il(t)*Il(e))}function Pl(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ol(t,e))}function Dl(t,e,n,r,i,o,a,s,l,u,c){l*=Cl/180;var h=Tl(l)*(t-n)/2+Al(l)*(e-r)/2,p=-1*Al(l)*(t-n)/2+Tl(l)*(e-r)/2,f=h*h/(a*a)+p*p/(s*s);1<f&&(a*=Ml(f),s*=Ml(f)),f=(i===o?-1:1)*Ml((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,i=f*a*p/s,f=f*-s*h/a,t=(t+n)/2+Tl(l)*i-Al(l)*f,n=(e+r)/2+Al(l)*i+Tl(l)*f,e=Pl([1,0],[(h-i)/a,(p-f)/s]),r=[(h-i)/a,(p-f)/s],h=[(-1*h-i)/a,(-1*p-f)/s],i=Pl(r,h);Ol(r,h)<=-1&&(i=Cl),(i=1<=Ol(r,h)?0:i)<0&&(p=Math.round(i/Cl*1e6)/1e6,i=2*Cl+p%2*Cl),c.addData(u,t,n,a,s,e,i,l,o)}var Ll=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,El=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;n(Bl,Rl=qa),Bl.prototype.applyTransform=function(t){};var Rl,Nl=Bl;function Bl(){return null!==Rl&&Rl.apply(this,arguments)||this}function jl(t){return null!=t.setData}function Fl(t,e){var n=function(t){var e=new Ia;if(t){var n,r=0,i=0,o=r,a=i,s=Ia.CMD,l=t.match(Ll);if(l){for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,f=c.match(El)||[],d=f.length,g=0;g<d;g++)f[g]=parseFloat(f[g]);for(var y=0;y<d;){var v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,k=r,M=i,A=void 0,T=void 0;switch(h){case"l":r+=f[y++],i+=f[y++],p=s.L,e.addData(p,r,i);break;case"L":r=f[y++],i=f[y++],p=s.L,e.addData(p,r,i);break;case"m":r+=f[y++],i+=f[y++],p=s.M,e.addData(p,r,i),o=r,a=i,h="l";break;case"M":r=f[y++],i=f[y++],p=s.M,e.addData(p,r,i),o=r,a=i,h="L";break;case"h":r+=f[y++],p=s.L,e.addData(p,r,i);break;case"H":r=f[y++],p=s.L,e.addData(p,r,i);break;case"v":i+=f[y++],p=s.L,e.addData(p,r,i);break;case"V":i=f[y++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),r=f[y-2],i=f[y-1];break;case"c":p=s.C,e.addData(p,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i),r+=f[y-2],i+=f[y-1];break;case"S":v=r,m=i,A=e.len(),T=e.data,n===s.C&&(v+=r-T[A-4],m+=i-T[A-3]),p=s.C,k=f[y++],M=f[y++],r=f[y++],i=f[y++],e.addData(p,v,m,k,M,r,i);break;case"s":v=r,m=i,A=e.len(),T=e.data,n===s.C&&(v+=r-T[A-4],m+=i-T[A-3]),p=s.C,k=r+f[y++],M=i+f[y++],r+=f[y++],i+=f[y++],e.addData(p,v,m,k,M,r,i);break;case"Q":k=f[y++],M=f[y++],r=f[y++],i=f[y++],p=s.Q,e.addData(p,k,M,r,i);break;case"q":k=f[y++]+r,M=f[y++]+i,r+=f[y++],i+=f[y++],p=s.Q,e.addData(p,k,M,r,i);break;case"T":v=r,m=i,A=e.len(),T=e.data,n===s.Q&&(v+=r-T[A-4],m+=i-T[A-3]),r=f[y++],i=f[y++],p=s.Q,e.addData(p,v,m,r,i);break;case"t":v=r,m=i,A=e.len(),T=e.data,n===s.Q&&(v+=r-T[A-4],m+=i-T[A-3]),r+=f[y++],i+=f[y++],p=s.Q,e.addData(p,v,m,r,i);break;case"A":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],Dl(k=r,M=i,r=f[y++],i=f[y++],w,S,_,x,b,p=s.A,e);break;case"a":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],Dl(k=r,M=i,r+=f[y++],i+=f[y++],w,S,_,x,b,p=s.A,e)}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),r=o,i=a),n=p}e.toStatic()}}return e}(t);t=C({},e);return t.buildPath=function(t){var e;jl(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=n,r=t;if(r){for(var i,o,a,s,l=e.data,u=e.len(),c=bl.M,h=bl.C,p=bl.L,f=bl.R,d=bl.A,g=bl.Q,y=0,v=0;y<u;){switch(i=l[y++],v=y,o=0,i){case c:case p:o=1;break;case h:o=3;break;case g:o=2;break;case d:var m=r[4],_=r[5],x=Sl(r[0]*r[0]+r[1]*r[1]),b=Sl(r[2]*r[2]+r[3]*r[3]),w=kl(-r[1]/b,r[0]/x);l[y]*=x,l[y++]+=m,l[y]*=b,l[y++]+=_,l[y++]*=x,l[y++]*=b,l[y++]+=w,l[y++]+=w,v=y+=2;break;case f:s[0]=l[y++],s[1]=l[y++],Bt(s,s,r),l[v++]=s[0],l[v++]=s[1],s[0]+=l[y++],s[1]+=l[y++],Bt(s,s,r),l[v++]=s[0],l[v++]=s[1]}for(a=0;a<o;a++){var S=wl[a];S[0]=l[y++],S[1]=l[y++],Bt(S,S,r),l[v++]=S[0],l[v++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}var zl,Hl=function(){this.cx=0,this.cy=0,this.r=0},Vl=(n(Ul,zl=qa),Ul.prototype.getDefaultShape=function(){return new Hl},Ul.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},Ul);function Ul(t){return zl.call(this,t)||this}Vl.prototype.type="circle";var $l,Wl=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Gl=(n(ql,$l=qa),ql.prototype.getDefaultShape=function(){return new Wl},ql.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=e.rx,o=(e=e.ry,.5522848*i),a=.5522848*e;t.moveTo(n-i,r),t.bezierCurveTo(n-i,r-a,n-o,r-e,n,r-e),t.bezierCurveTo(n+o,r-e,n+i,r-a,n+i,r),t.bezierCurveTo(n+i,r+a,n+o,r+e,n,r+e),t.bezierCurveTo(n-o,r+e,n-i,r+a,n-i,r),t.closePath()},ql);function ql(t){return $l.call(this,t)||this}Gl.prototype.type="ellipse";var Yl=Math.PI,Xl=2*Yl,Zl=Math.sin,Kl=Math.cos,Jl=Math.acos,Ql=Math.atan2,tu=Math.abs,eu=Math.sqrt,nu=Math.max,ru=Math.min,iu=1e-4;function ou(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a=(a?o:-o)/eu(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=r+a,r=(s+e)/2,(t+n)/2),c=e-s,h=n-t,p=c*c+h*h,f=(o=i-o,s=s*n-e*t,n=(h<0?-1:1)*eu(nu(0,o*o*p-s*s)),e=(s*h-c*n)/p,t=(-s*c-h*n)/p,(s*h+c*n)/p);s=(-s*c+h*n)/p,c=e-r,h=t-u,n=f-r,p=s-u;return n*n+p*p<c*c+h*h&&(e=f,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(i/o-1),y1:t*(i/o-1)}}var au,su=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},lu=(n(uu,au=qa),uu.prototype.getDefaultShape=function(){return new su},uu.prototype.buildPath=function(t,e){(function(t,e){var n,r,i,o,a,s,l,u,c,h,p,f,d,g,y,v,m,_,x,b,w,S,k,M,A,T,C,I,O,P,D=nu(e.r,0),L=nu(e.r0||0,0),E=0<D;(E||0<L)&&(E||(D=L,L=0),D<L&&(E=D,D=L,L=E),E=e.startAngle,n=e.endAngle,isNaN(E)||isNaN(n)||(r=e.cx,i=e.cy,o=!!e.clockwise,v=tu(n-E),iu<(a=Xl<v&&v%Xl)&&(v=a),iu<D?Xl-iu<v?(t.moveTo(r+D*Kl(E),i+D*Zl(E)),t.arc(r,i,D,E,n,!o),iu<L&&(t.moveTo(r+L*Kl(n),i+L*Zl(n)),t.arc(r,i,L,n,E,o))):(S=w=b=x=_=m=h=c=T=A=M=k=u=l=s=a=void 0,p=D*Kl(E),f=D*Zl(E),d=L*Kl(n),g=L*Zl(n),(y=iu<v)&&((e=e.cornerRadius)&&(a=(e=function(t){if(V(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=tu(D-L)/2,k=ru(e,l),M=ru(e,u),A=ru(e,a),T=ru(e,s),m=c=nu(k,M),_=h=nu(A,T),iu<c||iu<h)&&(x=D*Kl(n),b=D*Zl(n),w=L*Kl(E),S=L*Zl(E),v<Yl)&&(e=function(t,e,n,r,i,o,a,s){var l=(s-=o)*(n-=t)-(a-=i)*(r-=e);if(!(l*l<iu))return[t+(l=(a*(e-o)-s*(t-i))/l)*n,e+l*r]}(p,f,w,S,x,b,d,g))&&(k=p-e[0],M=f-e[1],A=x-e[0],T=b-e[1],v=1/Zl(Jl((k*A+M*T)/(eu(k*k+M*M)*eu(A*A+T*T)))/2),k=eu(e[0]*e[0]+e[1]*e[1]),m=ru(c,(D-k)/(1+v)),_=ru(h,(L-k)/(v-1))),y?iu<m?(C=ru(l,m),I=ru(u,m),O=ou(w,S,p,f,D,C,o),P=ou(x,b,d,g,D,I,o),t.moveTo(r+O.cx+O.x0,i+O.cy+O.y0),m<c&&C===I?t.arc(r+O.cx,i+O.cy,m,Ql(O.y0,O.x0),Ql(P.y0,P.x0),!o):(0<C&&t.arc(r+O.cx,i+O.cy,C,Ql(O.y0,O.x0),Ql(O.y1,O.x1),!o),t.arc(r,i,D,Ql(O.cy+O.y1,O.cx+O.x1),Ql(P.cy+P.y1,P.cx+P.x1),!o),0<I&&t.arc(r+P.cx,i+P.cy,I,Ql(P.y1,P.x1),Ql(P.y0,P.x0),!o))):(t.moveTo(r+p,i+f),t.arc(r,i,D,E,n,!o)):t.moveTo(r+p,i+f),iu<L&&y?iu<_?(C=ru(a,_),O=ou(d,g,x,b,L,-(I=ru(s,_)),o),P=ou(p,f,w,S,L,-C,o),t.lineTo(r+O.cx+O.x0,i+O.cy+O.y0),_<h&&C===I?t.arc(r+O.cx,i+O.cy,_,Ql(O.y0,O.x0),Ql(P.y0,P.x0),!o):(0<I&&t.arc(r+O.cx,i+O.cy,I,Ql(O.y0,O.x0),Ql(O.y1,O.x1),!o),t.arc(r,i,L,Ql(O.cy+O.y1,O.cx+O.x1),Ql(P.cy+P.y1,P.cx+P.x1),o),0<C&&t.arc(r+P.cx,i+P.cy,C,Ql(P.y1,P.x1),Ql(P.y0,P.x0),!o))):(t.lineTo(r+d,i+g),t.arc(r,i,L,n,E,o)):t.lineTo(r+d,i+g)):t.moveTo(r,i),t.closePath()))})(t,e)},uu.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},uu);function uu(t){return au.call(this,t)||this}lu.prototype.type="sector";var cu,hu=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},pu=(n(fu,cu=qa),fu.prototype.getDefaultShape=function(){return new hu},fu.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},fu);function fu(t){return cu.call(this,t)||this}function du(t,e,n){var r=e.smooth,i=e.points;if(i&&2<=i.length){if(r)for(var o=function(t,e,n,r){var i,o,a=[],s=[],l=[],u=[];if(r){for(var c=[1/0,1/0],h=[-1/0,-1/0],p=0,f=t.length;p<f;p++)jt(c,c,t[p]),Ft(h,h,t[p]);jt(c,c,r[0]),Ft(h,h,r[1])}for(p=0,f=t.length;p<f;p++){var d=t[p];if(n)i=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){a.push(Mt(t[p]));continue}i=t[p-1],o=t[p+1]}Tt(s,o,i),Ot(s,s,e);var g=Dt(d,i),y=Dt(d,o),v=g+y;v=(0!==v&&(g/=v,y/=v),Ot(l,s,-g),Ot(u,s,y),At([],d,l)),g=At([],d,u);r&&(Ft(v,v,c),jt(v,v,h),Ft(g,g,c),jt(g,g,h)),a.push(v),a.push(g)}return n&&a.push(a.shift()),a}(i,r,n,e.smoothConstraint),a=(t.moveTo(i[0][0],i[0][1]),i.length),s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}pu.prototype.type="ring";var gu,yu=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},vu=(n(mu,gu=qa),mu.prototype.getDefaultShape=function(){return new yu},mu.prototype.buildPath=function(t,e){du(t,e,!0)},mu);function mu(t){return gu.call(this,t)||this}vu.prototype.type="polygon";var _u,xu=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},bu=(n(wu,_u=qa),wu.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},wu.prototype.getDefaultShape=function(){return new xu},wu.prototype.buildPath=function(t,e){du(t,e,!1)},wu);function wu(t){return _u.call(this,t)||this}bu.prototype.type="polyline";var Su,ku={},Mu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Au=(n(Tu,Su=qa),Tu.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Tu.prototype.getDefaultShape=function(){return new Mu},Tu.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=os(ku,e,this.style)).x1,r=o.y1,i=o.x2,o):(n=e.x1,r=e.y1,i=e.x2,e)).y2;var n,r,i,o;e=e.percent;0!==e&&(t.moveTo(n,r),e<1&&(i=n*(1-e)+i*e,o=r*(1-e)+o*e),t.lineTo(i,o))},Tu.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Tu);function Tu(t){return Su.call(this,t)||this}Au.prototype.type="line";var Cu=[],Iu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Ou(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?yn:gn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?yn:gn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?wn:bn)(t.x1,t.cpx1,t.x2,e),(n?wn:bn)(t.y1,t.cpy1,t.y2,e)]}n(Lu,Pu=qa),Lu.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Lu.prototype.getDefaultShape=function(){return new Iu},Lu.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2;e=e.percent;0!==e&&(t.moveTo(n,r),null==l||null==u?(e<1&&(kn(n,a,i,e,Cu),a=Cu[1],i=Cu[2],kn(r,s,o,e,Cu),s=Cu[1],o=Cu[2]),t.quadraticCurveTo(a,s,i,o)):(e<1&&(_n(n,a,l,i,e,Cu),a=Cu[1],l=Cu[2],i=Cu[3],_n(r,s,u,o,e,Cu),s=Cu[1],u=Cu[2],o=Cu[3]),t.bezierCurveTo(a,s,l,u,i,o)))},Lu.prototype.pointAt=function(t){return Ou(this.shape,t,!1)},Lu.prototype.tangentAt=function(t){return t=Ou(this.shape,t,!0),Pt(t,t)};var Pu,Du=Lu;function Lu(t){return Pu.call(this,t)||this}Du.prototype.type="bezier-curve";var Eu,Ru=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Nu=(n(Bu,Eu=qa),Bu.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Bu.prototype.getDefaultShape=function(){return new Ru},Bu.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=(e=e.clockwise,Math.cos(o)),l=Math.sin(o);t.moveTo(s*i+n,l*i+r),t.arc(n,r,i,o,a,!e)},Bu);function Bu(t){return Eu.call(this,t)||this}Nu.prototype.type="arc",n(zu,ju=qa),zu.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},zu.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},zu.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},zu.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},zu.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),qa.prototype.getBoundingRect.call(this)};var ju,Fu=zu;function zu(){var t=null!==ju&&ju.apply(this,arguments)||this;return t.type="compound",t}Vu.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Hu=Vu;function Vu(t){this.colorStops=t||[]}n(Wu,Uu=Hu);var Uu,$u=Wu;function Wu(t,e,n,r,i,o){return i=Uu.call(this,i)||this,i.x=null==t?0:t,i.y=null==e?0:e,i.x2=null==n?1:n,i.y2=null==r?0:r,i.type="linear",i.global=o||!1,i}n(qu,Gu=Hu);var Gu;Hu=qu;function qu(t,e,n,r,i){return r=Gu.call(this,r)||this,r.x=null==t?.5:t,r.y=null==e?.5:e,r.r=null==n?.5:n,r.type="radial",r.global=i||!1,r}var Yu=[0,0],Xu=[0,0],Zu=new ke,Ku=new ke,Ju=(Qu.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width;t=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,t),n[3].set(i,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(ke.sub(r[0],n[1],n[0]),ke.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize(),s=0;s<2;s++)this._origin[s]=r[s].dot(n[0])},Qu.prototype.intersect=function(t,e){var n=!0,r=!e;return Zu.set(1/0,1/0),Ku.set(0,0),!this._intersectCheckOneSide(this,t,Zu,Ku,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,Zu,Ku,r,-1)&&(n=!1,r)||r||ke.copy(e,n?Zu:Ku),n},Qu.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Yu),this._getProjMinMaxOnAxis(s,e._corners,Xu),Yu[1]<Xu[0]||Xu[1]<Yu[0]){if(a=!1,i)return a;var u=Math.abs(Xu[0]-Yu[1]),c=Math.abs(Yu[0]-Xu[1]);Math.min(u,c)>r.len()&&(u<c?ke.scale(r,l,-u*o):ke.scale(r,l,c*o))}else n&&(u=Math.abs(Xu[0]-Yu[1]),c=Math.abs(Yu[0]-Xu[1]),Math.min(u,c)<n.len())&&(u<c?ke.scale(n,l,u*o):ke.scale(n,l,-c*o))}return a},Qu.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},Qu);function Qu(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ke;for(n=0;n<2;n++)this._axes[n]=new ke;t&&this.fromBoundingRect(t,e)}var tc,ec=[];n(nc,tc=Qn),nc.prototype.traverse=function(t,e){t.call(e,this)},nc.prototype.useStyle=function(){this.style={}},nc.prototype.getCursor=function(){return this._cursor},nc.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},nc.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},nc.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},nc.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},nc.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},nc.prototype.getDisplayables=function(){return this._displayables},nc.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},nc.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},nc.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;var e;for(t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},nc.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Ee(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(ec)),t.union(r)}this._rect=t}return this._rect},nc.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(t,e))return!0;return!1},Qn=nc;function nc(){var t=null!==tc&&tc.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var rc=lo();function ic(t,e,n,r,i,o,a){var s,l,u,c,h,p,f=!1,d=(U(i)?(a=o,o=i,i=null):q(i)&&(o=i.cb,a=i.during,f=i.isFrom,l=i.removeOpt,i=i.dataIndex),"leave"===t),g=(d||e.stopAnimation("leave"),p=t,s=i,l=d?l||{}:null,r=(g=r)&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(h=c=i=void 0,h=l?(i=nt(l.duration,200),c=nt(l.easing,"cubicOut"),0):(i=g.getShallow(p?"animationDurationUpdate":"animationDuration"),c=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),U(h=u&&(null!=u.duration&&(i=u.duration),null!=u.easing&&(c=u.easing),null!=u.delay)?u.delay:h)&&(h=h(s,r)),{duration:(i=U(i)?i(s):i)||0,delay:h,easing:c}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!d,scope:t,during:a},f?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),f||e.attr(n),a&&a(1),o&&o())}function oc(t,e,n,r,i,o){ic("update",t,e,n,r,i,o)}function ac(t,e,n,r,i,o){ic("enter",t,e,n,r,i,o)}function sc(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function lc(t,e,n,r,i,o){sc(t)||ic("leave",t,e,n,r,i,o)}function uc(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),lc(t,{style:{opacity:0}},e,n,r)}function cc(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||uc(t,e,n,r)})):uc(t,e,n,r)}function hc(t){rc(t).oldStyle=t.style}var pc=Math.max,fc=Math.min,dc={};function gc(t){return qa.extend(t)}function yc(t,e){return function(t,e){var r,i=Fl(t,e);function o(t){return t=r.call(this,t)||this,t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return n(o,r=Nl),o}(t,e)}function vc(t,e){dc[t]=e}function mc(t){if(dc.hasOwnProperty(t))return dc[t]}function _c(t,e,n,r){return t=new Nl(Fl(t,e)),n&&("center"===r&&(n=bc(n,t.getBoundingRect())),Sc(t,n)),t}function xc(t,e,n){var r=new ns({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},r.setStyle(bc(e,t)))}});return r}function bc(t,e){e=e.width/e.height;var n=t.height*e;e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function wc(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}return(e=new qa(e)).createPathProxy(),e.buildPath=function(t){var e;jl(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function Sc(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function kc(t,e){return os(t,t,{lineWidth:e}),t}var Mc=ss;function Ac(t,e){for(var n=ye([]);t&&t!==e;)me(n,t.getLocalTransform(),n),t=t.parent;return n}function Tc(t,e,n){return e&&!E(e)&&(e=Xr.getLocalTransform(e)),Bt([],t,e=n?we([],e):e)}function Cc(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]);r=Tc(["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0],e,n);return Math.abs(r[0])>Math.abs(r[1])?0<r[0]?"right":"left":0<r[1]?"bottom":"top"}function Ic(t){return!t.isGroup}function Oc(t,e,n){var r,i;function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=C({},t.shape)),e}t&&e&&(i={},t.traverse((function(t){Ic(t)&&t.anid&&(i[t.anid]=t)})),r=i,e.traverse((function(t){var e,i;Ic(t)&&t.anid&&(e=r[t.anid])&&(i=o(t),t.attr(o(e)),oc(t,i,n,Cs(t).dataIndex))})))}function Pc(t,e){return N(t,(function(t){var n=t[0];n=pc(n,e.x),n=fc(n,e.x+e.width),t=t[1],t=pc(t,e.y);return[n,fc(t,e.y+e.height)]}))}function Dc(t,e){var n=pc(t.x,e.x),r=fc(t.x+t.width,e.x+e.width),i=pc(t.y,e.y);t=fc(t.y+t.height,e.y+e.height);if(n<=r&&i<=t)return{x:n,y:i,width:r-n,height:t-i}}function Lc(t,e,n){e=C({rectHover:!0},e);var r=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),I(r,n),new ns(e)):_c(t.replace("path://",""),e,n,"center")}function Ec(t,e,n,r,i,o,a,s){n-=t,r-=e,a-=i,s-=o;var l,u=a*r-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(i=((l=t-i)*r-n*(t=e-o))/u)<0||1<i||(r=(l*s-a*t)/u)<0||1<r)}function Rc(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=(e=$(e)?{formatter:e}:e,n.mainType),o=(n=n.componentIndex,{componentType:i,name:r,$vars:["name"]}),a=(o[i+"Index"]=n,t.formatterParamsExtra);a&&R(F(a),(function(t){xt(o,t)||(o[t]=a[t],o.$vars.push(t))})),t=Cs(t.el);t.componentMainType=i,t.componentIndex=n,t.tooltipConfig={name:r,option:I({content:r,formatterParams:o},e)}}function Nc(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function Bc(t,e){if(t)if(V(t))for(var n=0;n<t.length;n++)Nc(t[n],e);else Nc(t,e)}vc("circle",Vl),vc("ellipse",Gl),vc("sector",lu),vc("ring",pu),vc("polygon",vu),vc("polyline",bu),vc("rect",hs),vc("line",Au),vc("bezierCurve",Du),vc("arc",Nu);var jc=Object.freeze({__proto__:null,Arc:Nu,BezierCurve:Du,BoundingRect:Ee,Circle:Vl,CompoundPath:Fu,Ellipse:Gl,Group:_i,Image:ns,IncrementalDisplayable:Qn,Line:Au,LinearGradient:$u,OrientedBoundingRect:Ju,Path:qa,Point:ke,Polygon:vu,Polyline:bu,RadialGradient:Hu,Rect:hs,Ring:pu,Sector:lu,Text:ys,applyTransform:Tc,clipPointsByRect:Pc,clipRectByRect:Dc,createIcon:Lc,extendPath:yc,extendShape:gc,getShapeClass:mc,getTransform:Ac,groupTransition:Oc,initProps:ac,isElementRemoved:sc,lineLineIntersect:Ec,linePolygonIntersect:function(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Ec(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:xc,makePath:_c,mergePath:wc,registerShape:vc,removeElement:lc,removeElementWithFadeOut:cc,resizePath:Sc,setTooltipConfig:Rc,subPixelOptimize:Mc,subPixelOptimizeLine:kc,subPixelOptimizeRect:function(t){return as(t.shape,t.shape,t.style),t},transformDirection:Cc,traverseElements:Bc,updateProps:oc}),Fc={};function zc(t,e){for(var n=0;n<Ls.length;n++){var r=Ls[n],i=e[r];r=t.ensureState(r);r.style=r.style||{},r.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Hc(t,e,n){for(var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:r=null==(r=i?i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):r)?U(t.defaultText)?t.defaultText(o,t,n):t.defaultText:r},u=0;u<Ls.length;u++){var c=Ls[u],h=e[c];l[c]=nt(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function Vc(t,e,n,r){n=n||Fc;for(var i=t instanceof ys,o=!1,a=0;a<Es.length;a++)if((p=e[Es[a]])&&p.getShallow("show")){o=!0;break}var s=i?t:t.getTextContent();if(o){i||(s||(s=new ys,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Hc(n,e),u=e.normal,c=!!u.getShallow("show"),h=$c(u,r&&r.normal,n,!1,!i);for(h.text=l.normal,i||t.setTextConfig(Wc(u,n,!1)),a=0;a<Ls.length;a++){var p,f,d,g=Ls[a];(p=e[g])&&(f=s.ensureState(g),(d=!!nt(p.getShallow("show"),c))!=c&&(f.ignore=!d),f.style=$c(p,r&&r[g],n,!0,!i),f.style.text=l[g],i||(t.ensureState(g).textConfig=Wc(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(Zc(s).setLabelText=function(t){t=Hc(n,e,t),zc(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Uc(t,e){for(var n={normal:t.getModel(e=e||"label")},r=0;r<Ls.length;r++){var i=Ls[r];n[i]=t.getModel([i,e])}return n}function $c(t,e,n,r,i){var o,a={},s=a,l=t,u=n,c=r,h=i;u=u||Fc;t=l.ecModel;var p,f=t&&t.option.textStyle,d=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Fc).rich;if(n){e=e||{};for(var r=F(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}(l);if(d)for(var g in p={},d)d.hasOwnProperty(g)&&(o=l.getModel(["rich",g]),Xc(p[g]={},o,f,u,c,h,!1,!0));return p&&(s.rich=p),(t=l.get("overflow"))&&(s.overflow=t),null!=(t=l.get("minMargin"))&&(s.margin=t),Xc(s,l,f,u,c,h,!0,!1),e&&C(a,e),a}function Wc(t,e,n){e=e||{};var r={},i=t.getShallow("rotate"),o=nt(t.getShallow("distance"),n?null:5),a=t.getShallow("offset");n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(r.position=n),null!=a&&(r.offset=a),null!=i&&(i*=Math.PI/180,r.rotation=i),null!=o&&(r.distance=o),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var Gc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],qc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Yc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Xc(t,e,n,r,i,o,a,s){n=!i&&n||Fc;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=nt(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c),u=nt(e.getShallow("textBorderWidth"),n.textBorderWidth),null!=u&&(t.lineWidth=u),c=nt(e.getShallow("textBorderType"),n.textBorderType),null!=c&&(t.lineDash=c),u=nt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=u&&(t.lineDashOffset=u),null!=(h=i||null!=h||s?h:r&&r.defaultOpacity)&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var p=0;p<Gc.length;p++){var f=Gc[p];null!=(d=nt(e.getShallow(f),n[f]))&&(t[f]=d)}for(p=0;p<qc.length;p++)f=qc[p],null!=(d=e.getShallow(f))&&(t[f]=d);if(null==t.verticalAlign&&null!=(c=e.getShallow("baseline"))&&(t.verticalAlign=c),!a||!r.disableBox){for(p=0;p<Yc.length;p++){var d;f=Yc[p];null!=(d=e.getShallow(f))&&(t[f]=d)}u=e.getShallow("borderType"),null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}var Zc=lo();var Kc=["textStyle","color"],Jc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Qc=new ys;th.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Kc):null)},th.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),st([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},th.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Jc.length;n++)e[Jc[n]]=this.getShallow(Jc[n]);return Qc.useStyle(e),Qc.update(),Qc.getBoundingRect()},Mc=th;function th(){}var eh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],nh=To(eh),rh=(ih.prototype.getLineStyle=function(t){return nh(this,t)},ih);function ih(){}var oh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ah=To(oh),sh=(lh.prototype.getItemStyle=function(t,e){return ah(this,t,e)},lh);function lh(){}hh.prototype.init=function(t,e,n){},hh.prototype.mergeOption=function(t,e){T(this.option,t,!0)},hh.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},hh.prototype.getShallow=function(t,e){var n=this.option;n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},hh.prototype.getModel=function(t,e){var n=null!=t;t=n?this.parsePath(t):null;return new hh(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},hh.prototype.isEmpty=function(){return null==this.option},hh.prototype.restoreData=function(){},hh.prototype.clone=function(){return new this.constructor(A(this.option))},hh.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},hh.prototype.resolveParentPath=function(t){return t},hh.prototype.isAnimationEnabled=function(){if(!o.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},hh.prototype._doGet=function(t,e){var n=this.option;if(t){for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==s(n)?n[t[r]]:null));r++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var uh,ch=hh;function hh(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}bo(ch),Sh=ch,uh=["__\0is_clz",So++].join("_"),Sh.prototype[uh]=!0,Sh.isInstance=function(t){return!(!t||!t[uh])},L(ch,rh),L(ch,sh),L(ch,Io),L(ch,Mc);var ph=Math.round(10*Math.random());function fh(t){return[t||"",ph++].join("_")}function dh(t,e){return T(T({},t,!0),e,!0)}var gh="EN",yh={},vh={},mh=o.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||gh).toUpperCase().indexOf("ZH")?"ZH":gh;function _h(t,e){t=t.toUpperCase(),vh[t]=new ch(e),yh[t]=e}_h("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:". "}}}}),_h("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 xh=36e5,bh=24*xh,wh=(So=365*bh,{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}"}),Sh="{yyyy}-{MM}-{dd}",kh={year:"{yyyy}",month:"{yyyy}-{MM}",day:Sh,hour:Sh+" "+wh.hour,minute:Sh+" "+wh.minute,second:Sh+" "+wh.second,millisecond:wh.none},Mh=["year","month","day","hour","minute","second","millisecond"],Ah=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Th(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ch(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Ih(t,e,n,r){t=Hi(t);var i=t[Dh(n)](),o=t[Lh(n)]()+1,a=Math.floor((o-1)/3)+1,s=t[Eh(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[Rh(n)](),c=(u-1)%12+1,h=t[Nh(n)](),p=t[Bh(n)](),f=(t=t[jh(n)](),n=(r instanceof ch?r:vh[r||mh]||vh[gh]).getModel("time"),r=n.get("month"),n.get("monthAbbr")),d=n.get("dayOfWeek");n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Th(i%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,r[o-1]).replace(/{MMM}/g,f[o-1]).replace(/{MM}/g,Th(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Th(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,d[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Th(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Th(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Th(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Th(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Th(t,3)).replace(/{S}/g,t+"")}function Oh(t,e){t=Hi(t);var n=t[Lh(e)]()+1,r=t[Eh(e)](),i=t[Rh(e)](),o=t[Nh(e)](),a=t[Bh(e)]();t=0===t[jh(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===i,i=o&&1===r;return i&&1===n?"year":i?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Ph(t,e,n){var r=G(t)?Hi(t):t;switch(e=e||Oh(t,n)){case"year":return r[Dh(n)]();case"half-year":return 6<=r[Lh(n)]()?1:0;case"quarter":return Math.floor((r[Lh(n)]()+1)/4);case"month":return r[Lh(n)]();case"day":return r[Eh(n)]();case"half-day":return r[Rh(n)]()/24;case"hour":return r[Rh(n)]();case"minute":return r[Nh(n)]();case"second":return r[Bh(n)]();case"millisecond":return r[jh(n)]()}}function Dh(t){return t?"getUTCFullYear":"getFullYear"}function Lh(t){return t?"getUTCMonth":"getMonth"}function Eh(t){return t?"getUTCDate":"getDate"}function Rh(t){return t?"getUTCHours":"getHours"}function Nh(t){return t?"getUTCMinutes":"getMinutes"}function Bh(t){return t?"getUTCSeconds":"getSeconds"}function jh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Fh(t){return t?"setUTCMonth":"setMonth"}function zh(t){return t?"setUTCDate":"setDate"}function Hh(t){return t?"setUTCHours":"setHours"}function Vh(t){return t?"setUTCMinutes":"setMinutes"}function Uh(t){return t?"setUTCSeconds":"setSeconds"}function $h(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Wh(t){var e;return Gi(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):$(t)?t:"-"}function Gh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}var qh=ot;function Yh(t,e,n){function r(t){return t&&st(t)?t:"-"}function i(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){o=o?Hi(t):t;if(!isNaN(+o))return Ih(o,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?W(t)?r(t):G(t)&&i(t)?t+"":"-":i(o=Wi(t))?Wh(o):W(t)?r(t):"boolean"==typeof t?t+"":"-"}function Xh(t,e){return"{"+t+(null==e?"":e)+"}"}var Zh=["a","b","c","d","e","f","g"];function Kh(t,e,n){var r=(e=V(e)?e:[e]).length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Zh[o];t=t.replace(Xh(a),Xh(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Xh(Zh[l],s),n?ee(u):u)}return t}function Jh(t,e){t=$(t)?{color:t,extraCssText:e}:t||{};var n=t.color,r=t.type,i=(e=t.extraCssText,t.renderMode||"html");return n?"html"===i?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ee(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ee(n)+";"+(e||"")+'"></span>':{renderMode:i,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Qh(t,e){return e=e||"transparent",$(t)?t:q(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function tp(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var ep=R,np=["left","right","top","bottom","width","height"],rp=[["width","left","right"],["height","top","bottom"]];function ip(t,e,n,r,i){var o=0,a=0,s=(null==r&&(r=1/0),null==i&&(i=1/0),0);e.eachChild((function(l,u){var c,h,p,f=l.getBoundingRect();u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(h=f.width+(u?-u.x+f.x:0),r<(c=o+h)||l.newline?(o=0,c=h,a+=s+n,f.height):Math.max(s,f.height)):(h=f.height+(u?-u.y+f.y:0),i<(p=a+h)||l.newline?(o+=s+n,a=0,p=h,f.width):Math.max(s,f.width)),l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=p+n)}))}var op=ip;function ap(t,e,n){n=qh(n||0);var r=e.width,i=e.height,o=Pi(t.left,r),a=Pi(t.top,i),s=(e=Pi(t.right,r),Pi(t.bottom,i)),l=Pi(t.width,r),u=Pi(t.height,i),c=n[2]+n[0],h=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=r-e-h-o),isNaN(u)&&(u=i-s-c-a),null!=p&&(isNaN(l)&&isNaN(u)&&(r/i<p?l=.8*r:u=.8*i),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(o)&&(o=r-e-l-h),isNaN(a)&&(a=i-s-u-c),t.left||t.right){case"center":o=r/2-l/2-n[3];break;case"right":o=r-l-h}switch(t.top||t.bottom){case"middle":case"center":a=i/2-u/2-n[0];break;case"bottom":a=i-u-c}return o=o||0,a=a||0,isNaN(l)&&(l=r-h-o-(e||0)),isNaN(u)&&(u=i-c-a-(s||0)),p=new Ee(o+n[3],a+n[0],l,u),p.margin=n,p}function sp(t){return t=t.layoutMode||t.constructor.layoutMode,q(t)?t:t?{type:t}:null}function lp(t,e,n){var r=n&&n.ignoreSize,i=(n=(V(r)||(r=[r,r]),o(rp[0],0)),o(rp[1],1));function o(n,i){var o={},l=0,u={},c=0;if(ep(n,(function(e){u[e]=t[e]})),ep(n,(function(t){a(e,t)&&(o[t]=u[t]=e[t]),s(o,t)&&l++,s(u,t)&&c++})),r[i])s(e,n[1])?u[n[2]]=null:s(e,n[2])&&(u[n[1]]=null);else if(2!==c&&l){if(!(2<=l))for(var h=0;h<n.length;h++){var p=n[h];if(!a(o,p)&&a(t,p)){o[p]=t[p];break}}return o}return u}function a(t,e){return t.hasOwnProperty(e)}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){ep(t,(function(t){e[t]=n[t]}))}l(rp[0],t,n),l(rp[1],t,i)}function up(t){return e={},(n=t)&&e&&ep(np,(function(t){n.hasOwnProperty(t)&&(e[t]=n[t])})),e;var e,n}H(ip,"vertical"),H(ip,"horizontal");var cp,hp,pp,fp,dp=lo(),gp=(n(yp,cp=ch),yp.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},yp.prototype.mergeDefaultAndTheme=function(t,e){var n=sp(this),r=n?up(t):{};T(t,e.getTheme().get(this.mainType)),T(t,this.getDefaultOption()),n&&lp(t,r,n)},yp.prototype.mergeOption=function(t,e){T(this.option,t,!0);var n=sp(this);n&&lp(this.option,t,n)},yp.prototype.optionUpdated=function(t,e){},yp.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[_o])return t.defaultOption;var e=dp(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;0<=a;a--)o=T(o,n[a],!0);e.defaultOption=o}return e.defaultOption},yp.prototype.getReferringComponents=function(t,e){var n=t+"Id";return go(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},yp.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")}},yp.prototype.getZLevelKey=function(){return""},yp.prototype.setZLevel=function(t){this.option.zlevel=t},yp.protoInitialize=((rh=yp.prototype).type="component",rh.id="",rh.name="",rh.mainType="",rh.subType="",void(rh.componentIndex=0)),yp);function yp(t,e,n){return t=cp.call(this,t,e,n)||this,t.uid=fh("ec_cpt_model"),t}function vp(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}wo(gp,ch),Ao(gp),pp={},(hp=gp).registerSubTypeDefaulter=function(t,e){t=xo(t),pp[t.main]=e},hp.determineSubType=function(t,e){var n,r=e.type;return r||(n=xo(t).main,hp.hasSubTypes(t)&&pp[n]&&(r=pp[n](e))),r},fp=function(t){var e=[];return R(gp.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=N(e,(function(t){return xo(t).main})),"dataset"!==t&&P(e,"dataset")<=0&&e.unshift("dataset"),e},gp.topologicalTravel=function(t,e,n,r){if(t.length){o={},a=[],R(i=e,(function(t){var e,n,r=vp(o,t),s=r.originalDeps=fp(t);e=i,n=[],R(s,(function(t){0<=P(e,t)&&n.push(t)})),s=n;r.entryCount=s.length,0===r.entryCount&&a.push(t),R(s,(function(e){P(r.predecessor,e)<0&&r.predecessor.push(e);var n=vp(o,e);P(n.successor,e)<0&&n.successor.push(t)}))}));e={graph:o,noEntryList:a};var i,o,a,s=e.graph,l=e.noEntryList,u={};for(R(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],p=!!u[c];p&&(n.call(r,c,h.originalDeps.slice()),delete u[c]),R(h.successor,p?d:f)}R(u,(function(){throw new Error("")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function d(t){u[t]=!0,f(t)}};sh="","undefined"!=typeof navigator&&(sh=navigator.platform||""),Io="rgba(0, 0, 0, 0.2)";var mp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Io,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Io,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Io,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Io,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Io,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Io,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sh.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},_p=yt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),xp="original",bp="arrayRows",wp="objectRows",Sp="keyedColumns",kp="typedArray",Mp="unknown",Ap="column",Tp="row",Cp={Must:1,Might:2,Not:3},Ip=lo();function Op(t,e,n){var r,i,o,a,s,l={},u=Dp(e);return u&&t&&(r=[],i=[],e=e.ecModel,e=Ip(e).datasetMap,u=u.uid+"_"+n.seriesLayoutBy,R(t=t.slice(),(function(e,n){e=q(e)?e:t[n]={name:e},"ordinal"===e.type&&null==o&&(o=n,a=h(e)),l[e.name]=[]})),s=e.get(u)||e.set(u,{categoryWayDim:a,valueWayDim:0}),R(t,(function(t,e){var n,a=t.name;t=h(t);null==o?(n=s.valueWayDim,c(l[a],n,t),c(i,n,t),s.valueWayDim+=t):o===e?(c(l[a],0,t),c(r,0,t)):(n=s.categoryWayDim,c(l[a],n,t),c(i,n,t),s.categoryWayDim+=t)})),r.length&&(l.itemName=r),i.length)&&(l.seriesName=i),l;function c(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function h(t){return t=t.dimsDef,t?t.length:1}}function Pp(t,e,n){var r,i,o,a={};return Dp(t)&&(r=e.sourceFormat,i=e.dimensionsDefine,r!==wp&&r!==Sp||R(i,(function(t,e){"name"===(q(t)?t.name:t)&&(o=e)})),t=function(){for(var t={},a={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Ep(e.data,r,e.seriesLayoutBy,i,e.startIndex,l),h=(s.push(c),c===Cp.Not);if(h&&null==t.v&&l!==o&&(t.v=l),null!=t.n&&t.n!==t.v&&(h||s[t.n]!==Cp.Not)||(t.n=l),p(t)&&s[t.n]!==Cp.Not)return t;h||(c===Cp.Might&&null==a.v&&l!==o&&(a.v=l),null!=a.n&&a.n!==a.v)||(a.n=l)}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(a)?a:null}())&&(a.value=[t.v],t=null!=o?o:t.n,a.itemName=[t],a.seriesName=[t]),a}function Dp(t){if(!t.get("data",!0))return go(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},po).models[0]}function Lp(t,e){return Ep(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ep(t,e,n,r,i,o){var a,s,l;if(!X(t)){if(r&&(q(r=r[o])?(s=r.name,l=r.type):$(r)&&(s=r)),null!=l)return"ordinal"===l?Cp.Must:Cp.Not;if(e===bp){var u=t;if(n===Tp){for(var c=u[o],h=0;h<(c||[]).length&&h<5;h++)if(null!=(a=v(c[i+h])))return a}else for(h=0;h<u.length&&h<5;h++){var p=u[i+h];if(p&&null!=(a=v(p[o])))return a}}else if(e===wp){var f=t;if(!s)return Cp.Not;for(h=0;h<f.length&&h<5;h++)if((g=f[h])&&null!=(a=v(g[s])))return a}else if(e===Sp){if(!s)return Cp.Not;if(!(c=t[s])||X(c))return Cp.Not;for(h=0;h<c.length&&h<5;h++)if(null!=(a=v(c[h])))return a}else if(e===xp){var d=t;for(h=0;h<d.length&&h<5;h++){var g,y=eo(g=d[h]);if(!V(y))return Cp.Not;if(null!=(a=v(y[o])))return a}}}return Cp.Not;function v(t){var e=$(t);return null!=t&&isFinite(t)&&""!==t?e?Cp.Might:Cp.Not:e&&"-"!==t?Cp.Must:void 0}}var Rp,Np,Bp,jp=yt(),Fp=lo(),zp=(lo(),Hp.prototype.getColorFromPalette=function(t,e,n){var r=Ji(this.get("color",!0)),i=this.get("colorLayer",!0),o=this,a=Fp;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(i=(i=null!=n&&i?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(i,n):r)||r)&&i.length?(n=i[o],t&&(e[t]=n),a.paletteIdx=(o+1)%i.length,n):void 0},Hp.prototype.clearColorPalette=function(){var t;(t=Fp)(this).paletteIdx=0,t(this).paletteNameMap={}},Hp);function Hp(){}var Vp,Up="\0_ec_inner",$p=(n(Wp,Vp=ch),Wp.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new ch(r),this._locale=new ch(i),this._optionManager=o},Wp.prototype.setOption=function(t,e,n){e=Yp(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Wp.prototype.resetOption=function(t,e){return this._resetOption(t,Yp(e))},Wp.prototype._resetOption=function(t,e){var n,r=!1,i=this._optionManager;return t&&"recreate"!==t||(n=i.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Bp(this,n),r=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=i.getTimelineOption(this))&&(r=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=i.getMediaOption(this)).length&&R(n,(function(t){r=!0,this._mergeOption(t,e)}),this),r},Wp.prototype.mergeOption=function(t){this._mergeOption(t,null)},Wp.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=yt(),s=e&&e.replaceMergeMainTypeMap;Ip(this).datasetMap=yt(),R(t,(function(t,e){null!=t&&(gp.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?A(t):T(n[e],t,!0))})),s&&s.each((function(t,e){gp.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),gp.topologicalTravel(o,gp.getAllClassMainTypes(),(function(e){var o,a=function(t,e,n){return(e=(e=jp.get(e))&&e(t))?n.concat(e):n}(this,e,Ji(t[e])),l=r.get(e),u=l?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=(l=function(t,e,n){var r,i,o,a,s,l,u,c,h,p,f="normalMerge"===n,d="replaceMerge"===n,g="replaceAll"===n,y=(t=t||[],e=(e||[]).slice(),yt());return R(e,(function(t,n){q(t)||(e[n]=null)})),n=function(t,e,n){var r=[];if("replaceAll"!==n)for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||ao(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,y,n),(f||d)&&(r=n,i=t,o=y,R(a=e,(function(t,e){var n,s,l;t&&null!=t.id&&(n=ro(t.id),null!=(s=o.get(n)))&&(at(!(l=r[s]).newOption,'Duplicated option on id "'+n+'".'),l.newOption=t,l.existing=i[s],a[e]=null)}))),f&&(s=n,R(l=e,(function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var r=s[n].existing;if(!s[n].newOption&&r&&(null==r.id||null==t.id)&&!ao(t)&&!ao(r)&&no("name",r,t))return s[n].newOption=t,void(l[e]=null)}}))),f||d?(c=n,h=d,R(e,(function(t){if(t){for(var e,n=0;(e=c[n])&&(e.newOption||ao(e.existing)||e.existing&&null!=t.id&&!no("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=h):c.push({newOption:t,brandNew:h,existing:null,keyInfo:null}),n++}}))):g&&(u=n,R(e,(function(t){u.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))),t=n,p=yt(),R(t,(function(t){var e=t.existing;e&&p.set(e.id,t)})),R(t,(function(t){var e=t.newOption;at(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})})),R(t,(function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(q(r)){if(i.name=null!=r.name?ro(r.name):n?n.name:Ki+e,n)i.id=ro(n.id);else if(null!=r.id)i.id=ro(r.id);else for(var o=0;i.id="\0"+i.name+"\0"+o++,p.get(i.id););p.set(i.id,t)}})),n}(l,a,u),function(t,e,n){R(t,(function(t){var r,i,o=t.newOption;q(o)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(r=e,o=o,t=t.existing,i=n,o.type||(t?t.subType:i.determineSubType(r,o))))}))}(l,e,gp),n[e]=null,r.set(e,null),i.set(e,0),[]),h=[],p=0;R(l,(function(t,n){var r=t.existing,i=t.newOption;if(i){var a=gp.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(o)return;o=!0}r&&r.constructor===a?(r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1)):(n=C({componentIndex:n},t.keyInfo),C(r=new a(i,this,this,n),n),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0))}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(c.push(r.option),h.push(r),p++):(c.push(void 0),h.push(void 0))}),this),n[e]=c,r.set(e,h),i.set(e,p),"series"===e&&Rp(this)}),this),this._seriesIndices||Rp(this)},Wp.prototype.getOption=function(){var t=A(this.option);return R(t,(function(e,n){if(gp.hasClass(n)){for(var r=Ji(e),i=r.length,o=!1,a=i-1;0<=a;a--)r[a]&&!ao(r[a])?o=!0:(r[a]=null,o||i--);r.length=i,t[n]=r}})),delete t[Up],t},Wp.prototype.getTheme=function(){return this._theme},Wp.prototype.getLocaleModel=function(){return this._locale},Wp.prototype.setUpdatePayload=function(t){this._payload=t},Wp.prototype.getUpdatePayload=function(){return this._payload},Wp.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0],t)return t;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},Wp.prototype.queryComponents=function(t){var e,n,r,i,o,a=t.mainType;return a&&(e=t.index,n=t.id,r=t.name,i=this._componentsMap.get(a))&&i.length?(null!=e?(o=[],R(Ji(e),(function(t){i[t]&&o.push(i[t])}))):o=null!=n?Gp("id",n,i):null!=r?Gp("name",r,i):j(i,(function(t){return!!t})),qp(o,t)):[]},Wp.prototype.findComponents=function(t){var e,n=t.query,r=t.mainType,i=(i=r+"Index",o=r+"Id",e=r+"Name",!(n=n)||null==n[i]&&null==n[o]&&null==n[e]?null:{mainType:r,index:n[i],id:n[o],name:n[e]}),o=i?this.queryComponents(i):j(this._componentsMap.get(r),(function(t){return!!t}));return n=qp(o,t),t.filter?j(n,t.filter):n},Wp.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(U(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=$(t)?r.get(t):q(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},Wp.prototype.getSeriesByName=function(t){var e=io(t,null);return j(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},Wp.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Wp.prototype.getSeriesByType=function(t){return j(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},Wp.prototype.getSeries=function(){return j(this._componentsMap.get("series"),(function(t){return!!t}))},Wp.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Wp.prototype.eachSeries=function(t,e){Np(this),R(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},Wp.prototype.eachRawSeries=function(t,e){R(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},Wp.prototype.eachSeriesByType=function(t,e,n){Np(this),R(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},Wp.prototype.eachRawSeriesByType=function(t,e,n){return R(this.getSeriesByType(t),e,n)},Wp.prototype.isSeriesFiltered=function(t){return Np(this),null==this._seriesIndicesMap.get(t.componentIndex)},Wp.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Wp.prototype.filterSeries=function(t,e){Np(this);var n=[];R(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=yt(n)},Wp.prototype.restoreData=function(t){Rp(this);var e=this._componentsMap,n=[];e.each((function(t,e){gp.hasClass(e)&&n.push(e)})),gp.topologicalTravel(n,gp.getAllClassMainTypes(),(function(n){R(e.get(n),(function(e){!e||"series"===n&&function(t,e){var n,r;if(e)return n=e.seriesIndex,r=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=e&&t.name!==e}(e,t)||e.restoreData()}))}))},Wp.internalField=(Rp=function(t){var e=t._seriesIndices=[];R(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=yt(e)},Np=function(t){},void(Bp=function(t,e){t.option={},t.option[Up]=1,t._componentsMap=yt({series:[]}),t._componentsCount=yt();var n,r,i=e.aria;q(i)&&null==i.enabled&&(i.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,R(i,(function(t,e){"colorLayer"===e&&r||gp.hasClass(e)||("object"==s(t)?n[e]=n[e]?T(n[e],t,!1):A(t):null==n[e]&&(n[e]=t))})),T(e,mp,!1),t._mergeOption(e,null)})),Wp);function Wp(){return null!==Vp&&Vp.apply(this,arguments)||this}function Gp(t,e,n){var r,i;return V(e)?(r=yt(),R(e,(function(t){null!=t&&null!=io(t,null)&&r.set(t,!0)})),j(n,(function(e){return e&&r.get(e[t])}))):(i=io(e,null),j(n,(function(e){return e&&null!=i&&e[t]===i})))}function qp(t,e){return e.hasOwnProperty("subType")?j(t,(function(t){return t&&t.subType===e.subType})):t}function Yp(t){var e=yt();return t&&R(Ji(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}function Xp(t){R(Zp,(function(e){this[e]=z(t[e],t)}),this)}L($p,zp);var Zp=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Kp={},Jp=(Qp.prototype.create=function(t,e){var n=[];R(Kp,(function(r,i){r=r.create(t,e),n=n.concat(r||[])})),this._coordinateSystems=n},Qp.prototype.update=function(t,e){R(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},Qp.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Qp.register=function(t,e){Kp[t]=e},Qp.get=function(t){return Kp[t]},Qp);function Qp(){this._coordinateSystems=[]}var tf=/^(min|max)?(.+)$/,ef=(nf.prototype.setOption=function(t,e,n){t&&(R(Ji(t.series),(function(t){t&&t.data&&X(t.data)&&ut(t.data)})),R(Ji(t.dataset),(function(t){t&&t.source&&X(t.source)&&ut(t.source)}))),t=A(t);var r=this._optionBackup;t=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function p(t){R(e,(function(e){e(t,n)}))}return a?(i=a).timeline||(i.timeline=s):((h||c)&&(t.options=t.media=null),i=t),c&&V(u)&&R(u,(function(t){t&&t.option&&(t.query?o.push(t):r=r||t)})),p(i),R(l,p),R(o,(function(t){return p(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=t.baseOption,r?(t.timelineOptions.length&&(r.timelineOptions=t.timelineOptions),t.mediaList.length&&(r.mediaList=t.mediaList),t.mediaDefault&&(r.mediaDefault=t.mediaDefault)):this._optionBackup=t},nf.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],A(t?e.baseOption:this._newBaseOption)},nf.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return n.length&&(t=t.getComponent("timeline"))?A(n[t.getCurrentIndex()]):e},nf.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],a=[];if(r.length||i){for(var s,l,u=0,c=r.length;u<c;u++)!function(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return R(t,(function(t,e){var n;e=e.match(tf);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=r[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(i=!1))})),i}(r[u].query,e,n)||o.push(u);(o=!o.length&&i?[-1]:o).length&&(s=o,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=N(o,(function(t){return A((-1===t?i:r[t]).option)}))),this._currentMediaIndices=o}return a},nf);function nf(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var rf=R,of=q,af=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function sf(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=af.length;n<r;n++){var i=af[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?T(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?T(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function lf(t,e,n){var r,i;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(r=t[e].normal,i=t[e].emphasis,r&&(n?(t[e].normal=t[e].emphasis=null,I(t[e],r)):t[e]=r),i)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=i).focus&&(t.emphasis.focus=i.focus),i.blurScope)&&(t.emphasis.blurScope=i.blurScope)}function uf(t){lf(t,"itemStyle"),lf(t,"lineStyle"),lf(t,"areaStyle"),lf(t,"label"),lf(t,"labelLine"),lf(t,"upperLabel"),lf(t,"edgeLabel")}function cf(t,e){var n=of(t)&&t[e],r=of(n)&&n.textStyle;if(r)for(var i=0,o=to.length;i<o;i++){var a=to[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function hf(t){t&&(uf(t),cf(t,"label"),t.emphasis)&&cf(t.emphasis,"label")}function pf(t){return V(t)?t:t?[t]:[]}function ff(t){return(V(t)?t[0]:t)||{}}function df(t){t&&R(gf,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var gf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],yf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function mf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<vf.length;n++){var r=vf[n][1],i=vf[n][0];null!=e[r]&&(e[i]=e[r])}}function _f(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function xf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function bf(t,e){(function(t,e){rf(pf(t.series),(function(t){if(of(t)&&of(t)){sf(t),uf(t),cf(t,"label"),cf(t,"upperLabel"),cf(t,"edgeLabel"),t.emphasis&&(cf(t.emphasis,"label"),cf(t.emphasis,"upperLabel"),cf(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(sf(e),hf(e)),t.markLine),r=(n&&(sf(n),hf(n)),t.markArea),i=(r&&hf(r),t.data);if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!X(o))for(var a=0;a<o.length;a++)hf(o[a]);R(t.categories,(function(t){uf(t)}))}if(i&&!X(i))for(a=0;a<i.length;a++)hf(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)hf(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)V(l[a])?(hf(l[a][0]),hf(l[a][1])):hf(l[a])}"gauge"===t.type?(cf(t,"axisLabel"),cf(t,"title"),cf(t,"detail")):"treemap"===t.type?(lf(t.breadcrumb,"itemStyle"),R(t.levels,(function(t){uf(t)}))):"tree"===t.type&&uf(t.leaves)}}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),rf(n,(function(e){rf(pf(t[e]),(function(t){t&&(cf(t,"axisLabel"),cf(t.axisPointer,"label"))}))})),rf(pf(t.parallel),(function(t){t=t&&t.parallelAxisDefault,cf(t,"axisLabel"),cf(t&&t.axisPointer,"label")})),rf(pf(t.calendar),(function(t){lf(t,"itemStyle"),cf(t,"dayLabel"),cf(t,"monthLabel"),cf(t,"yearLabel")})),rf(pf(t.radar),(function(t){cf(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),rf(pf(t.geo),(function(t){of(t)&&(hf(t),rf(pf(t.regions),(function(t){hf(t)})))})),rf(pf(t.timeline),(function(t){hf(t),lf(t,"label"),lf(t,"itemStyle"),lf(t,"controlStyle",!0),t=t.data,V(t)&&R(t,(function(t){q(t)&&(lf(t,"label"),lf(t,"itemStyle"))}))})),rf(pf(t.toolbox),(function(t){lf(t,"iconStyle"),rf(t.feature,(function(t){lf(t,"iconStyle")}))})),cf(ff(t.axisPointer),"label"),cf(ff(t.tooltip).axisPointer,"label")})(t,e),t.series=Ji(t.series),R(t.series,(function(t){if(q(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),_f(t.label),(e=t.data)&&!X(e))for(var r=0;r<e.length;r++)_f(e[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var i=function(t,e){for(var n="pointer.color".split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t);if(null!=i){for(var o,a=t,l="itemStyle.color",u=l.split(","),c=a,h=0;h<u.length-1;h++)null==c[o=u[h]]&&(c[o]={}),c=c[o];null!=c[u[h]]||(c[u[h]]=i)}}else if("bar"===n){if(mf(t),mf(t.backgroundStyle),mf(t.emphasis),(e=t.data)&&!X(e))for(r=0;r<e.length;r++)"object"==s(e[r])&&(mf(e[r]),mf(e[r]&&e[r].emphasis))}else"sunburst"===n?((l=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=l)),xf(t),function t(e,n){if(e)for(var r=0;r<e.length;r++)n(e[r]),e[r]&&t(e[r].children,n)}(t.data,xf)):"graph"===n||"sankey"===n?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&I(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),df(t)}})),t.dataRange&&(t.visualMap=t.dataRange),R(yf,(function(e){e=t[e],e&&R(e=V(e)?e:[e],(function(t){df(t)}))}))}function wf(t){R(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,p,f=a.get(e.stackedDimension,c);if(isNaN(f))return i;s?p=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var d,g,y,v=NaN,m=n-1;0<=m;m--){var _=t[m];if(0<=(p=s?p:_.data.rawIndexOf(_.stackedByDimension,h))&&(_=_.data.getByRawIndex(_.stackResultDimension,p),"all"===l||"positive"===l&&0<_||"negative"===l&&_<0||"samesign"===l&&0<=f&&0<_||"samesign"===l&&f<=0&&_<0)){d=f,g=_,void 0,y=Math.max(Ei(d),Ei(g)),d+=g,f=20<y?d:Di(d,y),v=_;break}}return r[0]=f,r[1]=v,r}))}))}var Sf,kf,Mf=function(t){this.data=t.data||(t.sourceFormat===Sp?{}:[]),this.sourceFormat=t.sourceFormat||Mp,this.seriesLayoutBy=t.seriesLayoutBy||Ap,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Lp(this,n)===Cp.Must&&(r.type="ordinal")}};function Af(t){return t instanceof Mf}function Tf(t,e,n){n=n||If(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a,s;return t?(e===bp?(s=t,"auto"===r||null==r?Pf((function(t){null!=t&&"-"!==t&&($(t)?null==a&&(a=1):a=0)}),n,s,10):a=G(r)?r:r?1:0,i||1!==a||(i=[],Pf((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===Tp?s.length:s[0]?s[0].length:null):e===wp?i=i||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return F(e)}(t):e===Sp?i||(i=[],R(t,(function(t,e){i.push(e)}))):e===xp&&(r=eo(t[0]),o=V(r)&&r.length||1),{startIndex:a,dimensionsDefine:Of(i),dimensionsDetectedCount:o}):{dimensionsDefine:Of(i),startIndex:a,dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new Mf({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:A(e)})}function Cf(t){return new Mf({data:t,sourceFormat:X(t)?kp:xp})}function If(t){var e=Mp;if(X(t))e=kp;else if(V(t)){0===t.length&&(e=bp);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(V(i)||X(i)){e=bp;break}if(q(i)){e=wp;break}}}}else if(q(t))for(var o in t)if(xt(t,o)&&E(t[o])){e=Sp;break}return e}function Of(t){var e;if(t)return e=yt(),N(t,(function(t,n){var r;t={name:(t=q(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(r=e.get(t.name))?t.name+="-"+r.count++:e.set(t.name,{count:1})),t}))}function Pf(t,e,n,r){if(e===Tp)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function Df(t){return t=t.sourceFormat,t===wp||t===Sp}Bf.prototype.getSource=function(){return this._source},Bf.prototype.count=function(){return 0},Bf.prototype.getItem=function(t,e){},Bf.prototype.appendData=function(t){},Bf.prototype.clean=function(){},Bf.protoInitialize=((Mc=Bf.prototype).pure=!1,void(Mc.persistent=!0)),Bf.internalField=(kf=function(t,e,n){var r,i=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex;n=n.dimensionsDefine;C(t,Sf[Yf(i,o)]),i===kp?(t.getItem=Lf,t.count=Rf,t.fillStorage=Ef):(r=Hf(i,o),t.getItem=z(r,null,e,a,n),r=$f(i,o),t.count=z(r,null,e,a,n))},Lf=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},Ef=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var f=i[p*o+a];(h[t+p]=f)<l&&(l=f),u<f&&(u=f)}s[0]=l,s[1]=u}},Rf=function(){return this._data?this._data.length/this._dimSize:0},(Mc={})[bp+"_"+Ap]={pure:!0,appendData:jf},Mc[bp+"_"+Tp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},Mc[wp]={pure:!0,appendData:jf},Mc[Sp]={pure:!0,appendData:function(t){var e=this._data;R(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},Mc[xp]={appendData:jf},Mc[kp]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Sf=Mc));var Lf,Ef,Rf,Nf=Bf;function Bf(t,e){t=Af(t)?t:Cf(t);var n=(this._source=t,this._data=t.data);t.sourceFormat===kp&&(this._offset=0,this._dimSize=e,this._data=n),kf(this,n,t)}function jf(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Ff(t,e,n,r){return t[r]}(Sh={})[bp+"_"+Ap]=function(t,e,n,r){return t[r+e]},Sh[bp+"_"+Tp]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Sh[wp]=Ff,Sh[Sp]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[r]:null}return o},Sh[xp]=Ff;var zf=Sh;function Hf(t,e){return zf[Yf(t,e)]}function Vf(t,e,n){return t.length}(rh={})[bp+"_"+Ap]=function(t,e,n){return Math.max(0,t.length-e)},rh[bp+"_"+Tp]=function(t,e,n){return t=t[0],t?Math.max(0,t.length-e):0},rh[wp]=Vf,rh[Sp]=function(t,e,n){return t=t[n[0].name],t?t.length:0},rh[xp]=Vf;var Uf=rh;function $f(t,e){return Uf[Yf(t,e)]}function Wf(t,e,n){return t[e]}(Io={})[bp]=Wf,Io[wp]=function(t,e,n){return t[n]},Io[Sp]=Wf,Io[xp]=function(t,e,n){return t=eo(t),t instanceof Array?t[e]:t},Io[kp]=Wf;var Gf=Io;function qf(t){return Gf[t]}function Yf(t,e){return t===bp?t+"_"+e:t}function Xf(t,e,n){if(t){var r,i;e=t.getRawDataItem(e);if(null!=e)return r=(i=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=i.getDimensionProperty(t),qf(r)(e,t,n)):(i=e,r===xp?eo(e):i)}}var Zf=/\{@(.+?)\}/g;Kf.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=(t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,this.mainType),u="series"===l;n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},Kf.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n);n=this.getDataParams(t,n);return o&&(n.value=o.interpolatedValue),null!=r&&V(n.value)&&(n.value=n.value[r]),U(i=i||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(n.status=e,n.dimensionIndex=r,i(n)):$(i)?Kh(i,n).replace(Zf,(function(e,n){var r=n.length;"["===n.charAt(0)&&"]"===n.charAt(r-1)&&(n=+n.slice(1,r-1)),r=Xf(a,t,n);return null!=(r=o&&V(o.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))?o.interpolatedValue[n]:r)?r+"":""})):void 0},Kf.prototype.getRawValue=function(t,e){return Xf(this.getData(e),t)},Kf.prototype.formatTooltip=function(t,e,n){},sh=Kf;function Kf(){}function Jf(t){var e,n;return q(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Qf(t){return new td(t)}ed.prototype.perform=function(t){var e,n,r=this._upstream,i=t&&t.skip,o=(this._dirty&&r&&((o=this.context).data=o.outputData=r.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context)),u(this._modBy)),a=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(t){return 1<=t?t:1}if(o===s&&a===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,n=this._doReset(i)),this._modBy=s,this._modDataCount=l,o=t&&t.step,this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,h=Math.min(null!=o?this._dueIndex+o:1/0,this._dueEnd);if(!i&&(n||c<h)){var p=this._progress;if(V(p))for(var f=0;f<p.length;f++)this._doProgress(p[f],c,h,s,l);else this._doProgress(p,c,h,s,l)}this._dueIndex=h,a=null!=this._settedOutputEnd?this._settedOutputEnd:h,this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},ed.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},ed.prototype._doProgress=function(t,e,n,r,i){ld.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:ld.next},this.context)},ed.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),V(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n;t=this._downstream;return t&&t.dirty(),n},ed.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},ed.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},ed.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},ed.prototype.getUpstream=function(){return this._upstream},ed.prototype.getDownstream=function(){return this._downstream},ed.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var td=ed;function ed(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var nd,rd,id,od,ad,sd,ld=sd={reset:function(t,e,n,r){rd=t,nd=e,id=n,od=r,ad=Math.ceil(od/id),sd.next=1<id&&0<od?cd:ud}};function ud(){return rd<nd?rd++:null}function cd(){var t=rd%ad*id+Math.ceil(rd/ad);t=nd<=rd?null:t<od?t:rd;return rd++,t}function hd(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||G(t)||null==t||"-"===t?t:+Hi(t))||""===t?NaN:+t}var pd=yt({number:function(t){return parseFloat(t)},time:function(t){return+Hi(t)},trim:function(t){return $(t)?st(t):t}});function fd(t){return pd.get(t)}var dd={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},gd=(yd.prototype.evaluate=function(t){return G(t)?this._opFn(t,this._rvalFloat):this._opFn(Wi(t),this._rvalFloat)},yd);function yd(t,e){G(e)||Xi(""),this._opFn=dd[t],this._rvalFloat=Wi(e)}md.prototype.evaluate=function(t,e){var n=G(t)?t:Wi(t),r=G(e)?e:Wi(e),i=isNaN(n),o=isNaN(r);return i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o&&(i=$(t),o=$(e),i&&(n=o?t:0),o)&&(r=i?e:0),n<r?this._resultLT:r<n?-this._resultLT:0};var vd=md;function md(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}xd.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=s(t))===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Wi(t)===this._rvalFloat),this._isEQ?n:!n};var _d=xd;function xd(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=s(e),this._rvalFloat=Wi(e)}wd.prototype.getRawData=function(){throw new Error("not supported")},wd.prototype.getRawDataItem=function(t){throw new Error("not supported")},wd.prototype.cloneRawData=function(){},wd.prototype.getDimensionInfo=function(t){},wd.prototype.cloneAllDimensionInfo=function(){},wd.prototype.count=function(){},wd.prototype.retrieveValue=function(t,e){},wd.prototype.retrieveValueFromItem=function(t,e){},wd.prototype.convertValue=hd;var bd=wd;function wd(){}function Sd(t){return Cd(t.sourceFormat)||Xi(""),t.data}function kd(t){var e=t.sourceFormat,n=t.data;if(Cd(e)||Xi(""),e===bp){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(e===wp){for(r=[],i=0,o=n.length;i<o;i++)r.push(C({},n[i]));return r}}function Md(t,e,n){if(null!=n)return G(n)||!isNaN(n)&&!xt(e,n)?t[n]:xt(e,n)?e[n]:void 0}function Ad(t){return A(t)}var Td=yt();function Cd(t){return t===bp||t===wp}Mc="undefined";var Id,Od=("undefined"===typeof Uint32Array?"undefined":s(Uint32Array))==Mc?Array:Uint32Array,Pd=("undefined"===typeof Uint16Array?"undefined":s(Uint16Array))==Mc?Array:Uint16Array,Dd=("undefined"===typeof Int32Array?"undefined":s(Int32Array))==Mc?Array:Int32Array,Ld=(Sh=("undefined"===typeof Float64Array?"undefined":s(Float64Array))==Mc?Array:Float64Array,{float:Sh,int:Dd,ordinal:Array,number:Array,time:Sh});function Ed(t){return 65535<t?Od:Pd}function Rd(){return[1/0,-1/0]}function Nd(t,e,n,r,i){if(n=Ld[n||"float"],i){var o=t[e],a=o&&o.length;if(a!==r){for(var s=new n(r),l=0;l<a;l++)s[l]=o[l];t[e]=s}}else t[e]=new n(r)}jd.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=Id[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Df(r),this._dimensions=N(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},jd.prototype.getProvider=function(){return this._provider},jd.prototype.getSource=function(){return this._provider.getSource()},jd.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new Ld[e||"float"](this._rawCount),this._rawExtent[i]=Rd(),i},jd.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length,s=(0===o&&(i[t]=Rd()),i[t]),l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},jd.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},jd.prototype.getDimensionProperty=function(t){return t=this._dimensions[t],t&&t.property},jd.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t),t=e.count();return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},jd.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++)Nd(n,l,(f=r[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,p=0;p<i;p++){var f=r[p],d=Id.arrayRows.call(this,t[h]||u,f.property,h,p),g=(n[p][c]=d,o[p]);d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return{start:a,end:this._rawCount=this._count=s}},jd.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=N(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Rd()),Nd(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],p=t;p<e;p++){h=r.getItem(p,h);for(var f=0;f<a;f++){var d=i[f],g=this._dimValueGetter(h,l[f],p,f);d=(d[p]=g,s[f]);g<d[0]&&(d[0]=g),g>d[1]&&(d[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},jd.prototype.count=function(){return this._count},jd.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},jd.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},jd.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},jd.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},jd.prototype.getMedian=function(t){var e=[],n=(t=(this.each([t],(function(t){isNaN(t)||e.push(t)})),e.sort((function(t,e){return t-e}))),this.count());return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},jd.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=1+o;else{if(!(e[o]>t))return o;i=o-1}}}return-1},jd.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(r){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-r[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&0<=c&&a<0)&&(o=h,a=c,s=0),c===a)&&(i[s++]=l)}i.length=s}return i},jd.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var r=new e(n),i=0;i<n;i++)r[i]=t[i];else r=new e(t.buffer,0,n)}else for(r=new(e=Ed(this._rawCount))(this.count()),i=0;i<r.length;i++)r[i]=i;return r},jd.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Ed(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][p],c);else{for(var f=0;f<a;f++)o[f]=u[t[f]][p];o[f]=c,h=e.apply(null,o)}h&&(i[s++]=p)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},jd.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=F(t),i=r.length;if(!i)return this;var o=e.count(),a=new(Ed(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],h=e._chunks;l=!1;if(!e._indices){var p=0;if(1===i){for(var f=h[r[0]],d=0;d<n;d++)(u<=(m=f[d])&&m<=c||isNaN(m))&&(a[s++]=p),p++;l=!0}else if(2===i){f=h[r[0]];var g=h[r[1]],y=t[r[1]][0],v=t[r[1]][1];for(d=0;d<n;d++){var m=f[d],_=g[d];(u<=m&&m<=c||isNaN(m))&&(y<=_&&_<=v||isNaN(_))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===i)for(d=0;d<o;d++){var x=e.getRawIndex(d);(u<=(m=h[r[0]][x])&&m<=c||isNaN(m))&&(a[s++]=x)}else for(d=0;d<o;d++){for(var b=!0,w=(x=e.getRawIndex(d),0);w<i;w++){var S=r[w];((m=h[S][x])<t[S][0]||m>t[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(d))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},jd.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},jd.prototype.modify=function(t,e){this._updateDims(this,t,e)},jd.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=Rd();for(var h=0;h<a;h++){for(var p=t.getRawIndex(h),f=0;f<o;f++)l[f]=r[e[f]][p];l[o]=h;var d=n&&n.apply(null,l);if(null!=d)for("object"!=s(d)&&(i[0]=d,d=i),c=0;c<d.length;c++){var g=e[c],y=d[c],v=u[g];g=r[g];g&&(g[p]=y),y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}},jd.prototype.lttbDownSample=function(t,e){var n,r=this.clone([t],!0),i=r._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Ed(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var c=1;c<o-1;c+=s){for(var h=Math.min(c+s,o-1),p=Math.min(c+2*s,o),f=(p+h)/2,d=0,g=h;g<p;g++){var y=i[k=this.getRawIndex(g)];isNaN(y)||(d+=y)}d/=p-h;h=c;var v=Math.min(c+s,o),m=c-1,_=i[l],x=-1,b=h,w=-1,S=0;for(g=h;g<v;g++){var k;y=i[k=this.getRawIndex(g)];isNaN(y)?(S++,w<0&&(w=k)):x<(n=Math.abs((m-f)*(y-_)-(m-g)*(d-_)))&&(x=n,b=k)}0<S&&S<v-h&&(u[a++]=Math.min(w,b),b=Math.max(w,b)),l=u[a++]=b}return u[a++]=this.getRawIndex(o-1),r._count=a,r._indices=u,r.getRawIndex=this._getRawIdx,r},jd.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=Rd(),h=new(Ed(this._rawCount))(Math.ceil(u/s)),p=0,f=0;f<u;f+=s){u-f<s&&(a.length=s=u-f);for(var d=0;d<s;d++){var g=this.getRawIndex(f+d);a[d]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(f+r(a,y)||0,u-1));(l[v]=y)<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[p++]=v}return i._count=p,i._indices=h,i._updateGetRawIdx(),i},jd.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},jd.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Rd();if(!e)return n;var r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var i,o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=[o,a]},jd.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},jd.prototype.clone=function(t,e){var n,r,i=new jd,o=this._chunks,a=t&&B(t,(function(t,e){return t[e]=!0,t}),{});if(a)for(var s=0;s<o.length;s++)i._chunks[s]=a[s]?(n=o[s],r=void 0,(r=n.constructor)===Array?n.slice():new r(n)):o[s];else i._chunks=o;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},jd.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=A(this._extent),t._rawExtent=A(this._rawExtent)},jd.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,r=(e=new t(n),0);r<n;r++)e[r]=this._indices[r];else e=new t(this._indices);return e}return null},jd.prototype._getRawIdxIdentity=function(t){return t},jd.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},jd.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},jd.internalField=void(Id={arrayRows:Fd,objectRows:function(t,e,n,r){return hd(t[e],this._dimensions[r])},keyedColumns:Fd,original:function(t,e,n,r){return t=t&&(null==t.value?t:t.value),hd(t instanceof Array?t[r]:t,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}});var Bd=jd;function jd(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=yt()}function Fd(t,e,n,r){return hd(t[r],this._dimensions[r])}Hd.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Hd.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Hd.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Hd.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Hd.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,r,i,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Ud(s)?(r=s,i=t=o=void 0,e=u?((e=l[0]).prepareSource(),o=(i=e.getSource()).data,t=i.sourceFormat,[e._getVersionSign()]):(t=X(o=r.get("data",!0))?kp:xp,[]),r=this._getSourceMetaRawOption()||{},i=i&&i.metaRawOption||{},a=nt(r.seriesLayoutBy,i.seriesLayoutBy)||null,n=nt(r.sourceHeader,i.sourceHeader),r=nt(r.dimensions,i.dimensions),i=a!==i.seriesLayoutBy||!!n!=!!i.sourceHeader||r?[Tf(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:r},t)]:[]):(o=s,e=u?(i=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(i=[Tf(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(i,e)},Hd.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0),o=(null!=i&&1!==t.length&&$d(""),[]),a=[];return R(t,(function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||$d(""),o.push(e),a.push(t._getVersionSign())})),r?e=function(t,e){var n=Ji(t);t=n.length,t||Xi("");for(var r=0,i=t;r<i;r++)e=function(t,e){e.length||Xi(""),q(t)||Xi("");var n=t.type,r=Td.get(n);return r||Xi(""),n=N(e,(function(t){var e=t,n=(t=r,new bd),i=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==Ap&&Xi(""),[]),l={};if(h=e.dimensionsDefine)R(h,(function(t,e){var n=t.name;e={index:e,name:n,displayName:t.displayName};s.push(e),null!=n&&(xt(l,n)&&Xi(""),l[n]=e)}));else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var c=Hf(o,Ap),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,a,s,t)},n.getRawData=z(Sd,null,e)),n.cloneRawData=z(kd,null,e),$f(o,Ap)),p=(n.count=z(h,null,i,a,s),qf(o)),f=(n.retrieveValue=function(t,e){return t=c(i,a,s,t),f(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=s[e])?p(t,e,n.name):void 0});return n.getDimensionInfo=z(Md,null,s,l),n.cloneAllDimensionInfo=z(Ad,null,s),n})),N(Ji(r.transform({upstream:n[0],upstreamList:n,config:A(t.config)})),(function(t,n){q(t)||Xi(""),t.data||Xi(""),Cd(If(t.data))||Xi("");var r=e[0];n=r&&0===n&&!t.dimensions?((n=r.startIndex)&&(t.data=r.data.slice(0,n).concat(t.data)),{seriesLayoutBy:Ap,sourceHeader:n,dimensions:r.metaRawOption.dimensions}):{seriesLayoutBy:Ap,sourceHeader:0,dimensions:t.dimensions};return Tf(t.data,n,null)}))}(n[r],e),r!==i-1&&(e.length=Math.max(e.length,1));return e}(r,o,n.componentIndex):null!=i&&(e=[new Mf({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:A(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},Hd.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Hd.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Hd.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Hd.prototype._innerGetDataStore=function(t,e,n){var r,i=this._storeList,o=i[0];i=(o=o||(i[0]={}))[n];return i||(r=this._getUpstreamSourceManagers()[0],Ud(this._sourceHost)&&r?i=r._innerGetDataStore(t,e,n):(i=new Bd).initData(new Nf(e,t.length),t),o[n]=i),i},Hd.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Ud(e)?(t=Dp(e))?[t.getSourceManager()]:[]:N((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?go(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},po).models:[],(function(t){return t.getSourceManager()}))},Hd.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;return Ud(r)?(t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(r=r).get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var zd=Hd;function Hd(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Vd(t){t.option.transform&&ut(t.option.transform)}function Ud(t){return"series"===t.mainType}function $d(t){throw new Error(t)}var Wd="line-height:1";function Gd(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14;t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ee(r+"")+"px;color:"+ee(n)+";font-weight:"+ee(i+""),valueStyle:"font-size:"+ee(a+"")+"px;color:"+ee(o)+";font-weight:"+ee(t+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}var qd=[0,10,20,30],Yd=["","\n","\n\n","\n\n\n"];function Xd(t,e){return e.type=t,e}function Zd(t){return"section"===t.type}function Kd(t){return Zd(t)?Jd:Qd}function Jd(t,e,n,r){var i,o=e.noHeader,a=(l=function t(e){var n,r,i;return Zd(e)?(n=0,r=e.blocks.length,i=1<r||0<r&&!e.noHeader,R(e.blocks,(function(e){var r=t(e);n<=r&&(n=r+ +(i&&(!r||Zd(e)&&!e.noHeader)))})),n):0}(e),{html:qd[l],richText:Yd[l]}),s=[],l=e.blocks||[],u=(at(!l||V(l)),l=l||[],t.orderMode),c=(e.sortBlocks&&u&&(l=l.slice(),xt(c={valueAsc:"asc",valueDesc:"desc"},u)?(i=new vd(c[u],null),l.sort((function(t,e){return i.evaluate(t.sortParam,e.sortParam)}))):"seriesDesc"===u&&l.reverse()),R(l,(function(n,i){var o=e.valueFormatter;o=Kd(n)(o?C(C({},t),{valueFormatter:o}):t,n,0<i?a.html:0,r);null!=o&&s.push(o)})),"richText"===t.renderMode?s.join(a.richText):eg(s.join(""),o?n:a.html));return o?c:(u=Yh(e.header,"ordinal",t.useUTC),l=Gd(r,t.renderMode).nameStyle,"richText"===t.renderMode?ng(t,u,l)+a.richText+c:eg('<div style="'+l+";"+Wd+';">'+ee(u)+"</div>"+c,n))}function Qd(t,e,n,r){var i,o,a,s,l=t.renderMode,u=e.noName,c=e.noValue,h=!e.markerType,p=e.name,f=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return N(t=V(t)?t:[t],(function(t,e){return Yh(t,V(o)?o[e]:o,f)}))};if(!u||!c)return i=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":Yh(p,"ordinal",f),o=e.valueType,d=c?[]:d(e.value,e.dataIndex),e=!h||!u,a=!h&&u,r=Gd(r,l),s=r.nameStyle,r=r.valueStyle,"richText"===l?(h?"":i)+(u?"":ng(t,p,s))+(c?"":function(t,e,n,r,i){return i=[i],r=r?10:20,n&&i.push({padding:[0,0,0,r],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,i)}(t,d,e,a,r)):eg((h?"":i)+(u?"":'<span style="'+s+";"+(h?"":"margin-left:2px")+'">'+ee(p)+"</span>")+(c?"":function(t,e,n,r){return n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=V(t)?t:[t],'<span style="'+e+";"+r+'">'+N(t,ee).join("&nbsp;&nbsp;")+"</span>"}(d,e,a,r)),n)}function tg(t,e,n,r,i,o){if(t)return Kd(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function eg(t,e){return'<div style="margin: '+e+"px 0 0;"+Wd+';">'+t+'<div style="clear:both"></div></div>'}function ng(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function rg(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}og.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},og.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null;e=Jh({color:e,type:t,renderMode:n,markerId:r});return $(e)?e:(this.richTextStyles[r]=e.style,e.content)},og.prototype.wrapRichTextStyle=function(t,e){var n={};V(e)?R(e,(function(t){return C(n,t)})):C(n,e),e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var ig=og;function og(){this.richTextStyles={},this._nextStyleNameId=qi()}var ag=lo();function sg(t,e){return t.getName(e)||t.getId(e)}n(cg,lg=gp),cg.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Qf({count:pg,reset:fg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(ag(this).sourceManager=new zd(this)).prepareSource(),t=this.getInitialData(t,n),gg(t,this),this.dataTask.context.data=t,ag(this).dataBeforeProcessed=t,hg(this),this._initSelectedMapFromData(t)},cg.prototype.mergeDefaultAndTheme=function(t,e){var n=sp(this),r=n?up(t):{},i=this.subType;gp.hasClass(i),T(t,e.getTheme().get(this.subType)),T(t,this.getDefaultOption()),Qi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&lp(t,r,n)},cg.prototype.mergeOption=function(t,e){t=T(this.option,t,!0),this.fillDataTextStyle(t.data);var n=sp(this);n&&lp(this.option,t,n),n=ag(this).sourceManager,n.dirty(),n.prepareSource(),n=this.getInitialData(t,e);gg(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,ag(this).dataBeforeProcessed=n,hg(this),this._initSelectedMapFromData(n)},cg.prototype.fillDataTextStyle=function(t){if(t&&!X(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Qi(t[n],"label",e)},cg.prototype.getInitialData=function(t,e){},cg.prototype.appendData=function(t){this.getRawData().appendData(t.data)},cg.prototype.getData=function(t){var e=vg(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):ag(this).data},cg.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},cg.prototype.setData=function(t){var e,n=vg(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),ag(this).data=t},cg.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return yt(t)},cg.prototype.getSourceManager=function(){return ag(this).sourceManager},cg.prototype.getSource=function(){return this.getSourceManager().getSource()},cg.prototype.getRawData=function(){return ag(this).dataBeforeProcessed},cg.prototype.getColorBy=function(){return this.get("colorBy")||"series"},cg.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},cg.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},cg.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,r,i,o,a,s,l,u,c,h,p=t.series,f=t.dataIndex,d=(t=t.multipleSeries,p.getData()),g=d.mapDimensionsAll("defaultedTooltip"),y=g.length,v=p.getRawValue(f),m=V(v),_=(_=f,Qh((b=p).getData().getItemVisual(_,"style")[b.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e),e&&!1!==e.otherDims.tooltip&&(l?h.push(Xd("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),c.push(e.type)))}1<y||m&&!y?(b=v,i=f,o=g,a=_,s=p.getData(),l=B(b,(function(t,e,n){return n=s.getDimensionInfo(n),t||n&&!1!==n.tooltip&&null!=n.displayName}),!1),u=[],c=[],h=[],o.length?R(o,(function(t){x(Xf(s,i,t),t)})):R(b,x),e=(o={inlineValues:u,inlineValueTypes:c,blocks:h}).inlineValueTypes,n=o.blocks,r=(o=o.inlineValues)[0]):y?(b=d.getDimensionInfo(g[0]),r=o=Xf(d,f,g[0]),e=b.type):r=o=m?v[0]:v,y=oo(p),g=y&&p.name||"";var b=d.getName(f);return m=t?g:b,Xd("section",{header:g,noHeader:t||!y,sortParam:r,blocks:[Xd("nameValue",{markerType:"item",markerColor:_,name:m,noName:!st(m),value:o,valueType:e,dataIndex:f})].concat(n||[])})}({series:this,dataIndex:t,multipleSeries:e})},cg.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!o.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},cg.prototype.restoreData=function(){this.dataTask.dirty()},cg.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel;return zp.prototype.getColorFromPalette.call(this,t,e,n)||r.getColorFromPalette(t,e,n)},cg.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},cg.prototype.getProgressive=function(){return this.get("progressive")},cg.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},cg.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},cg.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=sg(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},cg.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},cg.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=F(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];0<=i&&n.push(i)}return n},cg.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[sg(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},cg.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},cg.prototype._innerSelect=function(t,e){var n=this.option,r=n.selectedMode,i=e.length;if(r&&i)if("series"===r)n.selectedMap="all";else if("multiple"===r){q(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<i;a++){var s,l=e[a];o[s=sg(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==r&&!0!==r||(s=sg(t,r=e[i-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(r),n))},cg.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),0<e.length&&this._innerSelect(t,e))},cg.registerClass=function(t){return gp.registerClass(t)},cg.protoInitialize=((rh=cg.prototype).type="series.__base__",rh.seriesIndex=0,rh.ignoreStyleOnData=!1,rh.hasSymbolVisual=!1,rh.defaultSymbol="circle",rh.visualStyleAccessPath="itemStyle",void(rh.visualDrawType="fill"));var lg,ug=cg;function cg(){var t=null!==lg&&lg.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function hg(t){var e,n,r=t.name;oo(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],R(t,(function(t){t=e.getDimensionInfo(t),t.displayName&&n.push(t.displayName)})),n.join(" ")||r))}function pg(t){return t.model.getRawData().count()}function fg(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),dg}function dg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function gg(t,e){R(vt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,H(yg,e))}))}function yg(t,e){return t=vg(t),t&&t.setOutputEnd((e||this).count()),e}function vg(t){var e,n=(t.ecModel||{}).scheduler;n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}L(ug,sh),L(ug,zp),wo(ug,gp),_g.prototype.init=function(t,e){},_g.prototype.render=function(t,e,n,r){},_g.prototype.dispose=function(t,e){},_g.prototype.updateView=function(t,e,n,r){},_g.prototype.updateLayout=function(t,e,n,r){},_g.prototype.updateVisual=function(t,e,n,r){},_g.prototype.toggleBlurSeries=function(t,e,n){},_g.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var mg=_g;function _g(){this.group=new _i,this.uid=fh("viewComponent")}function xg(){var t=lo();return function(e){var n=t(e),r=(e=e.pipelineContext,!!n.large),i=!!n.progressiveRender,o=n.large=!(!e||!e.large);n=n.progressiveRender=!(!e||!e.progressiveRender);return!(r==o&&i==n)&&"reset"}}bo(mg),Ao(mg);var bg=lo(),wg=xg(),Sg=(kg.prototype.init=function(t,e){},kg.prototype.render=function(t,e,n,r){},kg.prototype.highlight=function(t,e,n,r){t=t.getData(r&&r.dataType),t&&Ag(t,r,"emphasis")},kg.prototype.downplay=function(t,e,n,r){t=t.getData(r&&r.dataType),t&&Ag(t,r,"normal")},kg.prototype.remove=function(t,e){this.group.removeAll()},kg.prototype.dispose=function(t,e){},kg.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},kg.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},kg.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},kg.prototype.eachRendered=function(t){Bc(this.group,t)},kg.markUpdateMethod=function(t,e){bg(t).updateMethod=e},kg.protoInitialize=void(kg.prototype.type="chart"),kg);function kg(){this.group=new _i,this.uid=fh("viewChart"),this.renderTask=Qf({plan:Tg,reset:Cg}),this.renderTask.context={view:this}}function Mg(t,e,n){t&&ml(t)&&("emphasis"===e?el:nl)(t,n)}function Ag(t,e,n){var r,i=so(t,e),o=e&&null!=e.highlightKey?(e=e.highlightKey,r=null==(r=Os[e])&&Is<=32?Os[e]=Is++:r):null;null!=i?R(Ji(i),(function(e){Mg(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){Mg(t,n,o)}))}function Tg(t){return wg(t.model)}function Cg(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=(t=t.view,i&&bg(i).updateMethod);o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,r,i),Ig[o]}bo(Sg),Ao(Sg);var Ig={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Og="\0__throttleOriginMethod",Pg="\0__throttleRate",Dg="\0__throttleType";function Lg(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}function p(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];r=(new Date).getTime(),o=this,a=t;var f=s||e,d=s||n;s=null,i=r-(d?l:u)-f,clearTimeout(c),d?c=setTimeout(h,f):0<=i?h():c=setTimeout(h,-i),l=r}return e=e||0,p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function Eg(t,e,n,r){var i=t[e];if(i){var o=i[Og]||i,a=i[Dg];if(i[Pg]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=Lg(o,n,"debounce"===r))[Og]=o,i[Dg]=r,i[Pg]=n}}}function Rg(t,e){var n=t[e];n&&n[Og]&&(n.clear&&n.clear(),t[e]=n[Og])}var Ng=lo(),Bg={itemStyle:To(oh,!0),lineStyle:To(eh,!0)},jg={lineStyle:"stroke",itemStyle:"fill"};function Fg(t,e){return t=t.visualStyleMapper||Bg[e],t||(console.warn("Unknown style type '"+e+"'."),Bg.itemStyle)}function zg(t,e){return t=t.visualDrawType||jg[e],t||(console.warn("Unknown style type '"+e+"'."),"fill")}Io={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Fg(t,r)(i),a=(i=i.getShallow("decal"),i&&(n.setVisual("decal",i),i.dirty=!0),zg(t,r)),s=(i=o[a],U(i)?i:null);r="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!r||(i=t.getColorFromPalette(t.name,null,e.getSeriesCount()),o[a]||(o[a]=i,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||U(o.fill)?i:o.fill,o.stroke="auto"===o.stroke||U(o.stroke)?i:o.stroke),n.setVisual("style",o),n.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=C({},o);i[a]=s(r),e.setItemVisual(n,"style",i)}}}};var Hg=new ch,Vg=(Mc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,r,i;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=Fg(t,n),i=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var o=t.getRawDataItem(e);o&&o[n]&&(Hg.option=o[n],o=r(Hg),C(t.ensureUniqueItemVisual(e,"style"),o),Hg.option.decal&&(t.setItemVisual(e,"decal",Hg.option.decal),Hg.option.decal.dirty=!0),i in o)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Sh={performRawSeries:!0,overallReset:function(t){var e=yt();t.eachSeries((function(t){var n,r=t.getColorBy();t.isColorBySeries()||(r=t.type+"-"+r,(n=e.get(r))||e.set(r,n={}),Ng(t).scope=n)})),t.eachSeries((function(e){var n,r,i,o,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(n=e.getRawData(),r={},i=e.getData(),o=Ng(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=zg(e,a),i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a,l=r[t];i.getItemVisual(l,"colorFromPalette")&&(l=i.ensureUniqueItemVisual(l,"style"),t=n.getName(t)||t+"",a=n.count(),l[s]=e.getColorFromPalette(t,o,a))})))}))}},Math.PI);$g.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){t=t.overallTask,t&&t.dirty()}))},$g.prototype.getPerformArgs=function(t,e){var n,r;if(t.__pipeline)return r=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=r&&r.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},$g.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},$g.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=(e=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,t.get("large")&&r>=t.get("largeThreshold"));r="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:r,large:i}},$g.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=yt();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},$g.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;R(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{});at(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},$g.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},$g.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},$g.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},$g.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}R(t,(function(t,s){var l,u,c,h,p;r.visualType&&r.visualType!==t.visualType||(l=(u=o._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((h=u.agentStubMap).each((function(t){a(r,t)&&(t.dirty(),c=!0)})),c&&u.dirty(),o.updatePayload(u,n),p=o.getPerformArgs(u,r.block),h.each((function(t){t.perform(p)})),u.perform(p)&&(i=!0)):l&&l.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})))})),this.unfinished=i||this.unfinished},$g.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},$g.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())}))},$g.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},$g.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=yt(),s=(e=t.seriesType,t.getTargetSeries);function l(e){var s=e.uid;s=a.set(s,o&&o.get(s)||Qf({plan:Xg,reset:Zg,count:Qg}));s.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,s)}t.createOnAllSeries?n.eachRawSeries(l):e?n.eachRawSeriesByType(e,l):s&&s(n,r).each(l)},$g.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||Qf({reset:Wg}),a=(o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i},o.agentStubMap),s=o.agentStubMap=yt(),l=(e=t.seriesType,t.getTargetSeries),u=!0,c=!1;function h(t){var e=t.uid;e=s.set(e,a&&a.get(e)||(c=!0,Qf({reset:Gg,onDirty:Yg})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,i._pipe(t,e)}at(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,h):l?l(n,r).each(h):(u=!1,R(n.getSeries(),h)),c&&o.dirty()},$g.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},$g.wrapStageHandler=function(t,e){return(t=U(t)?{overallReset:t,seriesType:function(t){ty=null;try{t(ey,ny)}catch(t){}return ty}(t)}:t).uid=fh("stageHandler"),e&&(t.visualType=e),t};var Ug=$g;function $g(t,e,n,r){this._stageTaskMap=yt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}function Wg(t){t.overallReset(t.ecModel,t.api,t.payload)}function Gg(t){return t.overallProgress&&qg}function qg(){this.agent.dirty(),this.getDownstream().dirty()}function Yg(){this.agent&&this.agent.dirty()}function Xg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Zg(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Ji(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?N(t,(function(t,e){return Jg(e)})):Kg}var Kg=Jg(0);function Jg(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function Qg(t){return t.data.count()}var ty,ey={},ny={};function ry(t,e){for(var n in e.prototype)t[n]=bt}function iy(){return{axisLine:{lineStyle:{color:oy}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}ry(ey,$p),ry(ny,Xp),ey.eachSeriesByType=ey.eachRawSeriesByType=function(t){ty=t},ey.eachComponent=function(t){"series"===t.mainType&&t.subType&&(ty=t.subType)};rh=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],sh={color:rh,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],rh]};var oy="#B9B8CE",ay=(oh="#100C2A",eh=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],rh={darkMode:!0,color:eh,backgroundColor:oh,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:oy}},textStyle:{color:oy},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:oy}},dataZoom:{borderColor:"#71708A",textStyle:{color:oy},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:oy}},timeline:{lineStyle:{color:oy},label:{color:oy},controlStyle:{color:oy,borderColor:oy}},calendar:{itemStyle:{color:oh},dayLabel:{color:oy},monthLabel:{color:oy},yearLabel:{color:oy}},timeAxis:iy(),logAxis:iy(),valueAxis:iy(),categoryAxis:iy(),line:{symbol:"circle"},graph:{color:eh},gauge:{title:{color:oy},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:oy},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},rh.categoryAxis.splitLine.show=!1,sy.prototype.normalizeQuery=function(t){var e,n,r,i={},o={},a={};return $(t)?(e=xo(t),i.mainType=e.main||null,i.subType=e.sub||null):(n=["Index","Name","Id"],r={name:1,dataIndex:1,dataType:1},R(t,(function(t,e){for(var s=!1,l=0;l<n.length;l++){var u=n[l],c=e.lastIndexOf(u);0<c&&c===e.length-u.length&&"data"!==(c=e.slice(0,c))&&(i.mainType=c,i[u.toLowerCase()]=t,s=!0)}r.hasOwnProperty(e)&&(o[e]=t,s=!0),s||(a[e]=t)}))),{cptQuery:i,dataQuery:o,otherQuery:a}},sy.prototype.filter=function(t,e){var n,r,i,o,a,s=this.eventInfo;return!s||(n=s.targetEl,r=s.packedEvent,i=s.model,s=s.view,!i)||!s||(o=e.cptQuery,a=e.dataQuery,l(o,i,"mainType")&&l(o,i,"subType")&&l(o,i,"index","componentIndex")&&l(o,i,"name")&&l(o,i,"id")&&l(a,r,"name")&&l(a,r,"dataIndex")&&l(a,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,r)));function l(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},sy.prototype.afterTrigger=function(){this.eventInfo=null},sy);function sy(){}var ly=["symbol","symbolSize","symbolRotate","symbolOffset"],uy=ly.concat(["symbolKeepAspect"]);oh={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r,i={},o={},a=!1,s=0;s<ly.length;s++){var l=ly[s],u=t.get(l);U(u)?(a=!0,o[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(C({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t))return r=F(o),{dataEach:a?function(e,n){for(var i=t.getRawValue(n),a=t.getDataParams(n),s=0;s<r.length;s++){var l=r[s];e.setItemVisual(n,l,o[l](i,a))}}:null}}}},eh={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<uy.length;r++){var i=uy[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function cy(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e,r,a=t.seriesIndex,s=t.option.selectedMap,l=i.selected,u=0;u<l.length;u++)l[u].seriesIndex===a&&(r=so(e=t.getData(),i.fromActionPayload),n.trigger(o,{type:o,seriesId:t.id,name:V(r)?e.getName(r[0]):e.getName(r),selected:$(s)?s:C({},s)}))}))}function hy(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var py=Math.round(9*Math.random()),fy="function"==typeof Object.defineProperty,dy=(gy.prototype.get=function(t){return this._guard(t)[this._id]},gy.prototype.set=function(t,e){return t=this._guard(t),fy?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},gy.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},gy.prototype.has=function(t){return!!this._guard(t)[this._id]},gy.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},gy);function gy(){this._id="__ec_inner_"+py++}var yy=qa.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2;e=e.height/2;t.moveTo(n,r-e),t.lineTo(n+i,r+e),t.lineTo(n-i,r+e),t.closePath()}}),vy=qa.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2;e=e.height/2;t.moveTo(n,r-e),t.lineTo(n+i,r),t.lineTo(n,r+e),t.lineTo(n-i,r),t.closePath()}}),my=qa.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=(e=Math.max(i,e.height),i=i/2,i*i/(e-i)),a=(e=r-e+i+o,Math.asin(o/i)),s=Math.cos(a)*i,l=Math.sin(a),u=Math.cos(a),c=.6*i,h=.7*i;t.moveTo(n-s,e+o),t.arc(n,e,i,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*c,e+o+u*c,n,r-h,n,r),t.bezierCurveTo(n,r-h,n-s+l*c,e+o+u*c,n-s,e+o),t.closePath()}}),_y=qa.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x;e=e.y,r=r/3*2;t.moveTo(i,e),t.lineTo(i+r,e+n),t.lineTo(i,e+n/4*3),t.lineTo(i-r,e+n),t.lineTo(i,e),t.closePath()}}),xy={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){n=Math.min(n,r),i.x=t,i.y=e,i.width=n,i.height=n},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},by={},wy=(R({line:Au,rect:hs,roundRect:hs,square:hs,circle:Vl,diamond:vy,pin:my,arrow:_y,triangle:yy},(function(t,e){by[e]=new t})),qa.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){t=ai(t,e,n);var r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var r,i=e.symbolType;"none"!==i&&(r=(r=by[i])||by[i="rect"],xy[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}}));function Sy(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function ky(t,e,n,r,i,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?xc(t.slice(8),new Ee(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?_c(t.slice(7),{},new Ee(e,n,r,i),a?"center":"cover"):new wy({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=s,a.setColor=Sy,o&&a.setColor(o),a}function My(t,e){if(null!=t)return[Pi((t=V(t)?t:[t,t])[0],e[0])||0,Pi(nt(t[1],t[0]),e[1])||0]}function Ay(t){return isFinite(t)}function Ty(t,e,n){for(var r,i,o,a,s,l,u,c,h,p="radial"===e.type?(r=t,i=e,a=(o=n).width,s=o.height,l=Math.min(a,s),u=null==i.x?.5:i.x,c=null==i.y?.5:i.y,h=null==i.r?.5:i.r,i.global||(u=u*a+o.x,c=c*s+o.y,h*=l),u=Ay(u)?u:.5,c=Ay(c)?c:.5,h=0<=h&&Ay(h)?h:.5,r.createRadialGradient(u,c,0,u,c,h)):(i=t,a=n,o=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,r=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(o=o*a.width+a.x,l=l*a.width+a.x,r=r*a.height+a.y,u=u*a.height+a.y),o=Ay(o)?o:0,l=Ay(l)?l:1,r=Ay(r)?r:0,u=Ay(u)?u:0,i.createLinearGradient(o,r,l,u)),f=e.colorStops,d=0;d<f.length;d++)p.addColorStop(f[d].offset,f[d].color);return p}function Cy(t){return parseInt(t,10)}function Iy(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e];e=["paddingRight","paddingBottom"][e];return null!=n[r]&&"auto"!==n[r]?parseFloat(n[r]):(n=document.defaultView.getComputedStyle(t),(t[i]||Cy(n[r])||Cy(t.style[r]))-(Cy(n[o])||0)-(Cy(n[e])||0)|0)}function Oy(t){var e,n=t.style,r=n.lineDash&&0<n.lineWidth&&(i=n.lineDash,r=n.lineWidth,i&&"solid"!==i&&0<r?"dashed"===i?[4*r,2*r]:"dotted"===i?[r]:G(i)?[i]:V(i)?i:null:null),i=n.lineDashOffset;return r&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(r=N(r,(function(t){return t/e})),i/=e),[r,i]}var Py=new Ia(!0);function Dy(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function Ly(t){return"string"==typeof t&&"none"!==t}function Ey(t){return t=t.fill,null!=t&&"none"!==t}function Ry(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function Ny(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function By(t,e,n){n=Do(e.image,e.__image,n);if(Eo(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*wt),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var jy=["shadowBlur","shadowOffsetX","shadowOffsetY"],Fy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zy(t,e,n,r,i){var o,a=!1;if(!r&&e===(n=n||{}))return!1;!r&&e.opacity===n.opacity||(Uy(t,i),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?qo.opacity:o),!r&&e.blend===n.blend||(a||(Uy(t,i),a=!0),t.globalCompositeOperation=e.blend||qo.blend);for(var s=0;s<jy.length;s++){var l=jy[s];!r&&e[l]===n[l]||(a||(Uy(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return!r&&e.shadowColor===n.shadowColor||(a||(Uy(t,i),a=!0),t.shadowColor=e.shadowColor||qo.shadowColor),a}function Hy(t,e,n,r,i){var o=$y(e,i.inHover),a=r?null:n&&$y(n,i.inHover)||{};if(o!==a){var s=zy(t,o,a,r,i);(r||o.fill!==a.fill)&&(s||(Uy(t,i),s=!0),Ly(o.fill))&&(t.fillStyle=o.fill),(r||o.stroke!==a.stroke)&&(s||(Uy(t,i),s=!0),Ly(o.stroke))&&(t.strokeStyle=o.stroke),!r&&o.opacity===a.opacity||(s||(Uy(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(Uy(t,i),s=!0),t.lineWidth=n);for(var l=0;l<Fy.length;l++){var u=Fy[l],c=u[0];!r&&o[c]===a[c]||(s||(Uy(t,i),s=!0),t[c]=o[c]||u[1])}}}function Vy(t,e){e=e.transform;var n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}function Uy(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function $y(t,e){return e&&t.__hoverStyle||t.style}function Wy(t,e){Gy(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Gy(t,e,n,r){var i=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(!a||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(o,a)){if(a&&a.length&&(Uy(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){Uy(t,n),t.save();for(var c=o,h=t,p=(a=n,!1),f=0;f<c.length;f++){var d=c[f];p=p||d.isZeroArea();Vy(h,d),h.beginPath(),d.buildPath(h,d.shape),h.clip()}a.allClipped=p,s=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();a=n.prevEl;var g,y,v,m,_,x,b,w,S,k,M,A,T,C,I,O,P,D,L,E,R,N,B,j=(a||(l=s=!0),e instanceof qa&&e.autoBatch&&(o=e.style,j=Ey(o),g=Dy(o),!(o.lineDash||!(+j^+g)||j&&"string"!=typeof o.fill||g&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1)));s=(s||(g=i,o=a.transform,g&&o?g[0]!==o[0]||g[1]!==o[1]||g[2]!==o[2]||g[3]!==o[3]||g[4]!==o[4]||g[5]!==o[5]:g||o)?(Uy(t,n),Vy(t,e)):j||Uy(t,n),$y(e,n.inHover));if(e instanceof qa)1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Hy(t,e,a,l,n),j&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,o=e,U=j,I=Dy(m=s),O=Ey(m),P=m.strokePercent,D=P<1,L=!o.path,o.silent&&!D||!L||o.createPathProxy(),E=o.path||Py,R=o.__dirty,U||(_=m.fill,B=m.stroke,x=O&&!!_.colorStops,b=I&&!!B.colorStops,w=O&&!!_.image,S=I&&!!B.image,N=T=A=M=k=void 0,(x||b)&&(N=o.getBoundingRect()),x&&(k=R?Ty(i,_,N):o.__canvasFillGradient,o.__canvasFillGradient=k),b&&(M=R?Ty(i,B,N):o.__canvasStrokeGradient,o.__canvasStrokeGradient=M),w&&(A=R||!o.__canvasFillPattern?By(i,_,o):o.__canvasFillPattern,o.__canvasFillPattern=A),S&&(T=R||!o.__canvasStrokePattern?By(i,B,o):o.__canvasStrokePattern,o.__canvasStrokePattern=A),x?i.fillStyle=k:w&&(A?i.fillStyle=A:O=!1),b?i.strokeStyle=M:S&&(T?i.strokeStyle=T:I=!1)),N=o.getGlobalScale(),E.setScale(N[0],N[1],o.segmentIgnoreThreshold),i.setLineDash&&m.lineDash&&(C=(_=Oy(o))[0],V=_[1]),B=!0,(L||4&R)&&(E.setDPR(i.dpr),D?E.setContext(null):(E.setContext(i),B=!1),E.reset(),o.buildPath(E,o.shape,U),E.toStatic(),o.pathUpdated()),B&&E.rebuildPath(i,D?P:1),C&&(i.setLineDash(C),i.lineDashOffset=V),U||(m.strokeFirst?(I&&Ny(i,m),O&&Ry(i,m)):(O&&Ry(i,m),I&&Ny(i,m))),C&&i.setLineDash([]),j&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(e instanceof Ka)3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Hy(t,e,a,l,n),x=t,k=e,null!=(A=(w=s).text)&&(A+=""),A&&(x.font=w.font||u,x.textAlign=w.textAlign,x.textBaseline=w.textBaseline,M=b=void 0,x.setLineDash&&w.lineDash&&(b=(k=Oy(k))[0],M=k[1]),b&&(x.setLineDash(b),x.lineDashOffset=M),w.strokeFirst?(Dy(w)&&x.strokeText(A,w.x,w.y),Ey(w)&&x.fillText(A,w.x,w.y)):(Ey(w)&&x.fillText(A,w.x,w.y),Dy(w)&&x.strokeText(A,w.x,w.y)),b)&&x.setLineDash([]);else if(e instanceof ns)2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),S=a,T=l,zy(t,$y(e,(N=n).inHover),S&&$y(S,N.inHover),T,N),_=t,L=s,(o=(R=e).__image=Do(L.image,R.__image,R,R.onload))&&Eo(o)&&(B=L.x||0,E=L.y||0,D=R.getWidth(),R=R.getHeight(),P=o.width/o.height,null==D&&null!=R?D=R*P:null==R&&null!=D?R=D/P:null==D&&null==R&&(D=o.width,R=o.height),L.sWidth&&L.sHeight?(y=L.sx||0,v=L.sy||0,_.drawImage(o,y,v,L.sWidth,L.sHeight,B,E,D,R)):L.sx&&L.sy?(y=L.sx,v=L.sy,_.drawImage(o,y,v,D-y,R-v,B,E,D,R)):_.drawImage(o,B,E,D,R));else if(e.getTemporalDisplayables){4!==n.lastDrawType&&(l=!0,n.lastDrawType=4);var F,z,H=t,V=e,U=n,$=V.getDisplayables(),W=V.getTemporalDisplayables(),G=(H.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:U.viewWidth,viewHeight:U.viewHeight,inHover:U.inHover});for(F=V.getCursor(),z=$.length;F<z;F++)(q=$[F]).beforeBrush&&q.beforeBrush(),q.innerBeforeBrush(),Gy(H,q,G,F===z-1),q.innerAfterBrush(),q.afterBrush&&q.afterBrush(),G.prevEl=q;for(var q,Y=0,X=W.length;Y<X;Y++)(q=W[Y]).beforeBrush&&q.beforeBrush(),q.innerBeforeBrush(),Gy(H,q,G,Y===X-1),q.innerAfterBrush(),q.afterBrush&&q.afterBrush(),G.prevEl=q;V.clearTemporalDisplayables(),V.notClear=!0,H.restore()}j&&r&&Uy(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=-2,e.__isRendered=!1}var qy=new dy,Yy=new Ln(100),Xy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Zy(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&qy.delete(t),e=qy.get(t);if(e)return e;for(var o,a=I(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),l=(e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),e),u=[n],c=!0,p=0;p<Xy.length;++p){var f=a[Xy[p]];if(null!=f&&!V(f)&&!$(f)&&!G(f)&&"boolean"!=typeof f){c=!1;break}u.push(f)}c&&(o=u.join(",")+(i?"-svg":""),x=Yy.get(o))&&(i?l.svgElement=x:l.image=x);var d,g=function t(e){if(!e||0===e.length)return[[0,0]];if(G(e))return[[o=Math.ceil(e),o]];for(var n=!0,r=0;r<e.length;++r)if(!G(e[r])){n=!1;break}if(n)return t([e]);var i=[];for(r=0;r<e.length;++r){var o;G(e[r])?(o=Math.ceil(e[r]),i.push([o,o])):(o=N(e[r],(function(t){return Math.ceil(t)}))).length%2==1?i.push(o.concat(o)):i.push(o)}return i}(a.dashArrayX),y=function(t){if(!t||"object"==s(t)&&0===t.length)return[0,0];if(G(t))return[e=Math.ceil(t),e];var e=N(t,(function(t){return Math.ceil(t)}));return t.length%2?e.concat(e):e}(a.dashArrayY),v=function t(e){if(!e||0===e.length)return[["rect"]];if($(e))return[[e]];for(var n=!0,r=0;r<e.length;++r)if(!$(e[r])){n=!1;break}if(n)return t([e]);var i=[];for(r=0;r<e.length;++r)$(e[r])?i.push([e[r]]):i.push(e[r]);return i}(a.symbol),m=function(t){return N(t,Ky)}(g),_=Ky(y),x=!i&&h.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=function(){for(var t=1,e=0,n=m.length;e<n;++e)t=Yi(t,m[e]);var r=1;for(e=0,n=v.length;e<n;++e)r=Yi(r,v[e].length);t*=r;var i=_*m.length*v.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();x&&(x.width=w.width*n,x.height=w.height*n,d=x.getContext("2d")),d&&(d.clearRect(0,0,x.width,x.height),a.backgroundColor)&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,x.width,x.height));for(var S=0,k=0;k<y.length;++k)S+=y[k];if(!(S<=0))for(var M=-_,A=0,T=0,C=0;M<w.height;){if(A%2==0){for(var O=T/2%v.length,P=0,D=0,L=0;P<2*w.width;){var E,R,B,j,F,z=0;for(k=0;k<g[C].length;++k)z+=g[C][k];if(z<=0)break;D%2==0&&(R=.5*(1-a.symbolSize),E=P+g[C][D]*R,R=M+y[A]*R,B=g[C][D]*a.symbolSize,j=y[A]*a.symbolSize,F=L/2%v[O].length,function(t,e,o,s,l){var u=i?1:n;l=ky(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);i?(t=r.painter.renderOneToVNode(l))&&b.children.push(t):Wy(d,l)}(E,R,B,j,v[O][F])),P+=g[C][D],++L,++D===g[C].length&&(D=0)}++C===g.length&&(C=0)}M+=y[A],++T,++A===y.length&&(A=0)}return c&&Yy.put(o,x||b),l.image=x,l.svgElement=b,l.svgWidth=w.width,l.svgHeight=w.height,e.rotation=a.rotation,e.scaleX=e.scaleY=i?1:1/n,qy.set(t,e),t.dirty=!1,e}function Ky(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Jy=new $t,Qy={},tv=(vy={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}},"__flagInMainProcess"),ev="__pendingUpdate",nv="__needsUpdateStatus",rv=/^[a-zA-Z0-9_]+$/,iv="__connectUpdateStatus";function ov(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return sv(this,t,e);this.id}}function av(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return sv(this,t,e)}}function sv(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),$t.prototype[e].apply(t,n)}n(cv,lv=$t);var lv,uv=cv;function cv(){return null!==lv&&lv.apply(this,arguments)||this}my=uv.prototype;var hv,pv,fv,dv,gv,yv,vv,mv,_v,xv,bv,wv,Sv,kv,Mv,Av,Tv,Cv,Iv,Ov=(my.on=av("on"),my.off=av("off"),n(Pv,Iv=$t),Pv.prototype._onframe=function(){if(!this._disposed){Cv(this);var t=this._scheduler;if(this[ev]){var e=this[ev].silent;this[tv]=!0;try{hv(this),dv.update.call(this,null,this[ev].updateParams)}catch(t){throw this[tv]=!1,this[ev]=null,t}this._zr.flush(),this[tv]=!1,this[ev]=null,mv.call(this,e),_v.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(r),t.performDataProcessorTasks(r),yv(this,r),t.performVisualTasks(r),kv(this,this._model,i,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},Pv.prototype.getDom=function(){return this._dom},Pv.prototype.getId=function(){return this.id},Pv.prototype.getZr=function(){return this._zr},Pv.prototype.isSSR=function(){return this._ssr},Pv.prototype.setOption=function(t,e,n){if(!this[tv])if(this._disposed)this.id;else{q(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[tv]=!0,this._model&&!e||(e=new ef(this._api),a=this._theme,(s=this._model=new $p).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:i},Hv);var r,i,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[ev]={silent:r,updateParams:s},this[tv]=!1,this.getZr().wakeUp();else{try{hv(this),dv.update.call(this,null,s)}catch(t){throw this[ev]=null,this[tv]=!1,t}this._ssr||this._zr.flush(),this[ev]=null,this[tv]=!1,mv.call(this,r),_v.call(this,r)}}},Pv.prototype.setTheme=function(){},Pv.prototype.getModel=function(){return this._model},Pv.prototype.getOption=function(){return this._model&&this._model.getOption()},Pv.prototype.getWidth=function(){return this._zr.getWidth()},Pv.prototype.getHeight=function(){return this._zr.getHeight()},Pv.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||o.hasGlobalWindow&&window.devicePixelRatio||1},Pv.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},Pv.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},Pv.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},Pv.prototype.getSvgDataURL=function(){var t;if(o.svgSupported)return R((t=this._zr).storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()},Pv.prototype.getDataURL=function(t){var e,n,r,i;if(!this._disposed)return i=(t=t||{}).excludeComponents,e=this._model,n=[],r=this,R(i,(function(t){e.eachComponent({mainType:t},(function(t){t=r._componentsMap[t.__viewId],t.group.ignore||(n.push(t),t.group.ignore=!0)}))})),i="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),R(n,(function(t){t.group.ignore=!1})),i;this.id},Pv.prototype.getConnectedDataURL=function(t){var e,n,r,i,o,a,s,l,u,c,p,f,d,g,y;if(!this._disposed)return e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,Gv[n]?(a=o=1/0,l=s=-1/0,u=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),R(Wv,(function(c,h){var p;c.group===n&&(p=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(A(t)),c=c.getDom().getBoundingClientRect(),o=r(c.left,o),a=r(c.top,a),s=i(c.right,s),l=i(c.bottom,l),u.push({dom:p,left:c.left,top:c.top}))})),p=(s*=c)-(o*=c),f=(l*=c)-(a*=c),d=h.createCanvas(),(g=Ai(d,{renderer:e?"svg":"canvas"})).resize({width:p,height:f}),e?(y="",R(u,(function(t){var e=t.left-o,n=t.top-a;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(t.connectedBackgroundColor&&g.add(new hs({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),R(u,(function(t){t=new ns({style:{x:t.left*c-o,y:t.top*c-a,image:t.dom}}),g.add(t)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},Pv.prototype.convertToPixel=function(t,e){return gv(this,"convertToPixel",t,e)},Pv.prototype.convertFromPixel=function(t,e){return gv(this,"convertFromPixel",t,e)},Pv.prototype.containPixel=function(t,e){var n;if(!this._disposed)return R(co(this._model,t),(function(t,r){0<=r.indexOf("Models")&&R(t,(function(t){var i=t.coordinateSystem;i&&i.containPoint?n=n||!!i.containPoint(e):"seriesModels"===r&&(i=this._chartsMap[t.__viewId])&&i.containPoint&&(n=n||i.containPoint(e,t))}),this)}),this),!!n;this.id},Pv.prototype.getVisual=function(t,e){t=co(this._model,t,{defaultMainType:"series"});var n=t.seriesModel.getData();t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var r=n,i=t,o=e;switch(o){case"color":return r.getItemVisual(i,"style")[r.getVisual("drawType")];case"opacity":return r.getItemVisual(i,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(i,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},Pv.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Pv.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},Pv.prototype._initEvents=function(){var t,e,n,r=this;R(Bv,(function(t){function e(e){var n,i,o,a=r.getModel(),s=e.target;"globalout"===t?n={}:s&&hy(s,(function(t){var e;t=Cs(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,s)||{},1):t.eventData&&(n=C({},t.eventData),1)}),!0),n&&(i=n.componentType,o=n.componentIndex,"markLine"!==i&&"markPoint"!==i&&"markArea"!==i||(i="series",o=n.seriesIndex),o=(i=i&&null!=o&&a.getComponent(i,o))&&r["series"===i.mainType?"_chartsMap":"_componentsMap"][i.__viewId],n.event=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:i,view:o},r.trigger(t,n))}e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)})),R(Fv,(function(t,e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),R(["selectchanged"],(function(t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(cy("map","selectchanged",e,r,t),cy("pie","selectchanged",e,r,t)):"select"===t.fromAction?(cy("map","selected",e,r,t),cy("pie","selected",e,r,t)):"unselect"===t.fromAction&&(cy("map","unselected",e,r,t),cy("pie","unselected",e,r,t))}))},Pv.prototype.isDisposed=function(){return this._disposed},Pv.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},Pv.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&yo(this.getDom(),Xv,""),e=(t=this)._api,n=t._model,R(t._componentsViews,(function(t){t.dispose(n,e)})),R(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Wv[t.id])},Pv.prototype.resize=function(t){if(!this[tv])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){e=e.resetOption("media");var n=t&&t.silent;this[ev]&&(null==n&&(n=this[ev].silent),e=!0,this[ev]=null),this[tv]=!0;try{e&&hv(this),dv.update.call(this,{type:"resize",animation:C({duration:0},t&&t.animation)})}catch(t){throw this[tv]=!1,t}this[tv]=!1,mv.call(this,n),_v.call(this,n)}}},Pv.prototype.showLoading=function(t,e){this._disposed?this.id:(q(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),$v[t]&&(t=$v[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},Pv.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},Pv.prototype.makeActionFromEvent=function(t){var e=C({},t);return e.type=Fv[t.type],e},Pv.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(q(e)||(e={silent:!!e}),jv[t.type]&&this._model&&(this[tv]?this._pendingActions.push(t):(n=e.silent,vv.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&o.browser.weChat&&this._throttledZrFlush(),mv.call(this,n),_v.call(this,n))))},Pv.prototype.updateLabelLayout=function(){Jy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},Pv.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},Pv.internalField=(hv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),pv(t,!0),pv(t,!1),e.plan()},pv=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l,u=t.__requireNewView,c=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type);u=!u&&o[c];u||(l=xo(t.type),(u=new(e?mg.getClass(l.main,l.sub):Sg.getClass(l.sub))).init(n,s),o[c]=u,i.push(u),a.add(u.group)),t.__viewId=u.__id=c,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(u,t,n,s)}for(e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u),l=0;l<i.length;){var c=i[l];c.__alive?l++:(e||c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},fv=function(t,e,n,r,i){var o,a,s=t._model;function l(r){r&&r.__alive&&r[e]&&r[e](r.__model,s,t._api,n)}s.setUpdatePayload(n),r?((o={})[r+"Id"]=n[r+"Id"],o[r+"Index"]=n[r+"Index"],o[r+"Name"]=n[r+"Name"],o={mainType:r,query:o},i&&(o.subType=i),null!=(i=n.excludeSeriesId)&&(a=yt(),R(Ji(i),(function(t){t=io(t,null),null!=t&&a.set(t,!0)}))),s&&s.eachComponent(o,(function(e){var r,i,o=a&&null!=a.get(e.id);if(!o)if(xl(n))if(e instanceof ug){if(n.type===Rs&&!n.notBlur&&!e.get(["emphasis","disabled"])){o=e;var s=n,l=t._api,u=o.seriesIndex,c=o.getData(s.dataType);if(c){s=(V(s=so(c,s))?s[0]:s)||0;var h=c.getItemGraphicEl(s);if(!h)for(var p=c.count(),f=0;!h&&f<p;)h=c.getItemGraphicEl(f++);h?ll(u,(s=Cs(h)).focus,s.blurScope,l):(s=o.get(["emphasis","focus"]),o=o.get(["emphasis","blurScope"]),null!=s&&ll(u,s,o,l))}}}else u=cl(e.mainType,e.componentIndex,n.name,t._api),s=u.focusSelf,o=u.dispatchers,n.type===Rs&&s&&!n.notBlur&&ul(e.mainType,e.componentIndex,t._api),o&&R(o,(function(t){(n.type===Rs?el:nl)(t)}));else _l(n)&&e instanceof ug&&(l=e,o=n,t._api,_l(o)&&(r=o.dataType,V(i=so(l.getData(r),o))||(i=[i]),l[o.type===Fs?"toggleSelect":o.type===Bs?"select":"unselect"](i,r)),hl(e),Tv(t))}),t),s&&s.eachComponent(o,(function(e){a&&null!=a.get(e.id)||l(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)):R([].concat(t._componentsViews).concat(t._chartsViews),l)},dv={prepareAndUpdate:function(t){hv(this),dv.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,r=this._api,i=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,r),a.performDataProcessorTasks(n,t),yv(this,n),o.update(n,r),Dv(n),a.performVisualTasks(n,t),wv(this,n,r,t,e),o=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),i.setBackgroundColor(o),null!=a&&"auto"!==a&&i.setDarkMode(a),Jy.trigger("afterupdate",n,r))},updateTransform:function(t){var e,n,r=this,i=this._model,o=this._api;i&&(i.setUpdatePayload(t),e=[],i.eachComponent((function(n,a){"series"!==n&&(n=r.getViewOfComponentModel(a))&&n.__alive&&(!n.updateTransform||(a=n.updateTransform(a,i,o,t))&&a.update)&&e.push(n)})),n=yt(),i.eachSeries((function(e){var a=r._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,i,o,t))&&a.update)&&n.set(e.uid,1)})),Dv(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:n}),kv(this,i,o,t,{},n),Jy.trigger("afterupdate",i,o))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Sg.markUpdateMethod(t,"updateView"),Dv(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),wv(this,e,this._api,t,{}),Jy.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries((function(t){t.getData().clearAllVisual()})),Sg.markUpdateMethod(t,"updateVisual"),Dv(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent((function(r,i){"series"!==r&&(r=e.getViewOfComponentModel(i))&&r.__alive&&r.updateVisual(i,n,e._api,t)})),n.eachSeries((function(r){e._chartsMap[r.__viewId].updateVisual(r,n,e._api,t)})),Jy.trigger("afterupdate",n,this._api))},updateLayout:function(t){dv.update.call(this,t)}},gv=function(t,e,n,r){if(t._disposed)t.id;else for(var i=t._model,o=t._coordSysMgr.getCoordinateSystems(),a=co(i,n),s=0;s<o.length;s++){var l=o[s];if(l[e]&&null!=(l=l[e](i,a,r)))return l}},yv=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},vv=function(t,e){var n,r,i=this,o=this.getModel(),a=t.type,s=t.escapeConnect,l=jv[a],u=l.actionInfo,c=(u.update||"update").split(":"),h=c.pop(),p=null!=c[0]&&xo(c[0]),f=(c=(this[tv]=!0,[t]),!1),d=(t.batch&&(f=!0,c=N(t.batch,(function(e){return(e=I(C({},e),t)).batch=null,e}))),[]),g=_l(t),y=xl(t);if(y&&sl(this._api),R(c,(function(e){var r,o;(n=(n=l.action(e,i._model,i._api))||C({},e)).type=u.event||n.type,d.push(n),y?(r=(o=ho(t)).queryOptionMap,o=o.mainTypeSpecified?r.keys()[0]:"series",fv(i,h,e,o),Tv(i)):g?(fv(i,h,e,"series"),Tv(i)):p&&fv(i,h,e,p.main,p.sub)})),"none"!==h&&!y&&!g&&!p)try{this[ev]?(hv(this),dv.update.call(this,t),this[ev]=null):dv[h].call(this,t)}catch(e){throw this[tv]=!1,e}n=f?{type:u.event||a,escapeConnect:s,batch:d}:d[0],this[tv]=!1,e||((c=this._messageCenter).trigger(n.type,n),g&&(f={type:"selectchanged",escapeConnect:s,selected:(r=[],o.eachSeries((function(t){R(t.getAllData(),(function(e){e.data;e=e.type;var n=t.getSelectedDataIndices();0<n.length&&(n={dataIndex:n,seriesIndex:t.seriesIndex},null!=e&&(n.dataType=e),r.push(n))}))})),r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},c.trigger(f.type,f)))},mv=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();vv.call(this,n,t)}},_v=function(t){t||this.trigger("updated")},xv=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[ev]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},bv=function(t,e){t.on("mouseover",(function(t){var n,r,i,o,a=hy(t.target,ml);a&&(a=a,n=t,t=e._api,r=Cs(a),i=(o=cl(r.componentMainType,r.componentIndex,r.componentHighDownName,t)).dispatchers,o=o.focusSelf,i?(o&&ul(r.componentMainType,r.componentIndex,t),R(i,(function(t){return Qs(t,n)}))):(ll(r.seriesIndex,r.focus,r.blurScope,t),"self"===r.focus&&ul(r.componentMainType,r.componentIndex,t),Qs(a,n)),Tv(e))})).on("mouseout",(function(t){var n,r,i=hy(t.target,ml);i&&(i=i,n=t,sl(t=e._api),(r=cl((r=Cs(i)).componentMainType,r.componentIndex,r.componentHighDownName,t).dispatchers)?R(r,(function(t){return tl(t,n)})):tl(i,n),Tv(e))})).on("click",(function(t){var n;t=hy(t.target,(function(t){return null!=Cs(t).dataIndex}),!0);t&&(n=t.selected?"unselect":"select",t=Cs(t),e._api.dispatchAction({type:n,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))}))},wv=function(t,e,n,r,i){var o,a,s,l,u,c,h;u=[],h=!(c=[]),(o=e).eachComponent((function(t,e){var n=e.get("zlevel")||0,r=e.get("z")||0,i=e.getZLevelKey();h=h||!!i,("series"===t?c:u).push({zlevel:n,z:r,idx:e.componentIndex,type:t,key:i})})),h&&(Je(a=u.concat(c),(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),R(a,(function(t){var e=o.getComponent(t.type,t.idx),n=t.zlevel;t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)}))),Sv(t,e,n,r,i),R(t._chartsViews,(function(t){t.__alive=!1})),kv(t,e,n,r,i),R(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},Sv=function(t,e,n,r,i,o){R(o||t._componentsViews,(function(t){var i=t.__model;Rv(0,t),t.render(i,e,n,r),Ev(i,t),Nv(i,t)}))},kv=function(t,e,n,r,i,a){var s,l,u,c,h=t._scheduler,p=(i=C(i||{},{updatedSeries:e.getSeries()}),Jy.trigger("series:beforeupdate",e,n,i),!1);e.eachSeries((function(e){var n,i=t._chartsMap[e.__viewId],o=(i.__alive=!0,i.renderTask);h.updatePayload(o,r),Rv(0,i),a&&a.get(e.uid)&&o.dirty(),o.perform(h.getPerformArgs(o))&&(p=!0),i.group.silent=!!e.get("silent"),o=i,n=e.get("blendMode")||null,o.eachRendered((function(t){t.isGroup||(t.style.blend=n)})),hl(e)})),h.unfinished=p||h.unfinished,Jy.trigger("series:layoutlabels",e,n,i),Jy.trigger("series:transition",e,n,i),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];Ev(e,n),Nv(e,n)})),l=e,u=(s=t)._zr.storage,c=0,u.traverse((function(t){t.isGroup||c++})),c>l.get("hoverLayerThreshold")&&!o.node&&!o.worker&&l.eachSeries((function(t){t.preventUsingHoverLayer||(t=s._chartsMap[t.__viewId]).__alive&&t.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))})),Jy.trigger("series:afterupdate",e,n,i)},Tv=function(t){t[nv]=!0,t.getZr().wakeUp()},Cv=function(t){t[nv]&&(t.getZr().storage.traverse((function(t){sc(t)||Lv(t)})),t[nv]=!1)},Mv=function(t){return n(e,r=Xp),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){el(e,n),Tv(t)},e.prototype.leaveEmphasis=function(e,n){nl(e,n),Tv(t)},e.prototype.enterBlur=function(e){Xs(e,$s),Tv(t)},e.prototype.leaveBlur=function(e){rl(e),Tv(t)},e.prototype.enterSelect=function(e){il(e),Tv(t)},e.prototype.leaveSelect=function(e){ol(e),Tv(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);function e(){return null!==r&&r.apply(this,arguments)||this}var r},void(Av=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][iv]=e}R(Fv,(function(n,r){t._messageCenter.on(r,(function(n){var r,i;!Gv[t.group]||0===t[iv]||n&&n.escapeConnect||(r=t.makeActionFromEvent(n),i=[],R(Wv,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),R(i,(function(t){1!==t[iv]&&t.dispatchAction(r)})),e(i,2))}))}))})),Pv);function Pv(t,e,n){var r=Iv.call(this,new ay)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},$(e)&&(e=Uv[e]),r._dom=t,n.ssr&&Ci((function(t){t=Cs(t);var e,n=t.dataIndex;if(null!=n)return(e=yt()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e})),t=r._zr=Ai(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:nt(n.useDirtyRect,!1),useCoarsePointer:nt(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize}),r._ssr=n.ssr,r._throttledZrFlush=Lg(z(t.flush,t),17),(e=A(e))&&bf(e,!0),r._theme=e,r._locale=$(e=n.locale||mh)?(n=yh[e.toUpperCase()]||{},"ZH"===e||"EN"===e?A(n):T(A(n),A(yh[gh]),!1)):T(A(e),A(yh[gh]),!1),r._coordSysMgr=new Jp,n=r._api=Mv(r);function i(t,e){return t.__prio-e.__prio}return Je(Vv,i),Je(zv,i),r._scheduler=new Ug(r,n,zv,Vv),r._messageCenter=new uv,r._initEvents(),r.resize=z(r.resize,r),t.animation.on("frame",r._onframe,r),xv(t,r),bv(t,r),ut(r),r}function Dv(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function Lv(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function Ev(t,e){var n,r;t.preventAutoZ||(n=t.get("z")||0,r=t.get("zlevel")||0,e.eachRendered((function(t){return function t(e,n,r,i){var o=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)i=Math.max(t(l[u],n,r,i),i);else e.z=n,e.zlevel=r,i=Math.max(e.z2,i);return o&&(o.z=n,o.zlevel=r,isFinite(i))&&(o.z2=i+2),a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=r,isFinite(i))&&(a.z2=i+(s&&s.showAbove?1:-1)),i}(t,n,r,-1/0),!0})))}function Rv(t,e){e.eachRendered((function(t){var e,n;sc(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))}))}function Nv(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),i=(t=n.get("duration"),0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null);e.eachRendered((function(t){var e,n,o;t.states&&t.states.emphasis&&(sc(t)||(t instanceof qa&&((o=Ps(n=t)).normalFill=n.style.fill,o.normalStroke=n.style.stroke,n=n.states.select||{},o.selectFill=n.style&&n.style.fill||null,o.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(o=t.prevStates)&&t.useStates(o),r&&(t.stateTransition=i,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=i),e)&&(e.stateTransition=i),t.__dirty&&Lv(t)))}))}_y=Ov.prototype;var Bv=(_y.on=ov("on"),_y.off=ov("off"),_y.one=function(t,e,n){var r=this;this.on.call(this,t,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}),n)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),jv={},Fv={},zv=[],Hv=[],Vv=[],Uv={},$v={},Wv={},Gv={},qv=+new Date,Yv=+new Date,Xv="_echarts_instance_";function Zv(t){Gv[t]=!1}function Kv(t){return Wv[(e=Xv,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function Jv(t,e){Uv[t]=e}function Qv(t){P(Hv,t)<0&&Hv.push(t)}function tm(t,e){um(zv,t,e,2e3)}function em(t){rm("afterinit",t)}function nm(t){rm("afterupdate",t)}function rm(t,e){Jy.on(t,e)}function im(t,e,n){U(e)&&(n=e,e="");var r=q(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,Fv[e]||(at(rv.test(r)&&rv.test(e)),jv[r]||(jv[r]={action:n,actionInfo:t}),Fv[e]=r)}function om(t,e){Jp.register(t,e)}function am(t,e){um(Vv,t,e,1e3,"layout")}function sm(t,e){um(Vv,t,e,3e3,"visual")}yy=Zv;var lm=[];function um(t,e,n,r,i){(U(e)||q(e))&&(n=e,e=r),0<=P(lm,n)||(lm.push(n),(r=Ug.wrapStageHandler(n,i)).__prio=e,r.__raw=n,t.push(r))}function cm(t,e){$v[t]=e}function hm(t,e,n){var r=Qy.registerMap;r&&r(t,e,n)}function pm(t){var e=(t=A(t)).type,n=(e||Xi(""),e.split(":")),r=(2!==n.length&&Xi(""),!1);"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,Td.set(e,t)}function fm(t){return null==t?0:t.length||1}function dm(t){return t}sm(2e3,Io),sm(4500,Mc),sm(4500,Sh),sm(2e3,oh),sm(4500,eh),sm(7e3,(function(t,e){t.eachRawSeries((function(n){var r;!t.isSeriesFiltered(n)&&((r=n.getData()).hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=Zy(n,e))})),n=r.getVisual("decal"))&&(r.getVisual("style").decal=Zy(n,e))}))})),Qv(bf),tm(900,(function(t){var e=yt();t.eachSeries((function(t){var n,r=t.get("stack");r&&(r=e.get(r)||e.set(r,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(r.length&&n.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(t))})),e.each(wf)})),cm("default",(function(t,e){I(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,r=new _i,i=new hs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=(r.add(i),new ys({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001})),a=new hs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return r.add(a),e.showSpinner&&((n=new Nu({shape:{startAngle:-Vg/2,endAngle:-Vg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Vg/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*Vg/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(r=(t.getWidth()-2*s-(e.showSpinner&&r?10:0)-r)/2-(e.showSpinner&&r?0:5+r/2)+(e.showSpinner?0:r/2)+(r?0:s),t.getHeight()/2);e.showSpinner&&n.setShape({cx:r,cy:l}),a.setShape({x:r-s,y:l-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r})),im({type:Rs,event:Rs,update:Rs},bt),im({type:Ns,event:Ns,update:Ns},bt),im({type:Bs,event:Bs,update:Bs},bt),im({type:js,event:js,update:js},bt),im({type:Fs,event:Fs,update:Fs},bt),Jv("light",sh),Jv("dark",rh),ym.prototype.add=function(t){return this._add=t,this},ym.prototype.update=function(t){return this._update=t,this},ym.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},ym.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},ym.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},ym.prototype.remove=function(t){return this._remove=t,this},ym.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},ym.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a,s=r[o],l=n[s],u=fm(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,o)):1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},ym.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=fm(l),h=fm(u);if(1<c&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&1<h)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(1<c&&1<h)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(1<c)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},ym.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=fm(i);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},ym.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[r](t[o],o);i||(n[o]=l),e&&(0===(s=fm(a=e[l]))?(e[l]=o,i&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var gm=ym;function ym(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||dm,this._newKeyGetter=r||dm,this.context=i,this._diffModeMultiple="multiple"===o}mm.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},mm.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var vm=mm;function mm(t,e){this._encode=t,this._schema=e}function _m(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var xm=function(t){this.otherDims={},null!=t&&C(this,t)},bm=lo(),wm={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Sm=(km.prototype.isDimensionOmitted=function(){return this._dimOmitted},km.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Tm(this.source))},km.prototype.getSourceDimensionIndex=function(t){return nt(this._dimNameMap.get(t),-1)},km.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},km.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Df(this.source),n=!(30<t),r="",i=[],o=0,a=0;o<t;o++){var s,l=void 0,u=void 0,c=void 0,h=this.dimensions[a];h&&h.storeDimIndex===o?(l=e?h.name:null,u=h.type,c=h.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,u=s.type),i.push({property:l,type:u,ordinalMeta:c}),!e||null==l||h&&h.isCalculationCoord||(r+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r=r+"$"+(wm[u]||"f"),c&&(r+=c.uid),r+="$"}var p=this.source;return{dimensions:i,hash:[p.seriesLayoutBy,p.startIndex,r].join("$$")}},km.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];i&&i.storeDimIndex===e?(i.isCalculationCoord||(r=i.name),n++):(i=this.getSourceDimension(e))&&(r=i.name),t.push(r)}return t},km.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},km);function km(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Mm(t){return t instanceof Sm}function Am(t){for(var e=yt(),n=0;n<(t||[]).length;n++){var r=t[n];r=q(r)?r.name:r;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function Tm(t){var e=bm(t);return e.dimNameMap||(e.dimNameMap=Am(t.dimensionsDefine))}var Cm,Im,Om,Pm,Dm,Lm,Em,Rm=q,Nm=N,Bm="undefined"==typeof Int32Array?Array:Int32Array,jm=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Fm=["_approximateExtent"],zm=(Hm.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},Hm.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},Hm.prototype._recognizeDimIndex=function(t){if(G(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Hm.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Hm.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Hm.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},Hm.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Hm.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},Hm.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Hm.prototype.getStore=function(){return this._store},Hm.prototype.initData=function(t,e,n){var r,i,o=this;(r=t instanceof Bd?t:r)||(i=this.dimensions,t=Af(t)||E(t)?new Nf(t,i.length):t,r=new Bd,i=Nm(i,(function(t){return{type:o._dimInfos[t].type,property:t}})),r.initData(t,i,n)),this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=yt(),o=[],a=[],s={},l=(R(t.dimensions,(function(e){var n,l,u=t.getDimensionInfo(e),c=u.coordDim;c&&(n=u.coordDimIndex,_m(r,c)[n]=e,u.isExtraCoord||(i.set(c,1),"ordinal"!==(l=u.type)&&"time"!==l&&(o[0]=e),_m(s,c)[n]=t.getDimensionIndex(u.name)),u.defaultTooltip)&&a.push(e),_p.each((function(t,e){var n=_m(r,e);e=u.otherDims[e];null!=e&&!1!==e&&(n[e]=u.name)}))})),[]),u={},c=(i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=N(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u,r.label);return c&&c.length&&(o=c.slice()),c=r.tooltip,c&&c.length?a=c.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new vm(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},Hm.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Hm.prototype.appendValues=function(t,e){t=this._store.appendValues(t,e.length);var n=t.start,r=t.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=n;o<r;o++)this._nameList[o]=e[o-n],i&&Em(this,o)},Hm.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},Hm.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==kp&&!t.fillStorage},Hm.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),r=(this._updateOrdinalMeta(),this._nameList),i=this._idList;if(n.getSource().sourceFormat===xp&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);this.hasItemOption||!q(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==r[a]&&null!=s&&(r[a]=io(s,null)),l=l.id,null==i[a])&&null!=l&&(i[a]=io(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)Em(this,a);Cm(this)}},Hm.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Hm.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Hm.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Hm.prototype.setCalculationInfo=function(t,e){Rm(t)?C(this._calculationInfo,t):this._calculationInfo[t]=e},Hm.prototype.getName=function(t){t=this.getRawIndex(t);var e=this._nameList[t];return null==(e=null==e&&null!=this._nameDimIdx?Om(this,this._nameDimIdx,t):e)?"":e},Hm.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Hm.prototype.getId=function(t){return Im(this,this.getRawIndex(t))},Hm.prototype.count=function(){return this._store.count()},Hm.prototype.get=function(t,e){var n=this._store;t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},Hm.prototype.getByRawIndex=function(t,e){var n=this._store;t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},Hm.prototype.getIndices=function(){return this._store.getIndices()},Hm.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Hm.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Hm.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Hm.prototype.getValues=function(t,e){var n=this,r=this._store;return V(t)?r.getValues(Nm(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},Hm.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},Hm.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},Hm.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Hm.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Hm.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Hm.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},Hm.prototype.each=function(t,e,n){U(t)&&(n=e,e=t,t=[]),n=n||this,t=Nm(Pm(t),this._getStoreDimIndex,this),this._store.each(t,n?z(e,n):e)},Hm.prototype.filterSelf=function(t,e,n){return U(t)&&(n=e,e=t,t=[]),n=n||this,t=Nm(Pm(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,n?z(e,n):e),this},Hm.prototype.selectRange=function(t){var e=this,n={};return R(F(t),(function(r){var i=e._getStoreDimIndex(r);n[i]=t[r]})),this._store=this._store.selectRange(n),this},Hm.prototype.mapArray=function(t,e,n){U(t)&&(n=e,e=t,t=[]);var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n=n||this),r},Hm.prototype.map=function(t,e,n,r){return n=n||r||this,r=Nm(Pm(t),this._getStoreDimIndex,this),t=Lm(this),t._store=this._store.map(r,n?z(e,n):e),t},Hm.prototype.modify=function(t,e,n,r){n=n||r||this,r=Nm(Pm(t),this._getStoreDimIndex,this),this._store.modify(r,n?z(e,n):e)},Hm.prototype.downSample=function(t,e,n,r){var i=Lm(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},Hm.prototype.lttbDownSample=function(t,e){var n=Lm(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},Hm.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Hm.prototype.getItemModel=function(t){var e=this.hostModel;t=this.getRawDataItem(t);return new ch(t,e,e&&e.ecModel)},Hm.prototype.diff=function(t){var e=this;return new gm(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return Im(t,e)}),(function(t){return Im(e,t)}))},Hm.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Hm.prototype.setVisual=function(t,e){this._visual=this._visual||{},Rm(t)?C(this._visual,t):this._visual[t]=e},Hm.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Hm.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Hm.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];n=(r=r||(n[t]={}))[e];return null==n&&(V(n=this.getVisual(e))?n=n.slice():Rm(n)&&(n=C({},n)),r[e]=n),n},Hm.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Rm(e)?C(r,e):r[e]=n},Hm.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Hm.prototype.setLayout=function(t,e){Rm(t)?C(this._layout,t):this._layout[t]=e},Hm.prototype.getLayout=function(t){return this._layout[t]},Hm.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Hm.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?C(this._itemLayouts[t]||{},e):e},Hm.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Hm.prototype.setItemGraphicEl=function(t,e){var n,r,i,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,r=this.dataType,i=t,(a=e)&&((o=Cs(a)).dataIndex=i,o.dataType=r,o.seriesIndex=n,o.ssrType="chart","group"===a.type)&&a.traverse((function(t){t=Cs(t),t.seriesIndex=n,t.dataIndex=i,t.dataType=r,t.ssrType="chart"})),this._graphicEls[t]=e},Hm.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Hm.prototype.eachItemGraphicEl=function(t,e){R(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},Hm.prototype.cloneShallow=function(t){return t=t||new Hm(this._schema||Nm(this.dimensions,this._getDimInfo,this),this.hostModel),Dm(t,this),t._store=this._store,t},Hm.prototype.wrapMethod=function(t,e){var n=this[t];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(it(arguments)))})},Hm.internalField=(Cm=function(t){var e=t._invertedIndicesMap;R(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new Bm(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},Om=function(t,e,n){return io(t._getCategory(e,n),null)},Im=function(t,e){var n=t._idList[e];return null==(n=null==n&&null!=t._idDimIdx?Om(t,t._idDimIdx,e):n)?"e\0\0"+e:n},Pm=function(t){return V(t)?t:null!=t?[t]:[]},Lm=function(t){var e=new Hm(t._schema||Nm(t.dimensions,t._getDimInfo,t),t.hostModel);return Dm(e,t),e},Dm=function(t,e){R(jm.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,R(Fm,(function(n){t[n]=A(e[n])})),t._calculationInfo=C({},e._calculationInfo)},void(Em=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];null==a&&null!=i&&(n[e]=a=Om(t,i,e)),null==s&&null!=o&&(r[e]=s=Om(t,o,e)),null==s&&null!=a&&(s=a,1<(i=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+i),r[e]=s)})),Hm);function Hm(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,r,i=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),o=(Mm(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},c=0;c<n.length;c++){var h=n[c],p=(h=$(h)?new xm({name:h}):h instanceof xm?h:new xm(h),h.name),f=(h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0),h.otherDims=h.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(o[p]=h).createInvertedIndices&&(s[p]=[]),0===f.itemName&&(this._nameDimIdx=c),0===f.itemId&&(this._idDimIdx=c),i&&(h.storeDimIndex=c)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(r=this._dimIdxToName=yt(),R(a,(function(t){r.set(o[t].storeDimIndex,t)})))}function Vm(t,e){Af(t)||(t=Cf(t));for(var n,r,i=(e=e||{}).coordDimensions||[],o=e.dimensionsDefine||t.dimensionsDefine||[],a=yt(),s=[],l=(u=t,n=i,p=e.dimensionsCount,r=Math.max(u.dimensionsDetectedCount||1,n.length,o.length,p||0),R(n,(function(t){q(t)&&(t=t.dimsDef)&&(r=Math.max(r,t.length))})),r),u=e.canOmitUnusedDimensions&&30<l,c=o===t.dimensionsDefine,h=c?Tm(t):Am(o),p=e.encodeDefine,f=yt(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),d=new Dd(l),g=0;g<d.length;g++)d[g]=-1;function y(t){var e,n,r,i=d[t];return i<0?(e=q(e=o[t])?e:{name:e},n=new xm,null!=(r=e.name)&&null!=h.get(r)&&(n.name=n.displayName=r),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),d[t]=s.length,n.storeDimIndex=t,s.push(n),n):s[i]}if(!u)for(g=0;g<l;g++)y(g);f.each((function(t,e){var n;t=Ji(t).slice();1===t.length&&!$(t[0])&&t[0]<0?f.set(e,!1):(n=f.set(e,[]),R(t,(function(t,r){t=$(t)?h.get(t):t,null!=t&&t<l&&m(y(n[r]=t),e,r)})))}));var v=0;function m(t,e,n){null!=_p.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}R(i,(function(t){$(t)?(i=t,r={}):(i=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=C({},r)).ordinalMeta=t,e=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var e,n,r,i,o=f.get(i);if(!1!==o){if(!(o=Ji(o)).length)for(var a=0;a<(e&&e.length||1);a++){for(;v<l&&null!=y(v).coordDim;)v++;v<l&&o.push(v++)}R(o,(function(t,o){t=y(t),c&&null!=r.type&&(t.type=r.type),m(I(t,r),i,o),null==t.name&&e&&(q(o=e[o])||(o={name:o}),t.name=t.displayName=o.name,t.defaultTooltip=o.defaultTooltip),n&&I(t.otherDims,n)}))}}));var _=e.generateCoord,x=null!=(b=e.generateCoordCount),b=_?b||1:0,w=_||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)R(s,(function(t){S(t)})),s.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var k=0;k<l;k++){var M=y(k);null==M.coordDim&&(M.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}(w,a,x),M.coordDimIndex=0,(!_||b<=0)&&(M.isExtraCoord=!0),b--),S(M),null!=M.type||Lp(t,k)!==Cp.Must&&(!M.isExtraCoord||null==M.otherDims.itemName&&null==M.otherDims.seriesName)||(M.type="ordinal")}for(var A=s,T=yt(),O=0;O<A.length;O++){var P=A[O],D=P.name,L=T.get(D)||0;0<L&&(P.name=D+(L-1)),L++,T.set(D,L)}return new Sm({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var Um=function(t){this.coordSysDims=[],this.axisMap=yt(),this.categoryAxisMap=yt(),this.coordSysName=t},$m={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",po).models[0];t=t.getReferringComponents("yAxis",po).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",t),Wm(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Wm(t)&&(r.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,r){t=t.getReferringComponents("singleAxis",po).models[0],e.coordSysDims=["single"],n.set("single",t),Wm(t)&&(r.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){t=t.getReferringComponents("polar",po).models[0];var i=t.findAxisModel("radiusAxis");t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",t),Wm(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Wm(t)&&(r.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=(t=i.getComponent("parallel",t.get("parallelIndex")),e.coordSysDims=t.dimensions.slice());R(t.parallelAxisIndex,(function(t,a){t=i.getComponent("parallelAxis",t);var s=o[a];n.set(s,t),Wm(t)&&(r.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)}))}};function Wm(t){return"category"===t.get("type")}function Gm(t,e,n){var r,i,o,a,s,l,u,c,h,p=(n=n||{}).byIndex,f=n.stackedCoordDimension,d=(Mm(e.schema)?(i=e.schema,r=i.dimensions,o=e.store):r=e,!(!t||!t.get("stack")));return R(r,(function(t,e){$(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||f&&f!==t.coordDim||(s=t))})),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),c=s.coordDim,n=s.type,h=0,R(r,(function(t){t.coordDim===c&&h++})),e={name:l,coordDim:c,coordDimIndex:h,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},t={name:u,coordDim:u,coordDimIndex:h+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1},i?(o&&(e.storeDimIndex=o.ensureCalculationDimension(u,n),t.storeDimIndex=o.ensureCalculationDimension(l,n)),i.appendCalculationDimension(e),i.appendCalculationDimension(t)):(r.push(e),r.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function qm(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ym(t,e){return qm(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Xm(t,e,n){n=n||{};var r,i,o,a,s,l,u=e.getSourceManager(),c=!1,h=(t=(t?(c=!0,r=Cf(t)):c=(r=u.getSource()).sourceFormat===xp,function(t){var e=t.get("coordinateSystem"),n=new Um(e);if(e=$m[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),i=t,h=(h=e).get("coordinateSystem"),h=Jp.get(h),p=(p=i&&i.coordSysDims?N(i.coordSysDims,(function(t){var e={name:t};t=i.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e})):p)||h&&(h.getDimensionsInfo?h.getDimensionsInfo():h.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,f=(p=U(p)?p:p?H(Op,h,e):null,h={coordDimensions:h,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!c},p=Vm(r,h),h=p.dimensions,o=n.createInvertedIndices,(a=t)&&R(h,(function(t,e){var n=t.coordDim;n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)})),l||null==s||(h[s].otherDims.itemName=0),s);n=c?null:u.getSharedDataStore(p),t=Gm(e,{schema:p,store:n}),h=new zm(p,e),h.setCalculationInfo(t),p=null==f||(u=r).sourceFormat!==xp||V(eo(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)};return h.hasItemOption=!1,h.initData(c?r:n,null,p),h}Km.prototype.getSetting=function(t){return this._setting[t]},Km.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Km.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Km.prototype.getExtent=function(){return this._extent.slice()},Km.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Km.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Km.prototype.isBlank=function(){return this._isBlank},Km.prototype.setBlank=function(t){this._isBlank=t};var Zm=Km;function Km(t){this._setting=t||{},this._extent=[1/0,-1/0]}Ao(Zm);var Jm=0,Qm=(t_.createByAxisModel=function(t){t=t.option;var e=t.data;e=e&&N(e,e_);return new t_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},t_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t_.prototype.parseAndCollect=function(t){var e,n,r=this._needCollect;return $(t)||r?(r&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(r?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},t_.prototype._getOrCreateMap=function(){return this._map||(this._map=yt(this.categories))},t_);function t_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Jm}function e_(t){return q(t)&&null!=t.value?t.value:t+""}function n_(t){return"interval"===t.type||"log"===t.type}function r_(t){var e=Math.pow(10,Ui(t));t/=e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Di(t*e)}function i_(t){return Ei(t)+2}function o_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function a_(t,e){return t>=e[0]&&t<=e[1]}function s_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function l_(t,e){return t*(e[1]-e[0])+e[0]}n(h_,u_=Zm),h_.prototype.parse=function(t){return null==t?NaN:$(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},h_.prototype.contain=function(t){return a_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},h_.prototype.normalize=function(t){return s_(t=this._getTickNumber(this.parse(t)),this._extent)},h_.prototype.scale=function(t){return t=Math.round(l_(t,this._extent)),this.getRawOrdinalNumber(t)},h_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},h_.prototype.getMinorTicks=function(t){},h_.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];r[n[i]=s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}},h_.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},h_.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},h_.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},h_.prototype.count=function(){return this._extent[1]-this._extent[0]+1},h_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},h_.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},h_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},h_.prototype.calcNiceTicks=function(){},h_.prototype.calcNiceExtent=function(){},h_.type="ordinal";var u_,c_=h_;function h_(t){t=u_.call(this,t)||this;var e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new Qm({}))&&(e=new Qm({categories:N(e,(function(t){return q(t)?t.value:t}))})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Zm.registerClass(c_);var p_,f_=Di,d_=(n(g_,p_=Zm),g_.prototype.parse=function(t){return t},g_.prototype.contain=function(t){return a_(t,this._extent)},g_.prototype.normalize=function(t){return s_(t,this._extent)},g_.prototype.scale=function(t){return l_(t,this._extent)},g_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},g_.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},g_.prototype.getInterval=function(){return this._interval},g_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=i_(t)},g_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(e){n[0]<r[0]&&o.push(t?{value:f_(r[0]-e,i)}:{value:n[0]});for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=f_(a+e,i))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:r[1];n[1]>s&&o.push(t?{value:f_(s+e,i)}:{value:n[1]})}return o},g_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=f_(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},g_.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Ei(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Wh(f_(t.value,e,!0)))},g_.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];isFinite(i)&&(i<0&&r.reverse(),i=function(t,e,n,r){var i={},o=t[1]-t[0];return o=i.interval=$i(o/e,!0),null!=n&&o<n&&(o=i.interval=n),null!=r&&r<o&&(o=i.interval=r),e=i.intervalPrecision=i_(o),n=i.niceTickExtent=[Di(Math.ceil(t[0]/o)*o,e),Di(Math.floor(t[1]/o)*o,e)],r=n,o=t,isFinite(r[0])||(r[0]=o[0]),isFinite(r[1])||(r[1]=o[1]),o_(r,0,o),o_(r,1,o),r[0]>r[1]&&(r[0]=r[1]),i}(r,t,e,n),this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent)},g_.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]);isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),n=this._interval;t.fixMin||(e[0]=f_(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=f_(Math.ceil(e[1]/n)*n))},g_.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},g_.type="interval",g_);function g_(){var t=null!==p_&&p_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}Zm.registerClass(d_);var y_="undefined"!=typeof Float32Array,v_=y_?Float32Array:Array;function m_(t){return V(t)?y_?new Float32Array(t):t:new v_(t)}function __(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function x_(t){return t.dim+t.index}function b_(t,e){var n=[];return e.eachSeriesByType(t,(function(t){k_(t)&&n.push(t)})),n}function w_(t){var e,n,r=function(t){var e,n={},r=(R(t,(function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type){t=t.getData();for(var r=e.dim+"_"+e.index,i=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),a=0,s=o.count();a<s;++a){var l=o.get(i,a);n[r]?n[r].push(l):n[r]=[l]}}})),{});for(e in n)if(n.hasOwnProperty(e)){var i=n[e];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];0<s&&(o=null===o?s:Math.min(o,s))}r[e]=o}}return r}(t),i=[];return R(t,(function(t){var e,n=t.coordinateSystem.getBaseAxis(),o=n.getExtent(),a=(e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(e=n.dim+"_"+n.index,e=r[e],a=Math.abs(o[1]-o[0]),s=n.scale.getExtent(),s=Math.abs(s[1]-s[0]),e?a/s*e:a):(s=t.getData(),Math.abs(o[1]-o[0])/s.count()),Pi(t.get("barWidth"),e)),s=(o=Pi(t.get("barMaxWidth"),e),Pi(t.get("barMinWidth")||(M_(t)?.5:1),e)),l=t.get("barGap"),u=t.get("barCategoryGap");i.push({bandWidth:e,barWidth:a,barMaxWidth:o,barMinWidth:s,barGap:l,barCategoryGap:u,axisKey:x_(n),stackId:__(t)})})),e={},R(i,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=(i=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},i.stacks),a=(r=(e[r]=i,t.stackId),o[r]||i.autoWidthCount++,o[r]=o[r]||{width:0,maxWidth:0},t.barWidth);a&&!o[r].width&&(o[r].width=a,a=Math.min(i.remainedWidth,a),i.remainedWidth-=a),a=t.barMaxWidth,a&&(o[r].maxWidth=a),a=t.barMinWidth,a&&(o[r].minWidth=a),o=t.barGap,null!=o&&(i.gap=o),r=t.barCategoryGap;null!=r&&(i.categoryGap=r)})),n={},R(e,(function(t,e){n[e]={};var r,i=t.stacks,o=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=F(i).length,a=Math.max(35-4*s,15)+"%"),Pi(a,o)),l=Pi(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l),p=(h=Math.max(h,0),R(i,(function(t){var e,n=t.maxWidth,r=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),r&&(e=Math.max(e,r)),t.width=e,u-=e+l*e,c--):(e=h,n&&n<e&&(e=Math.min(n,u)),(e=r&&e<r?r:e)!==h&&(t.width=e,u-=e+l*e,c--))})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0),0),f=(R(i,(function(t,e){t.width||(t.width=h),p+=(r=t).width*(1+l)})),r&&(p-=r.width*l),-p/2);R(i,(function(t,r){n[e][r]=n[e][r]||{bandWidth:o,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function S_(t,e){t=b_(t,e);var n=w_(t);R(t,(function(t){var e=t.getData(),r=t.coordinateSystem.getBaseAxis(),i=(t=__(t),r=n[x_(r)][t],t=r.offset,r.width);e.setLayout({bandWidth:r.bandWidth,offset:t,size:i})}))}function k_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function M_(t){return t.pipelineContext&&t.pipelineContext.large}n(C_,A_=d_),C_.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ih(t.value,kh[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ch(this._minLevelUnit))]||kh.second,e,this.getSetting("locale"))},C_.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale"),o=null;if($(n))o=n;else if(U(n))o=n(t.value,e,{level:t.level});else{var a=C({},wh);if(0<t.level)for(var s=0;s<Mh.length;++s)a[Mh[s]]="{primary|"+a[Mh[s]]+"}";var l=n?!1===n.inherit?n:I(n,a):a,u=Oh(t.value,r);if(l[u])o=l[u];else if(l.inherit){for(s=Ah.indexOf(u)-1;0<=s;--s)if(l[u]){o=l[u];break}o=o||a.none}V(o)&&(e=null==t.level?0:0<=t.level?t.level:o.length+t.level,o=o[e=Math.min(e,o.length-1)])}return Ih(new Date(t.value),o,r,i)},C_.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,n,r){var i=Ah,o=0;function a(t,i,o){var a=[],s=!i.length;if(!function(t,e,n,r){function i(t){return Ph(h,t,r)===Ph(p,t,r)}function o(){return i("year")}function a(){return o()&&i("month")}function s(){return a()&&i("day")}function l(){return s()&&i("hour")}function u(){return l()&&i("minute")}function c(){return u()&&i("second")}var h=Hi(e),p=Hi(n);switch(t){case"year":return o();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return c();case"millisecond":return c()&&i("millisecond")}}(Ch(t),r[0],r[1],n)){s&&(i=[{value:function(t,e,n){var r=new Date(t);switch(Ch(e)){case"year":case"month":r[Fh(n)](0);case"day":r[zh(n)](1);case"hour":r[Hh(n)](0);case"minute":r[Vh(n)](0);case"second":r[Uh(n)](0),r[$h(n)](0)}return r.getTime()}(new Date(r[0]),t,n)},{value:r[1]}]);for(var l,u,c=0;c<i.length-1;c++){var h=i[c].value,p=i[c+1].value;if(h!==p){var f=void 0,d=void 0,g=void 0;switch(t){case"year":f=Math.max(1,Math.round(e/bh/365)),d=Dh(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":u=e,f=6<(u/=30*bh)?6:3<u?3:2<u?2:1,d=Lh(n),g=Fh(n);break;case"week":case"half-week":case"day":u=e,f=16<(u/=bh)?16:7.5<u?7:3.5<u?4:1.5<u?2:1,d=Eh(n),g=zh(n);break;case"half-day":case"quarter-day":case"hour":l=e,f=12<(l/=xh)?12:6<l?6:3.5<l?4:2<l?2:1,d=Rh(n),g=Hh(n);break;case"minute":f=O_(e,!0),d=Nh(n),g=Vh(n);break;case"second":f=O_(e,!1),d=Bh(n),g=Uh(n);break;case"millisecond":f=$i(e,!0),d=jh(n),g=$h(n)}k=S=w=b=void 0;for(var y=f,v=h,m=p,_=d,x=g,b=a,w=new Date(v),S=v,k=w[_]();S<m&&S<=r[1];)b.push({value:S}),w[x](k+=y),S=w.getTime();b.push({value:S,notAdd:!0}),"year"===t&&1<o.length&&0===c&&o.unshift({value:o[0].value-f})}}for(c=0;c<a.length;c++)o.push(a[c])}}for(var s=[],l=[],u=0,c=0,h=0;h<i.length&&o++<1e4;++h){var p=Ch(i[h]);if(function(t){return t===Ch(t)}(i[h])){a(i[h],s[s.length-1]||[],l);var f=i[h+1]?Ch(i[h+1]):null;if(p!==f){if(l.length){c=u,l.sort((function(t,e){return t.value-e.value}));for(var d=[],g=0;g<l.length;++g){var y=l[g].value;0!==g&&l[g-1].value===y||(d.push(l[g]),y>=r[0]&&y<=r[1]&&u++)}if(p=(r[1]-r[0])/e,1.5*p<u&&p/1.5<c)break;if(s.push(d),p<u||t===i[h])break}l=[]}}}var v=j(N(s,(function(t){return j(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return 0<t.length})),m=[],_=v.length-1;for(h=0;h<v.length;++h)for(var x=v[h],b=0;b<x.length;++b)m.push({value:x[b].value,level:_-h});m.sort((function(t,e){return t.value-e.value}));var w=[];for(h=0;h<m.length;++h)0!==h&&m[h].value===m[h-1].value||w.push(m[h]);return w}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},C_.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=bh,n[1]+=bh),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-bh),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},C_.prototype.calcNiceTicks=function(t,e,n){var r=this._extent;r=r[1]-r[0],this._approxInterval=r/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),r=I_.length,t=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=1+i:r=i}return n}(I_,this._approxInterval,0,r),r-1);this._interval=I_[t][1],this._minLevelUnit=I_[Math.max(t-1,0)][0]},C_.prototype.parse=function(t){return G(t)?t:+Hi(t)},C_.prototype.contain=function(t){return a_(this.parse(t),this._extent)},C_.prototype.normalize=function(t){return s_(this.parse(t),this._extent)},C_.prototype.scale=function(t){return l_(t,this._extent)},C_.type="time";var A_,T_=C_;function C_(t){return t=A_.call(this,t)||this,t.type="time",t}var I_=[["second",1e3],["minute",6e4],["hour",xh],["quarter-day",6*xh],["half-day",12*xh],["day",1.2*bh],["half-week",3.5*bh],["week",7*bh],["month",31*bh],["quarter",95*bh],["half-year",So/2],["year",So]];function O_(t,e){return 30<(t/=e?6e4:1e3)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}Zm.registerClass(T_);var P_,D_=Zm.prototype,L_=d_.prototype,E_=Di,R_=Math.floor,N_=Math.ceil,B_=Math.pow,j_=Math.log,F_=(n(z_,P_=Zm),z_.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return N(L_.getTicks.call(this,t),(function(t){t=t.value;var e=Di(B_(this.base,t));e=t===n[0]&&this._fixMin?H_(e,r[0]):e;return{value:t===n[1]&&this._fixMax?H_(e,r[1]):e}}),this)},z_.prototype.setExtent=function(t,e){var n=j_(this.base);t=j_(Math.max(0,t))/n,e=j_(Math.max(0,e))/n,L_.setExtent.call(this,t,e)},z_.prototype.getExtent=function(){var t=this.base,e=D_.getExtent.call(this);return e[0]=B_(t,e[0]),e[1]=B_(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=H_(e[0],t[0])),this._fixMax&&(e[1]=H_(e[1],t[1])),e},z_.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=j_(t[0])/j_(e),t[1]=j_(t[1])/j_(e),D_.unionExtent.call(this,t)},z_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},z_.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var r=Vi(n);for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&0<Math.abs(r);)r*=10;t=[Di(N_(e[0]/r)*r),Di(R_(e[1]/r)*r)],this._interval=r,this._niceExtent=t}},z_.prototype.calcNiceExtent=function(t){L_.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},z_.prototype.parse=function(t){return t},z_.prototype.contain=function(t){return a_(t=j_(t)/j_(this.base),this._extent)},z_.prototype.normalize=function(t){return s_(t=j_(t)/j_(this.base),this._extent)},z_.prototype.scale=function(t){return t=l_(t,this._extent),B_(this.base,t)},z_.type="log",z_);function z_(){var t=null!==P_&&P_.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new d_,t._interval=0,t}function H_(t,e){return E_(t,Ei(e))}dy=F_.prototype,dy.getMinorTicks=L_.getMinorTicks,dy.getLabel=L_.getLabel,Zm.registerClass(F_),U_.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type,i=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0));U(i)?this._modelMinNum=q_(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=q_(t,i)),i=this._modelMaxRaw=e.get("max",!0);U(i)?this._modelMaxNum=q_(t,i({min:n[0],max:n[1]})):"dataMax"!==i&&(this._modelMaxNum=q_(t,i)),r?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=V(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[oi(t[0],1),oi(t[1],1)]},U_.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),e=tt(a)||tt(s)||t&&!r,this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),n=this._determinedMin,i=this._determinedMax;return null!=n&&(a=n,l=!0),null!=i&&(s=i,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},U_.prototype.modifyDataMinMax=function(t,e){this[W_[t]]=e},U_.prototype.setDeterminedMinMax=function(t,e){this[$_[t]]=e},U_.prototype.freeze=function(){this.frozen=!0};var V_=U_;function U_(t,e,n){this._prepareParams(t,e,n)}var $_={min:"_determinedMin",max:"_determinedMax"},W_={min:"_dataMin",max:"_dataMax"};function G_(t,e,n){var r=t.rawExtentInfo;return r||(r=new V_(t,e,n),t.rawExtentInfo=r),r}function q_(t,e){return null==e?null:tt(e)?NaN:t.parse(e)}function Y_(t,e){var n,r,i,o,a,s,l=t.type,u=G_(t,e,t.getExtent()).calculate(),c=(t=(t.setBlank(u.isBlank),u.min),u.max),h=e.ecModel;return h&&"time"===l&&(l=b_("bar",h),n=!1,R(l,(function(t){n=n||t.getBaseAxis()===e.axis})),n)&&(h=w_(l),l=t,r=c,h=h,s=(s=(i=e).axis.getExtent())[1]-s[0],void 0!==(h=function(t,e,n){if(t&&e)return t=t[x_(e)],t}(h,i.axis))&&(o=1/0,R(h,(function(t){o=Math.min(t.offset,o)})),a=-1/0,R(h,(function(t){a=Math.max(t.offset+t.width,a)})),o=Math.abs(o),a=Math.abs(a),r+=a/(i=o+a)*(s=(h=r-l)/(1-(o+a)/s)-h),l-=o/i*s),t=(h={min:l,max:r}).min,c=h.max),{extent:[t,c],fixMin:u.minFixed,fixMax:u.maxFixed}}function X_(t,e){var n=Y_(t,e),r=n.extent,i=e.get("splitNumber"),o=(t instanceof F_&&(t.base=e.get("logBase")),t.type),a=e.get("interval");o="interval"===o||"time"===o;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function Z_(t,e){if(e=e||t.get("type"))switch(e){case"category":return new c_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new T_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Zm.getClass(e)||d_)}}function K_(t){var e,n,r,i=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(r=i,function(e,n){return t.scale.getFormattedLabel(e,n,r)}):$(i)?(n=i,function(e){return e=t.scale.getLabel(e),n.replace("{value}",null!=e?e:"")}):U(i)?(e=i,function(n,r){return null!=o&&(r=n.value-o),e(J_(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function J_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Q_(t){return t=t.get("interval"),null==t?"auto":t}function tx(t){return"category"===t.type&&0===Q_(t.getLabelModel())}function ex(t,e){var n={};return R(t.mapDimensionsAll(e),(function(e){n[Ym(t,e)]=!0})),F(n)}rx.prototype.getNeedCrossZero=function(){return!this.option.scale},rx.prototype.getCoordSysModel=function(){};var nx=rx;function rx(){}my=Object.freeze({__proto__:null,createDimensions:function(t,e){return Vm(t,e).dimensions},createList:function(t){return Xm(null,t)},createScale:function(t,e){var n=e;return(e=Z_(n=e instanceof ch?n:new ch(e))).setExtent(t[0],t[1]),X_(e,n),e},createSymbol:ky,createTextStyle:function(t,e){return $c(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:qm,enableDataStack:Gm,getStackedDimension:Ym},enableHoverEmphasis:pl,getECData:Cs,getLayoutRect:ap,mixinAxisModelCommonMethods:function(t){L(t,nx)}});var ix=[],ox={registerPreprocessor:Qv,registerProcessor:tm,registerPostInit:em,registerPostUpdate:nm,registerUpdateLifecycle:rm,registerAction:im,registerCoordinateSystem:om,registerLayout:am,registerVisual:sm,registerTransform:pm,registerLoading:cm,registerMap:hm,registerImpl:function(t,e){Qy[t]=e},PRIORITY:vy,ComponentModel:gp,ComponentView:mg,SeriesModel:ug,ChartView:Sg,registerComponentModel:function(t){gp.registerClass(t)},registerComponentView:function(t){mg.registerClass(t)},registerSeriesModel:function(t){ug.registerClass(t)},registerChartView:function(t){Sg.registerClass(t)},registerSubTypeDefaulter:function(t,e){gp.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ti(t,e)}};function ax(t){V(t)?R(t,(function(t){ax(t)})):0<=P(ix,t)||(ix.push(t),(t=U(t)?{install:t}:t).install(ox))}function sx(t,e){return Math.abs(t-e)<1e-8}function lx(t,e,n){var r=0,i=t[0];if(i){for(var o=1;o<t.length;o++){var a=t[o];r+=Ra(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return sx(i[0],s[0])&&sx(i[1],s[1])||(r+=Ra(i[0],i[1],s[0],s[1],e,n)),0!==r}}var ux=[];function cx(t,e){for(var n=0;n<t.length;n++)Bt(t[n],t[n],e)}function hx(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];(o=r?r.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(jt(e,e,o),Ft(n,n,o))}}function px(t){this.name=t}px.prototype.setCenter=function(t){this._center=t},px.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},_y=px;var fx,dx,gx=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},yx=function(t){this.type="linestring",this.points=t},vx=(n(mx,fx=_y),mx.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior;o=o&&o.length;n<o&&(t=i,n=o)}if(t){for(var a=t.exterior,s=0,l=0,u=0,c=a.length,h=a[c-1][0],p=a[c-1][1],f=0;f<c;f++){var d=a[f][0],g=a[f][1],y=h*g-d*p;s+=y,l+=(h+d)*y,u+=(p+g)*y,h=d,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var v=this.getBoundingRect();return[v.x+v.width/2,v.y+v.height/2]},mx.prototype.getBoundingRect=function(t){var e,n,r=this._rect;return r&&!t||(e=[1/0,1/0],n=[-1/0,-1/0],R(this.geometries,(function(r){"polygon"===r.type?hx(r.exterior,e,n,t):R(r.points,(function(r){hx(r,e,n,t)}))})),isFinite(e[0])&&isFinite(e[1])&&isFinite(n[0])&&isFinite(n[1])||(e[0]=e[1]=n[0]=n[1]=0),r=new Ee(e[0],e[1],n[0]-e[0],n[1]-e[1]),t)||(this._rect=r),r},mx.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(lx(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(lx(s[l],t[0],t[1]))continue t;return!0}}}return!1},mx.prototype.transformTo=function(t,e,n,r){for(var i=this.getBoundingRect(),o=i.width/i.height,a=(o=(n?r=r||n/o:n=o*r,new Ee(t,e,n,r)),i.calculateTransform(o)),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(cx(u.exterior,a),R(u.interiors,(function(t){cx(t,a)}))):R(u.points,(function(t){cx(t,a)}))}(i=this._rect).copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},mx.prototype.cloneShallow=function(t){return t=new mx(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},mx);function mx(t,e,n){return t=fx.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function _x(t,e){return t=dx.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function xx(t,e,n){for(var r=0;r<t.length;r++)t[r]=bx(t[r],e[r],n)}function bx(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);r.push([(i=s+=i)/n,(o=l+=o)/n])}return r}function wx(t,e){var n,r,i;return N(j((t=(n=t).UTF8Encoding?(null==(i=(r=n).UTF8Scale)&&(i=1024),R(r.features,(function(t){var e=t.geometry,n=e.encodeOffsets,r=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=bx(r,n,i);break;case"Polygon":case"MultiLineString":xx(r,n,i);break;case"MultiPolygon":R(r,(function(t,e){return xx(t,n[e],i)}))}})),r.UTF8Encoding=!1,r):n).features,(function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new gx(o[0],o.slice(1)));break;case"MultiPolygon":R(r.coordinates,(function(t){t[0]&&i.push(new gx(t[0],t.slice(1)))}));break;case"LineString":i.push(new yx([r.coordinates]));break;case"MultiLineString":i.push(new yx(r.coordinates))}return t=new vx(n[e||"name"],i,n.cp),t.properties=n,t}))}n(_x,dx=_y),_x.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=(e=[e.x+e.width/2,e.y+e.height/2],ye(ux)),r=t;r&&!r.isGeoSVGGraphicRoot;)me(n,r.getLocalTransform(),n),r=r.parent;return we(n,n),Bt(e,e,n),e};Io=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:Li,getPercentWithPrecision:function(t,e,n){return t[e]&&Bi(t,n)[e]||0},getPixelPrecision:Ni,getPrecision:Ei,getPrecisionSafe:Ri,isNumeric:Gi,isRadianAroundZero:Fi,linearMap:Oi,nice:$i,numericToNumber:Wi,parseDate:Hi,quantile:function(t,e){e=(t.length-1)*e+1;var n=Math.floor(e),r=+t[n-1];return(e-=n)?r+e*(t[n]-r):r},quantity:Vi,quantityExponent:Ui,reformIntervals:function(t){t.sort((function(t,e){return function t(e,n,r){return e.interval[r]<n.interval[r]||e.interval[r]===n.interval[r]&&(e.close[r]-n.close[r]==(r?-1:1)||!r&&t(e,n,1))}(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t},remRadian:ji,round:Di}),Mc=Object.freeze({__proto__:null,format:Ih,parse:Hi}),Sh=Object.freeze({__proto__:null,Arc:Nu,BezierCurve:Du,BoundingRect:Ee,Circle:Vl,CompoundPath:Fu,Ellipse:Gl,Group:_i,Image:ns,IncrementalDisplayable:Qn,Line:Au,LinearGradient:$u,Polygon:vu,Polyline:bu,RadialGradient:Hu,Rect:hs,Ring:pu,Sector:lu,Text:ys,clipPointsByRect:Pc,clipRectByRect:Dc,createIcon:Lc,extendPath:yc,extendShape:gc,getShapeClass:mc,getTransform:Ac,initProps:ac,makeImage:xc,makePath:_c,mergePath:wc,registerShape:vc,resizePath:Sc,updateProps:oc}),oh=Object.freeze({__proto__:null,addCommas:Wh,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:ee,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=(e=Hi(e))[(n=n?"getUTC":"get")+"FullYear"](),i=e[n+"Month"]()+1,o=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"]();e=e[n+"Milliseconds"]();return t.replace("MM",Th(i,2)).replace("M",i).replace("yyyy",r).replace("yy",Th(r%100+"",2)).replace("dd",Th(o,2)).replace("d",o).replace("hh",Th(a,2)).replace("h",a).replace("mm",Th(s,2)).replace("m",s).replace("ss",Th(l,2)).replace("s",l).replace("SSS",Th(e,3))},formatTpl:Kh,getTextRect:function(t,e,n,r,i,o,a,s){return new ys({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Jh,normalizeCssArray:qh,toCamelCase:Gh,truncateText:No}),eh=Object.freeze({__proto__:null,bind:z,clone:A,curry:H,defaults:I,each:R,extend:C,filter:j,indexOf:P,inherits:D,isArray:V,isFunction:U,isObject:q,isString:$,map:N,merge:T,reduce:B});var Sx=lo();function kx(t,e){var n,r=Mx(t,"labels"),i=(e=Q_(e),Ax(r,e));return i||Tx(r,e,{labels:U(e)?Ix(t,e):Cx(t,n="auto"===e?null!=(r=Sx(i=t).autoInterval)?r:Sx(i).autoInterval=i.calculateCategoryInterval():e),labelCategoryInterval:n})}function Mx(t,e){return Sx(t)[e]||(Sx(t)[e]=[])}function Ax(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Tx(t,e,n){return t.push({key:e,value:n}),n}function Cx(t,e,n){for(var r=K_(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=(e=o[0],i.count()),c=(u=(0!==e&&1<l&&2<u/l&&(e=Math.round(Math.ceil(e/l)*l)),tx(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u,t&&e!==o[0]&&h(o[0]),e);c<=o[1];c+=l)h(c);function h(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return a&&c-l!==o[1]&&h(o[1]),s}function Ix(t,e,n){var r=t.scale,i=K_(t),o=[];return R(r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var Ox=[0,1];Px.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]);e=Math.max(e[0],e[1]);return n<=t&&t<=e},Px.prototype.containData=function(t){return this.scale.contain(t)},Px.prototype.getExtent=function(){return this._extent.slice()},Px.prototype.getPixelPrecision=function(t){return Ni(t||this.scale.getExtent(),this._extent)},Px.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Px.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&Dx(n=n.slice(),r.count()),Oi(t,Ox,n,e)},Px.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&Dx(n=n.slice(),r.count()),r=Oi(t,n,Ox,e);return this.scale.scale(r)},Px.prototype.pointToData=function(t,e){},Px.prototype.getTicksCoords=function(t){var e,n,r,i,o,a,s,l=(t=t||{}).tickModel||this.getTickModel(),u=N(function(t,e){var n,r,i,o,a,s;return"category"===t.type?(e=e,o=Mx(n=t,"ticks"),a=Q_(e),(s=Ax(o,a))||(e.get("show")&&!n.scale.isBlank()||(r=[]),r=U(a)?Ix(n,a,!0):"auto"===a?(s=kx(n,n.getLabelModel()),i=s.labelCategoryInterval,N(s.labels,(function(t){return t.tickValue}))):Cx(n,i=a,!0),Tx(o,a,{ticks:r,tickCategoryInterval:i}))):{ticks:N(t.scale.getTicks(),(function(t){return t.value}))}}(this,l).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);l=l.get("alignWithLabel");function c(t,e){return t=Di(t),e=Di(e),a?e<t:t<e}return e=this,n=u,l=l,t=t.clamp,s=n.length,e.onBand&&!l&&s&&(l=e.getExtent(),1===s?(n[0].coord=l[0],r=n[1]={coord:l[1]}):(o=n[s-1].tickValue-n[0].tickValue,i=(n[s-1].coord-n[0].coord)/o,R(n,(function(t){t.coord-=i/2})),e=1+(o=e.scale.getExtent())[1]-n[s-1].tickValue,r={coord:n[s-1].coord+i*e},n.push(r)),a=l[0]>l[1],c(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&c(l[0],n[0].coord)&&n.unshift({coord:l[0]}),c(l[1],r.coord)&&(t?r.coord=l[1]:n.pop()),t)&&c(r.coord,l[1])&&n.push({coord:l[1]}),u},Px.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),N(this.scale.getMinorTicks(t=0<t&&t<100?t:5),(function(t){return N(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this))},Px.prototype.getViewLabels=function(){return function(t){return"category"===t.type?(i=(r=t).getLabelModel(),o=kx(r,i),!i.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(i=(e=t).scale.getTicks(),n=K_(e),{labels:N(i,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))});var e,n,r,i,o}(this).labels},Px.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Px.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Px.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent();e=e[1]-e[0]+(this.onBand?1:0),0===e&&(e=1),t=Math.abs(t[1]-t[0]);return Math.abs(t)/e},Px.prototype.calculateCategoryInterval=function(){i=(n=f=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()},e=K_(f),n=(t.axisRotate-t.labelRotate)/180*Math.PI,r=(i=f.scale).getExtent(),i=i.count();if(r[1]-r[0]<1)return 0;for(var o=1,a=(40<i&&(o=Math.max(1,Math.floor(i/40))),r[0]),s=f.dataToCoord(a+1)-f.dataToCoord(a),l=Math.abs(s*Math.cos(n)),u=(s=Math.abs(s*Math.sin(n)),0),c=0;a<=r[1];a+=o){var h=1.3*(p=ei(e({value:a}),t.font,"center","top")).width,p=1.3*p.height;u=Math.max(u,h,7),c=Math.max(c,p,7)}n=u/l,l=c/s,isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),s=Math.max(0,Math.floor(Math.min(n,l))),n=Sx(f.model),l=f.getExtent();var f=n.lastAutoInterval,d=n.lastTickCount;return null!=f&&null!=d&&Math.abs(f-s)<=1&&Math.abs(d-i)<=1&&s<f&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=f:(n.lastTickCount=i,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},sh=Px;function Px(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function Dx(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}var Lx=2*Math.PI,Ex=Ia.CMD,Rx=["top","right","bottom","left"];function Nx(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=(n=n-t,r=r-e,Math.sqrt(n*n+r*r));l=(l*(n/=c)+u*(r/=c))/c,s&&(l=Math.min(Math.max(l,0),1)),u=a[0]=t+(l*=c)*n,s=a[1]=e+l*r;return Math.sqrt((u-i)*(u-i)+(s-o)*(s-o))}function Bx(t,e,n,r,i,o,a){return n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),n=t+n,r=e+r,t=a[0]=Math.min(Math.max(i,t),n),n=a[1]=Math.min(Math.max(o,e),r),Math.sqrt((t-i)*(t-i)+(n-o)*(n-o))}var jx=[];function Fx(t,e,n){for(var r,i,o,a,s,l,u,c,h,p=0,f=0,d=0,g=0,y=1/0,v=e.data,m=t.x,_=t.y,x=0;x<v.length;){var b=v[x++],w=(1===x&&(d=p=v[x],g=f=v[x+1]),y);switch(b){case Ex.M:p=d=v[x++],f=g=v[x++];break;case Ex.L:w=Nx(p,f,v[x],v[x+1],m,_,jx,!0),p=v[x++],f=v[x++];break;case Ex.C:w=xn(p,f,v[x++],v[x++],v[x++],v[x++],v[x],v[x+1],m,_,jx),p=v[x++],f=v[x++];break;case Ex.Q:w=Mn(p,f,v[x++],v[x++],v[x],v[x+1],m,_,jx),p=v[x++],f=v[x++];break;case Ex.A:var S=v[x++],k=v[x++],M=v[x++],A=v[x++],T=v[x++],C=v[x++],I=(x+=1,!!(1-v[x++])),O=Math.cos(T)*M+S,P=Math.sin(T)*A+k;x<=1&&(d=O,g=P),P=(O=T)+C,I=I,a=(m-S)*(o=A)/M+S,s=_,l=jx,h=c=u=void 0,a-=r=S,s-=i=k,u=Math.sqrt(a*a+s*s),c=(a/=u)*o+r,h=(s/=u)*o+i,w=Math.abs(O-P)%Lx<1e-4||((P=I?(I=O,O=La(P),La(I)):(O=La(O),La(P)))<O&&(P+=Lx),(I=Math.atan2(s,a))<0&&(I+=Lx),O<=I&&I<=P)||O<=I+Lx&&I+Lx<=P?(l[0]=c,l[1]=h,u-o):(h=((I=o*Math.cos(O)+r)-a)*(I-a)+((c=o*Math.sin(O)+i)-s)*(c-s))<(r=((u=o*Math.cos(P)+r)-a)*(u-a)+((O=o*Math.sin(P)+i)-s)*(O-s))?(l[0]=I,l[1]=c,Math.sqrt(h)):(l[0]=u,l[1]=O,Math.sqrt(r)),p=Math.cos(T+C)*M+S,f=Math.sin(T+C)*A+k;break;case Ex.R:w=Bx(d=p=v[x++],g=f=v[x++],v[x++],v[x++],m,_,jx);break;case Ex.Z:w=Nx(p,f,d,g,m,_,jx,!0),p=d,f=g}w<y&&(y=w,n.set(jx[0],jx[1]))}return y}var zx=new ke,Hx=new ke,Vx=new ke,Ux=new ke,$x=new ke;function Wx(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Rx,s=r.getBoundingRect().clone(),l=(s.applyTransform(r.getComputedTransform()),1/0),u=i.anchor,c=t.getComputedTransform(),h=c&&we([],c),p=e.get("length2")||0;u&&Vx.copy(u);for(var f,d=0;d<a.length;d++){var g=a[d],y=(_=m=y=void 0,g),v=s,m=zx,_=Ux,x=v.width,b=v.height;switch(y){case"top":m.set(v.x+x/2,v.y-0),_.set(0,-1);break;case"bottom":m.set(v.x+x/2,v.y+b+0),_.set(0,1);break;case"left":m.set(v.x-0,v.y+b/2),_.set(-1,0);break;case"right":m.set(v.x+x+0,v.y+b/2),_.set(1,0)}ke.scaleAndAdd(Hx,zx,Ux,p),Hx.transform(h),g=t.getBoundingRect(),g=u?u.distance(Hx):t instanceof qa?Fx(Hx,t.path,Vx):(y=Vx,f=Bx((f=g).x,g.y,g.width,g.height,Hx.x,Hx.y,jx),y.set(jx[0],jx[1]),f),g<l&&(l=g,Hx.transform(c),Vx.transform(c),Vx.toArray(o[0]),Hx.toArray(o[1]),zx.toArray(o[2]))}Yx(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var Gx=[],qx=new ke;function Yx(t,e){var n,r;e<=180&&0<e&&(e=e/180*Math.PI,zx.fromArray(t[0]),Hx.fromArray(t[1]),Vx.fromArray(t[2]),ke.sub(Ux,zx,Hx),ke.sub($x,Vx,Hx),r=Ux.len(),n=$x.len(),r<.001||n<.001||(Ux.scale(1/r),$x.scale(1/n),r=Ux.dot($x),Math.cos(e)<r&&(n=Nx(Hx.x,Hx.y,Vx.x,Vx.y,zx.x,zx.y,Gx,!1),qx.fromArray(Gx),qx.scaleAndAdd($x,n/Math.tan(Math.PI-e)),r=Vx.x!==Hx.x?(qx.x-Hx.x)/(Vx.x-Hx.x):(qx.y-Hx.y)/(Vx.y-Hx.y),isNaN(r)||(r<0?ke.copy(qx,Hx):1<r&&ke.copy(qx,Vx),qx.toArray(t[1])))))}function Xx(t,e,n,r){var i="normal"===n;n=i?t:t.ensureState(n),n.ignore=e,e=r.get("smooth"),e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),e=r.getModel("lineStyle").getLineStyle();i?t.useStyle(e):n.style=e}function Zx(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),0<n&&3<=r.length){e=Lt(r[0],r[1]);var i=Lt(r[1],r[2]);e&&i?(n=Math.min(e,i)*n,e=Nt([],r[1],r[0],n/e),n=Nt([],r[1],r[2],n/i),i=Nt([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],i[0],i[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],r[2][0],r[2][1])):(t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]))}else for(var o=1;o<r.length;o++)t.lineTo(r[o][0],r[o][1])}function Kx(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<Es.length;l++){var u,c=Es[l],h=e[c],p="normal"===c;h&&(u=h.get("show"),(p?s:nt(i.states[c]&&i.states[c].ignore,s))||!nt(u,a)?((u=p?r:r&&r.states[c])&&(u.ignore=!0),r&&Xx(r,!0,c,h)):(r||(r=new bu,t.setTextGuideLine(r),p||!s&&a||Xx(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),Xx(r,!1,c,h)))}r&&(I(r.style,n),r.style.fill=null,n=o.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=n||!1,r.buildPath=Zx)}else r&&t.removeTextGuideLine()}function Jx(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},r=0;r<Ls.length;r++){var i=Ls[r];n[i]=t.getModel([i,e])}return n}function Qx(t){for(var e=[],n=0;n<t.length;n++){var r,i,o,a,s,l,u=t[n];u.defaultAttr.ignore||(i=(r=u.label).getComputedTransform(),o=r.getBoundingRect(),a=!i||i[1]<1e-5&&i[2]<1e-5,l=r.style.margin||0,(s=o.clone()).applyTransform(i),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new Ju(o,i):null,e.push({label:r,labelLine:u.labelLine,rect:s,localRect:o,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:i}))}return e}function tb(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s=0,l=!1,u=0,c=0;c<a;c++){var h,p=t[c],f=p.rect;(h=f[e]-s)<0&&(f[e]-=h,p.label[e]-=h,l=!0),u+=Math.max(-h,0),s=f[e]+f[n]}0<u&&o&&x(-u/a,0,a);var d,g,y=t[0],v=t[a-1];return m(),d<0&&b(-d,.8),g<0&&b(g,.8),m(),_(d,g,1),_(g,d,-1),m(),d<0&&w(-d),g<0&&w(g),l}function m(){d=y.rect[e]-r,g=i-v.rect[e]-v.rect[n]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(x(e*n,0,a),(e+=t)<0&&b(-e*n,1)):b(-t*n,1))}function x(n,r,i){0!==n&&(l=!0);for(var o=r;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function b(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect;u=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(u),s+=u}if(s){var c=Math.min(Math.abs(r)/s,i);if(0<r)for(l=0;l<a-1;l++)x(o[l]*c,0,l+1);else for(l=a-1;0<l;l--)x(-o[l-1]*c,l,a)}}function w(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(a-1))),r=0;r<a-1;r++)if(0<e?x(n,0,r+1):x(-n,a-r-1,a),(t-=n)<=0)return}}function eb(t,e,n,r){return tb(t,"y","height",e,n,r)}function nb(t){var e=[],n=(t.sort((function(t,e){return e.priority-t.priority})),new Ee(0,0,0,0));function r(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var i=0;i<t.length;i++){for(var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine,h=(n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,o.obb),p=!1,f=0;f<e.length;f++){var d=e[f];if(n.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new Ju(d.localRect,d.transform)),(h=h||new Ju(s,l)).intersect(d.obb)){p=!0;break}}}p?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function rb(t,e){var n=t.label;e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var ib=["align","verticalAlign","width","height","fontSize"],ob=new Xr,ab=lo(),sb=lo();function lb(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var ub=["x","y","rotation"],cb=(hb.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},hb.prototype._addLabel=function(t,e,n,r,i){var o,a=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain(),c=(l=(Ee.applyTransform(u,u,l),l?ob.setLocalTransform(l):(ob.x=ob.y=ob.rotation=ob.originX=ob.originY=0,ob.scaleX=ob.scaleY=1),ob.rotation=La(ob.rotation),r.__hostTarget),l&&(o=l.getBoundingRect().plain(),c=l.getComputedTransform(),Ee.applyTransform(o,o,c)),o&&l.getTextGuideLine());this._labelList.push({label:r,labelLine:c,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:c&&c.ignore,x:ob.x,y:ob.y,scaleX:ob.scaleX,scaleY:ob.scaleY,rotation:ob.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},hb.prototype.addLabelsOfSeries=function(t){var e=this,n=(this._chartViewList.push(t),t.__model),r=n.get("labelLayout");(U(r)||F(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent();t=Cs(t);i&&!i.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,n,i,r)}))},hb.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),r=0;r<this._labelList.length;r++){var i=this._labelList[r],o=i.label,a=o.__hostTarget,s=i.defaultAttr,l=void 0,u=(l=U(i.layoutOption)?i.layoutOption(rb(i,a)):i.layoutOption,i.computedLayoutOption=l=l||{},Math.PI/180),c=(a&&a.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]}),!1);null!=l.x?(o.x=Pi(l.x,e),o.setStyle("x",0),c=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=Pi(l.y,n),o.setStyle("y",0),c=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(h=a.getTextGuideLine())&&(h.setShape({points:l.labelLinePoints}),c=!1),ab(o).needsUpdateLabelLine=c,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var h,p=0;p<ib.length;p++){var f=ib[p];o.setStyle(f,(null!=l[f]?l:s.style)[f])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(h=i.seriesModel,null!=i.dataIndex&&(h=i.seriesModel.getData(i.dataType).getItemModel(i.dataIndex)),o.on("drag",function(t,e){return function(){Wx(t,e)}}(a,h.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},hb.prototype.layout=function(t){var e=t.getWidth(),n=(t=t.getHeight(),Qx(this._labelList)),r=j(n,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),i=j(n,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));tb(r,"x","width",0,e,void 0),eb(i,0,t),nb(j(n,(function(t){return t.layoutOption.hideOverlap})))},hb.prototype.processLabelsOverall=function(){var t=this;R(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();(o=!o&&a?ab(a).needsUpdateLabelLine:o)&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},hb.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Cs(t),i=r.dataIndex;n&&null!=i&&(e=(n=e.getData(r.dataType)).getItemModel(i),r={},(i=n.getItemVisual(i,"style"))&&(n=n.getVisual("drawType"),r.stroke=i[n]),i=e.getModel("labelLine"),Kx(t,Jx(e),r),Wx(t,i))},hb.prototype._animateLabels=function(t,e){var n,r,i,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||sc(t))||(o=(i=ab(s)).oldLayout,n=(r=Cs(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},r=e.getData(r.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=P(t,"select")&&s.attr(i.oldLayoutSelect),0<=P(t,"emphasis"))&&s.attr(i.oldLayoutEmphasis),oc(s,a,e,n)):(s.attr(a),Zc(s).valueAnimation||(t=nt(s.style.opacity,1),s.style.opacity=0,ac(s,{style:{opacity:t}},e,n))),i.oldLayout=a,s.states.select&&(lb(t=i.oldLayoutSelect={},a,ub),lb(t,s.states.select,ub)),s.states.emphasis&&(lb(t=i.oldLayoutEmphasis={},a,ub),lb(t,s.states.emphasis,ub)),function(t,e,n,r,i){var o,a,s,l=Zc(t);l.valueAnimation&&l.prevValue!==l.value&&(o=l.defaultInterpolatedText,a=nt(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?ac:oc)(t,{percent:1},r,e,null,(function(r){var u=vo(n,l.precision,a,s,r);l.interpolatedValue=1===r?null:u,r=Hc({labelDataIndex:e,labelFetcher:i,defaultText:o?o(u):u+""},l.statesModels,u);zc(t,r)})))}(s,n,r,e,e)),!l||l.ignore||l.invisible||(o=(i=sb(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),oc(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,ac(l,{style:{strokePercent:1}},e)),i.oldLayout=a)},hb);function hb(){this._labelList=[],this._chartViewList=[]}var pb=lo();function fb(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(pb(e).labelManager||(pb(e).labelManager=new cb)).clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=pb(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function db(t,e,n){var r=h.createCanvas(),i=e.getWidth(),o=(e=e.getHeight(),r.style);return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=e+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=e*n,r}ax(fb),n(vb,gb=$t),vb.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},vb.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},vb.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},vb.prototype.setUnpainted=function(){this.__firstTimePaint=!0},vb.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=db("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},vb.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],o=this.maxRepaintRectCount,a=!1,s=new Ee(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===i.length)(e=new Ee(0,0,0,0)).copy(t),i.push(e);else{for(var e,n=!1,r=1/0,l=0,u=0;u<i.length;++u){var c=i[u];if(c.intersect(t)){var h=new Ee(0,0,0,0);h.copy(c),h.union(t),i[u]=h,n=!0;break}a&&(s.copy(t),s.union(c),h=t.width*t.height,c=c.width*c.height,(c=s.width*s.height-h-c)<r)&&(r=c,l=u)}a&&(i[l].union(t),n=!0),n||((e=new Ee(0,0,0,0)).copy(t),i.push(e)),a=a||i.length>=o}}for(var u,c=this.__startIndex;c<this.__endIndex;++c)(h=t[c])&&(f=h.shouldBePainted(n,r,!0,!0),(p=h.__isRendered&&(1&h.__dirty||!f)?h.getPrevPaintRect():null)&&l(p),u=f&&(1&h.__dirty||!h.__isRendered)?h.getPaintRect():null)&&l(u);for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,p,f=(h=e[c])&&h.shouldBePainted(n,r,!0,!0);!h||f&&h.__zr||!h.__isRendered||(p=h.getPrevPaintRect())&&l(p)}do{var d=!1;for(c=0;c<i.length;)if(i[c].isZero())i.splice(c,1);else{for(var g=c+1;g<i.length;)i[c].intersect(i[g])?(d=!0,i[c].union(i[g]),i.splice(g,1)):g++;c++}}while(d);return this._paintRects=i},vb.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},vb.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},vb.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height,s=(e=e||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr,c=this,h=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u)),this.domBack);function p(t,n,r,o){var a;i.clearRect(t,n,r,o),e&&"transparent"!==e&&(a=void 0,K(e)?(a=(e.global||e.__width===r&&e.__height===o)&&e.__canvasGradient||Ty(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o):J(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=By(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()),s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?p(0,0,o,a):n.length&&R(n,(function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)}))};var gb,yb=vb;function vb(t,e,n){var r,i=gb.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,n=n||zr,"string"==typeof t?r=db(t,e,n):q(t)&&(t=(r=t).id),i.id=t,t=(i.dom=r).style;return t&&(_t(r),r.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),i.painter=e,i.dpr=n,i}var mb=314159;xb.prototype.getType=function(){return"canvas"},xb.prototype.isSingleCanvas=function(){return this._singleCanvas},xb.prototype.getViewportRoot=function(){return this._domRoot},xb.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},xb.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o,a=r[i];a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===i?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},xb.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},xb.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),r||(r=n.ctx).save(),Gy(r,a,i,o===e-1))}r&&r.restore()}},xb.prototype.getHoverLayer=function(){return this.getLayer(1e5)},xb.prototype.paintOne=function(t,e){Wy(t,e)},xb.prototype._paintList=function(t,e,n,r){var i,o,a;this._redrawId===r&&(n=n||!1,this._updateLayerStatus(t),i=(o=this._doPaintList(t,e,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),i?this.eachLayer((function(t){t.afterBrush&&t.afterBrush()})):(a=this,on((function(){a._paintList(t,e,n,r)}))))},xb.prototype._compositeManually=function(){var t=this.getLayer(mb).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},xb.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s];l=this._layers[l];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,h=function(o){function s(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(h=y;h<f.__endIndex;h++){var i=t[h];if(i.__inHover&&(c=!0),r._doPaintEl(i,f,a,e,n,h===f.__endIndex-1),v&&15<Date.now()-m)break}n.prevElClipPaths&&d.restore()}var l,h,f=i[o],d=f.ctx,g=a&&f.createRepaintRects(t,e,p._width,p._height),y=n?f.__startIndex:f.__drawIndex,v=!n&&f.incremental&&Date.now,m=v&&Date.now();o=f.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(f.__startIndex!==f.__endIndex&&(y!==f.__startIndex||(l=t[y]).incremental&&l.notClear&&!n)||f.clear(!1,o,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=f.__startIndex),g)if(0===g.length)h=f.__endIndex;else for(var _=p.dpr,x=0;x<g.length;++x){var b=g[x];d.save(),d.beginPath(),d.rect(b.x*_,b.y*_,b.width*_,b.height*_),d.clip(),s(b),d.restore()}else d.save(),s(),d.restore();f.__drawIndex=h,f.__drawIndex<f.__endIndex&&(u=!1)},p=this,f=0;f<i.length;f++)h(f);return o.wxa&&R(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},xb.prototype._doPaintEl=function(t,e,n,r,i,o){e=e.ctx,n?(n=t.getPaintRect(),(!r||n&&n.intersect(r))&&(Gy(e,t,i,o),t.setPrevPaintRect(n))):Gy(e,t,i,o)},xb.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=mb);var n=this._layers[t];return n||((n=new yb("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?T(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&T(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},xb.prototype.insertLayer=function(t,e){var n,r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!r[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);l++);s=r[i[l]]}i.splice(l+1,0,t),(r[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},xb.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},xb.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},xb.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},xb.prototype.getLayers=function(){return this._layers},xb.prototype._updateLayerStatus=function(t){function e(t){i&&(i.__endIndex!==t&&(i.__dirty=!0),i.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var r,i=null,o=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;r!==l&&(r=l,o=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):u=this.getLayer(l+(0<o?.01:0),this._needsManuallyCompositing),u.__builtin__||M("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==a&&(u.__dirty=!0),u.__startIndex=a,u.incremental?u.__drawIndex=-1:u.__drawIndex=a,e(a),i=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental)&&u.__drawIndex<0&&(u.__drawIndex=a)}e(a),this.eachBuiltinLayer((function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},xb.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},xb.prototype._clearLayer=function(t){t.clear()},xb.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,(function(t){t.setUnpainted()}))},xb.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?T(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];i!==t&&i!==t+.01||T(this._layers[i],n[t],!0)}}},xb.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(P(n,t),1))},xb.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,r=(n.style.display="none",this._opts),i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=Iy(i,0,r),e=Iy(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(mb).resize(t,e)}return this},xb.prototype.clearLayer=function(t){t=this._layers[t],t&&t.clear()},xb.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},xb.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[mb].dom;var e=new yb("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Gy(n,u,o,s===l-1)}return e.dom},xb.prototype.getWidth=function(){return this._width},xb.prototype.getHeight=function(){return this._height};var _b=xb;function xb(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=C({},n||{}),this.dpr=n.devicePixelRatio||zr,this._singleCanvas=i,(this.root=t).style&&(_t(t),t.innerHTML=""),this.storage=e;e=this._zlevelList;var o,a,s=(this._prevDisplayList=[],this._layers);i?(o=(i=t).width,a=i.height,null!=n.width&&(o=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,i.width=o*this.dpr,i.height=a*this.dpr,this._width=o,this._height=a,(o=new yb(i,this,this.dpr)).__builtin__=!0,o.initContext(),(s[mb]=o).zlevel=mb,e.push(mb),this._domRoot=t):(this._width=Iy(t,0,n),this._height=Iy(t,1,n),o=this._domRoot=(a=this._width,i=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+i+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}n(Sb,bb=gp),Sb.prototype.init=function(t,e,n){bb.prototype.init.call(this,t,e,n),this._sourceManager=new zd(this),Vd(this)},Sb.prototype.mergeOption=function(t,e){bb.prototype.mergeOption.call(this,t,e),Vd(this)},Sb.prototype.optionUpdated=function(){this._sourceManager.dirty()},Sb.prototype.getSourceManager=function(){return this._sourceManager},Sb.type="dataset",Sb.defaultOption={seriesLayoutBy:Ap};var bb,wb=Sb;function Sb(){var t=null!==bb&&bb.apply(this,arguments)||this;return t.type="dataset",t}n(Ab,kb=mg),Ab.type="dataset";var kb,Mb=Ab;function Ab(){var t=null!==kb&&kb.apply(this,arguments)||this;return t.type="dataset",t}function Tb(t){t.registerComponentModel(wb),t.registerComponentView(Mb)}ax([function(t){t.registerPainter("canvas",_b)},Tb]),ax(fb);var Cb={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,r=0;r<t.length;r++){var i=t[r],o=Math.abs(i);e<o&&(e=o,n=i)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},Ib=function(t){return Math.round(t.length/2)};function Ob(t){return{seriesType:t,reset:function(t,e,n){var r,i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();10<s&&"cartesian2d"===a.type&&o&&(r=a.getBaseAxis(),a=a.getOtherAxis(r),r=r.getExtent(),n=n.getDevicePixelRatio(),r=Math.abs(r[1]-r[0])*(n||1),n=Math.round(s/r),isFinite(n))&&1<n&&("lttb"===o&&t.setData(i.lttbDownSample(i.mapDimension(a.dim),1/n)),s=void 0,$(o)?s=Cb[o]:U(o)&&(s=o),s)&&t.setData(i.downSample(i.mapDimension(a.dim),1/n,s,Ib))}}}n(Db,Pb=ug),Db.prototype.getInitialData=function(t,e){return Xm(null,this,{useEncodeDefaulter:!0})},Db.prototype.getMarkerPosition=function(t,e,n){var r,i,o=this.coordinateSystem;return o&&o.clampData?(r=o.clampData(t),i=o.dataToPoint(r),n?R(o.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var o=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),!(o.length<2))if(2===o.length)i[n]=t.toGlobalCoord(t.getExtent()[l?1:0]);else{for(var u=void 0,c=void 0,h=1,p=0;p<o.length;p++){var f=o[p].coord,d=p===o.length-1?o[p-1].tickValue+h:o[p].tickValue;if(d===s){c=f;break}if(d<s)u=f;else if(null!=u&&s<d){c=(f+u)/2;break}1===p&&(h=d-o[0].tickValue)}null==c&&(c=(u?o[o.length-1]:o[0]).coord),i[n]=t.toGlobalCoord(c)}}})):(n=(t=this.getData()).getLayout("offset"),t=t.getLayout("size"),o=o.getBaseAxis().isHorizontal()?0:1,i[o]+=n+t/2),i):[NaN,NaN]},Db.type="series.__base_bar__",Db.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"};var Pb;rh=Db;function Db(){var t=null!==Pb&&Pb.apply(this,arguments)||this;return t.type=Db.type,t}ug.registerClass(rh),n(Rb,Lb=rh),Rb.prototype.getInitialData=function(){return Xm(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},Rb.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},Rb.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t<e?e:t},Rb.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},Rb.type="series.bar",Rb.dependencies=["grid","polar"],Rb.defaultOption=dh(rh.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1});var Lb,Eb=Rb;function Rb(){var t=null!==Lb&&Lb.apply(this,arguments)||this;return t.type=Rb.type,t}function Nb(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=(o=o.height,n.get(["lineStyle","width"])||2),c=(a-=u/2,s-=u/2,l+=u,o+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++),new hs({shape:{x:a,y:s,width:l,height:o}}));return e&&(e=(u=t.getBaseAxis()).isHorizontal(),t=u.inverse,e?(t&&(c.shape.x+=l),c.shape.width=0):(t||(c.shape.y+=o),c.shape.height=0),u=U(i)?function(t){i(t,c)}:null,ac(c,{shape:{width:l,height:o,x:a,y:s}},n,null,r,u)),c}function Bb(t,e,n){var r=t.getArea(),i=Di(r.r0,1),o=Di(r.r,1),a=new lu({shape:{cx:Di(t.cx,1),cy:Di(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,ac(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}var jb,Fb=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},zb=(n(Hb,jb=qa),Hb.prototype.getDefaultShape=function(){return new Fb},Hb.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=(e=e.clockwise,2*Math.PI),h=e?u-l<c:l-u<c,p=(c=(h||(l=u-(e?c:-c)),Math.cos(l)),Math.sin(l)),f=Math.cos(u),d=Math.sin(u);h?(t.moveTo(c*i+n,p*i+r),t.arc(c*s+n,p*s+r,a,-Math.PI+l,l,!e)):t.moveTo(c*o+n,p*o+r),t.arc(n,r,o,l,u,!e),t.arc(f*s+n,d*s+r,a,u-2*Math.PI,u-Math.PI,!e),0!==i&&t.arc(n,r,i,u,l,e)},Hb);function Hb(t){return t=jb.call(this,t)||this,t.type="sausage",t}function Vb(t,e){return t.type===e}function Ub(t,e){var n,r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(1===i)return null!=(n=Xf(t,e,r[0]))?n+"":null;if(i){for(var o=[],a=0;a<r.length;a++)o.push(Xf(t,e,r[a]));return o.join(" ")}}function $b(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!V(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);0<=o&&r.push(e[o])}return r.join(" ")}function Wb(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Gb(t,e,n){return e*Math.cos(t)*(n?1:-1)}function qb(t,e,n){if(t=t.get("borderRadius"),null==t)return n?{cornerRadius:0}:null;V(t)||(t=[t,t,t,t]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:N(t,(function(t){return oi(t,r)}))}}var Yb=Math.max,Xb=Math.min;n(Jb,Zb=Sg),Jb.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");"cartesian2d"!==i&&"polar"!==i||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},Jb.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},Jb.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},Jb.prototype.eachRendered=function(t){Bc(this._progressiveEls||this.group,t)},Jb.prototype._updateDrawMode=function(t){t=t.pipelineContext.large,null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},Jb.prototype._renderNormal=function(t,e,n,r){var i,o,a,s=this.group,l=t.getData(),u=this._data,c=t.coordinateSystem,h=c.getBaseAxis(),p=("cartesian2d"===c.type?i=h.isHorizontal():"polar"===c.type&&(i="angle"===h.dim),t.isAnimationEnabled()?t:null),f=function(t,e){t=t.get("realtimeSort",!0);var n=e.getBaseAxis();if(t&&"category"===n.type&&"cartesian2d"===e.type)return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}(t,c),d=(f&&this._enableRealtimeSort(f,l,n),t.get("clip",!0)||f),g=(n=l,a=(o=c).getArea&&o.getArea(),!Vb(o,"cartesian2d")||"category"===(o=o.getBaseAxis()).type&&o.onBand||(n=n.getLayout("bandWidth"),o.isHorizontal()?(a.x-=n,a.width+=2*n):(a.y-=n,a.height+=2*n)),a),y=(s.removeClipPath(),t.get("roundCap",!0)),v=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],b=this._backgroundEls,w=r&&r.isInitSort,S=r&&"changeAxisOrder"===r.type;function k(t){var e=aw[c.type](l,t),n=(n=i,new("polar"===c.type?lu:hs)({shape:gw(n,e,c),silent:!0,z2:0}));return n.useStyle(m.getItemStyle()),"cartesian2d"===c.type?n.setShape("r",_):n.setShape("cornerRadius",_),x[t]=n}l.diff(u).add((function(e){var n,r,o=l.getItemModel(e),a=aw[c.type](l,e,o);v&&k(e),l.hasValue(e)&&ow[c.type](a)&&(n=!1,d&&(n=Qb[c.type](g,a)),r=tw[c.type](t,l,e,a,i,p,h.model,!1,y),f&&(r.forceLabelAnimation=!0),lw(r,l,e,o,a,t,i,"polar"===c.type),w?r.attr({shape:a}):f?ew(f,p,r,a,e,i,!1,!1):ac(r,{shape:a},t,e),l.setItemGraphicEl(e,r),s.add(r),r.ignore=n)})).update((function(e,n){var r,o=l.getItemModel(e),a=aw[c.type](l,e,o),M=(v&&(M=void 0,0===b.length?M=k(n):((M=b[n]).useStyle(m.getItemStyle()),"cartesian2d"===c.type?M.setShape("r",_):M.setShape("cornerRadius",_),x[e]=M),r=aw[c.type](l,e),oc(M,{shape:gw(i,r,c)},p,e)),u.getItemGraphicEl(n));l.hasValue(e)&&ow[c.type](a)?(r=!1,d&&(r=Qb[c.type](g,a))&&s.remove(M),M?hc(M):M=tw[c.type](t,l,e,a,i,p,h.model,!!M,y),f&&(M.forceLabelAnimation=!0),S?(n=M.getTextContent())&&null!=(n=Zc(n)).prevValue&&(n.prevValue=n.value):lw(M,l,e,o,a,t,i,"polar"===c.type),w?M.attr({shape:a}):f?ew(f,p,M,a,e,i,!0,S):oc(M,{shape:a},t,e,null),l.setItemGraphicEl(e,M),M.ignore=r,s.add(M)):s.remove(M)})).remove((function(e){var n=u.getItemGraphicEl(e);n&&cc(n,t,e)})).execute();var M=this._backgroundGroup||(this._backgroundGroup=new _i);M.removeAll();for(var A=0;A<x.length;++A)M.add(x[A]);s.add(M),this._backgroundEls=x,this._data=l},Jb.prototype._renderLarge=function(t,e,n){this._clear(),fw(t,this.group),this._updateLargeClip(t)},Jb.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),fw(e,this.group,this._progressiveEls,!0)},Jb.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&(e=t.coordinateSystem,n=!1,t=t,e?"polar"===e.type?Bb(e,n,t):"cartesian2d"===e.type?Nb(e,n,t,void 0,void 0):null:null),n=this.group;e?n.setClipPath(e):n.removeClipPath()},Jb.prototype._enableRealtimeSort=function(t,e,n){var r,i,o=this;e.count()&&(r=t.baseAxis,this._isFirstFrame?(this._dispatchInitSort(e,t,n),this._isFirstFrame=!1):(i=function(t){return t=e.getItemGraphicEl(t),t=t&&t.shape,t&&Math.abs(r.isHorizontal()?t.height:t.width)||0},this._onRendered=function(){o._updateSortWithinSameData(e,i,r,n)},n.getZr().on("rendered",this._onRendered)))},Jb.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);r.push({dataIndex:e,mappedValue:null==i?NaN:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:N(r,(function(t){return t.ordinalNumber}))}},Jb.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a));l=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(o<l)return!0;o=l}return!1},Jb.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=(e=n.getExtent(),Math.max(0,e[0])),i=Math.min(e[1],n.getOrdinalMeta().categories.length-1);r<=i;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},Jb.prototype._updateSortWithinSameData=function(t,e,n,r){this._isOrderChangedWithinSameData(t,e,n)&&(t=this._dataSort(t,n,e),this._isOrderDifferentInView(t,n))&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:t}))},Jb.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},Jb.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},Jb.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},Jb.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},Jb.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){cc(e,t,Cs(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},Jb.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},Jb.type="bar";var Zb,Kb=Jb;function Jb(){var t=Zb.call(this)||this;return t.type=Jb.type,t._isFirstFrame=!0,t}var Qb={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1,i=(n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),t.x+t.width),o=t.y+t.height,a=Yb(e.x,t.x),s=Xb(e.x+e.width,i),l=(t=Yb(e.y,t.y),Xb(e.y+e.height,o)),u=s<a,c=l<t;return e.x=u&&i<a?s:a,e.y=c&&o<t?l:t,e.width=u?0:s-a,e.height=c?0:l-t,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),u||c},polar:function(t,e){var n,r=e.r0<=e.r?1:-1,i=(r<0&&(n=e.r,e.r=e.r0,e.r0=n),Xb(e.r,t.r));t=Yb(e.r0,t.r0),i=(e.r=i)-(e.r0=t)<0;return r<0&&(n=e.r,e.r=e.r0,e.r0=n),i}},tw={cartesian2d:function(t,e,n,r,i,o,a,s,l){return r=new hs({shape:C({},r),z2:1}),r.__dataIndex=n,r.name="item",o&&(r.shape[i?"height":"width"]=0),r},polar:function(t,e,n,r,i,o,a,s,l){l=!i&&l?zb:lu;var u,c,h=new l({shape:r,z2:1}),p=(h.name="item",sw(i));return h.calculateTextPosition=(u=p,c=({isRoundCap:l===zb}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return ai(t,e,n);r=u(r);var i=null!=e.distance?e.distance:5,o=this.shape,a=o.cx,s=o.cy,l=o.r,h=o.r0,p=(l+h)/2,f=o.startAngle,d=o.endAngle,g=(f+d)/2,y=c?Math.abs(l-h)/2:0,v=Math.cos,m=Math.sin,_=a+l*v(f),x=s+l*m(f),b="left",w="top";switch(r){case"startArc":_=a+(h-i)*v(g),x=s+(h-i)*m(g),b="center",w="top";break;case"insideStartArc":_=a+(h+i)*v(g),x=s+(h+i)*m(g),b="center",w="bottom";break;case"startAngle":_=a+p*v(f)+Wb(f,i+y,!1),x=s+p*m(f)+Gb(f,i+y,!1),b="right",w="middle";break;case"insideStartAngle":_=a+p*v(f)+Wb(f,y-i,!1),x=s+p*m(f)+Gb(f,y-i,!1),b="left",w="middle";break;case"middle":_=a+p*v(g),x=s+p*m(g),b="center",w="middle";break;case"endArc":_=a+(l+i)*v(g),x=s+(l+i)*m(g),b="center",w="bottom";break;case"insideEndArc":_=a+(l-i)*v(g),x=s+(l-i)*m(g),b="center",w="top";break;case"endAngle":_=a+p*v(d)+Wb(d,i+y,!0),x=s+p*m(d)+Gb(d,i+y,!0),b="left",w="middle";break;case"insideEndAngle":_=a+p*v(d)+Wb(d,y-i,!0),x=s+p*m(d)+Gb(d,y-i,!0),b="right",w="middle";break;default:return ai(t,e,n)}return(t=t||{}).x=_,t.y=x,t.align=b,t.verticalAlign=w,t}),o&&(p={},h.shape[l=i?"r":"endAngle"]=i?r.r0:r.startAngle,p[l]=r[l],(s?oc:ac)(h,{shape:p},o)),h}};function ew(t,e,n,r,i,o,a,s){var l;o=o?(l={x:r.x,width:r.width},{y:r.y,height:r.height}):(l={y:r.y,height:r.height},{x:r.x,width:r.width});s||(a?oc:ac)(n,{shape:o},e,i,null),(a?oc:ac)(n,{shape:l},e?t.baseAxis.model:null,i)}function nw(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return 1}var rw=["x","y","width","height"],iw=["cx","cy","r","startAngle","endAngle"],ow={cartesian2d:function(t){return!nw(t,rw)},polar:function(t){return!nw(t,iw)}},aw={cartesian2d:function(t,e,n){t=t.getItemLayout(e);var r=n&&(e=t,r=(n=n).get(["itemStyle","borderColor"]))&&"none"!==r?(r=n.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),e=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height),Math.min(r,n,e)):0;n=0<t.width?1:-1,e=0<t.height?1:-1;return{x:t.x+n*r/2,y:t.y+e*r/2,width:t.width-n*r,height:t.height-e*r}},polar:function(t,e,n){return t=t.getItemLayout(e),{cx:t.cx,cy:t.cy,r0:t.r0,r:t.r,startAngle:t.startAngle,endAngle:t.endAngle,clockwise:t.clockwise}}};function sw(t){return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}};var e}function lw(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style"),u=(s?o.get("roundCap")||(C(u=t.shape,qb(r.getModel("itemStyle"),u,!0)),t.setShape(u)):(u=r.get(["itemStyle","borderRadius"])||0,t.setShape("r",u)),t.useStyle(l),r.getShallow("cursor")),c=(u=(u&&t.attr("cursor",u),s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?0<=i.height?"bottom":"top":0<=i.width?"right":"left"),Uc(r));Vc(t,c,{labelFetcher:o,labelDataIndex:n,defaultText:Ub(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),l=t.getTextContent(),s&&l&&(s=r.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,r){if(G(r))t.setTextConfig({rotation:r});else if(V(e))t.setTextConfig({rotation:0});else{r=t.shape;var i,o=r.clockwise?r.startAngle:r.endAngle,a=r.clockwise?r.endAngle:r.startAngle,s=(o+a)/2;r=n(e);switch(r){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=s;break;case"startAngle":case"insideStartAngle":i=o;break;case"endAngle":case"insideEndAngle":i=a;break;default:return t.setTextConfig({rotation:0})}n=1.5*Math.PI-i,"middle"===r&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===s?u:s,sw(a),r.get(["label","rotate"]))),u=l,s=c,a=o.getRawValue(n),l=function(t){return $b(e,t)},u&&((u=Zc(u)).prevValue=u.value,u.value=a,a=s.normal,u.valueAnimation=a.get("valueAnimation"),u.valueAnimation)&&(u.precision=a.get("precision"),u.defaultInterpolatedText=l,u.statesModels=s),c=r.getModel(["emphasis"]);fl(t,c.get("focus"),c.get("blurScope"),c.get("disabled")),yl(t,r),null!=(o=i).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",R(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var uw,cw=function(){},hw=(n(pw,uw=qa),pw.prototype.getDefaultShape=function(){return new cw},pw.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},pw);function pw(t){return t=uw.call(this,t)||this,t.type="largeBar",t}function fw(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");u&&((u=new hw({shape:{points:u},incremental:!!r,silent:!0,z2:0})).baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n)&&n.push(u),l=new hw({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});l.baseDimIdx=o,l.largeDataIndices=a,l.barWidth=s,e.add(l),l.useStyle(i.getVisual("style")),Cs(l).seriesIndex=t.seriesIndex,t.get("silent")||(l.on("mousedown",dw),l.on("mousemove",dw)),n&&n.push(l)}var dw=Lg((function(t){t=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var p=3*c;if(l[r]=u,l[i]=o[2+p],s[r]=o[p+r],s[i]=o[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),s[0]<=e&&e<=s[0]+l[0]&&s[1]<=n&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY),Cs(this).dataIndex=0<=t?t:null}),30,!1);function gw(t,e,n){var r,i;return Vb(n,"cartesian2d")?(r=e,i=n.getArea(),{x:(t?r:i).x,y:(t?i:r).y,width:(t?r:i).width,height:(t?i:r).height}):{cx:(i=n.getArea()).cx,cy:i.cy,r0:(t?i:e).r0,r:(t?i:e).r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}ax((function(t){t.registerChartView(Kb),t.registerSeriesModel(Eb),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,H(S_,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:xg(),reset:function(t){var e,n,r,i,o,a,s,l,u,c,h,p,f,d,g,y;if(k_(t))return e=t.getData(),s=(n=t.coordinateSystem).getBaseAxis(),r=n.getOtherAxis(s),i=e.getDimensionIndex(e.mapDimension(r.dim)),o=e.getDimensionIndex(e.mapDimension(s.dim)),a=t.get("showBackground",!0),s=e.mapDimension(r.dim),l=e.getCalculationInfo("stackResultDimension"),u=qm(e,s)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),h=r.toGlobalCoord(r.dataToCoord("log"===r.type?1:0)),p=M_(t),f=t.get("barMinHeight")||0,d=l&&e.getDimensionIndex(l),g=e.getLayout("size"),y=e.getLayout("offset"),{progress:function(t,e){for(var r,s=t.count,l=p&&m_(3*s),v=p&&a&&m_(3*s),m=p&&m_(s),_=n.master.getRect(),x=c?_.width:_.height,b=e.getStore(),w=0;null!=(r=t.next());){var S,k=b.get(u?d:i,r),M=b.get(o,r),A=h,T=void 0,C=void(u&&(T=+k-b.get(i,r))),I=void 0,O=void 0,P=void 0;c?(S=n.dataToPoint([k,M]),C=A=u?n.dataToPoint([T,M])[0]:A,I=S[1]+y,O=S[0]-A,P=g,Math.abs(O)<f&&(O=(O<0?-1:1)*f)):(S=n.dataToPoint([M,k]),u&&(A=n.dataToPoint([M,T])[1]),C=S[0]+y,I=A,O=g,P=S[1]-A,Math.abs(P)<f&&(P=(P<=0?-1:1)*f)),p?(l[w]=C,l[w+1]=I,l[w+2]=c?O:P,v&&(v[w]=c?_.x:C,v[w+1]=c?I:_.y,v[w+2]=x),m[r]=r):e.setItemLayout(r,{x:C,y:I,width:O,height:P}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:v,valueAxisHorizontal:c})}}}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ob("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))})),n(mw,yw=ug),mw.prototype.getInitialData=function(t){return Xm(null,this,{useEncodeDefaulter:!0})},mw.prototype.getLegendIcon=function(t){var e=new _i,n=ky("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),r=(n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),this.getData().getVisual("symbolRotate")),i=(n="none"===n?"circle":n,.8*t.itemHeight);i=ky(n,(t.itemWidth-i)/2,(t.itemHeight-i)/2,i,i,t.itemStyle.fill),e.add(i),i.setStyle(t.itemStyle),r="inherit"===t.iconRotate?r:t.iconRotate||0;return i.rotation=r*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),e},mw.type="series.line",mw.dependencies=["grid","polar"],mw.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var yw,vw=mw;function mw(){var t=null!==yw&&yw.apply(this,arguments)||this;return t.type=mw.type,t.hasSymbolVisual=!0,t}n(bw,_w=_i),bw.prototype._createSymbol=function(t,e,n,r,i){this.removeAll(),i=ky(t,-1,-1,2,2,null,i),i.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),i.drift=ww,this._symbolType=t,this.add(i)},bw.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},bw.prototype.getSymbolType=function(){return this._symbolType},bw.prototype.getSymbolPath=function(){return this.childAt(0)},bw.prototype.highlight=function(){el(this.childAt(0))},bw.prototype.downplay=function(){nl(this.childAt(0))},bw.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},bw.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},bw.prototype.updateData=function(t,e,n,r){this.silent=!1;var i,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=bw.getSymbolSize(t,e),c=s!==this._symbolType,h=r&&r.disableAnimation;c?(i=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,i)):((o=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},h?o.attr(a):oc(o,a,l,e),hc(o)),this._updateCommon(t,e,u,n,r),c&&(o=this.childAt(0),h||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,ac(o,a,l,e))),h&&this.childAt(0).stopAnimation("leave")},bw.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,p,f=this.childAt(0),d=t.hostModel,g=(r&&(o=r.emphasisItemStyle,s=r.blurItemStyle,a=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,p=r.hoverScale,y=r.cursorStyle,c=r.emphasisDisabled),r&&!t.hasItemOption||(o=(g=(r=r&&r.itemModel?r.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=r.getModel(["select","itemStyle"]).getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),c=g.get("disabled"),h=Uc(r),p=g.getShallow("scale"),y=r.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),y=(r=(f.attr("rotation",(g||0)*Math.PI/180||0),My(t.getItemVisual(e,"symbolOffset"),n)),g=(r&&(f.x=r[0],f.y=r[1]),y&&f.attr("cursor",y),t.getItemVisual(e,"style")),r=g.fill,f instanceof ns?(y=f.style,f.useStyle(C({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(f.__isEmptyBrush?f.useStyle(C({},g)):f.useStyle(g),f.style.decal=null,f.setColor(r,i&&i.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,m=(null!=y?null==v&&(this._z2=f.z2,f.z2+=y):null!=v&&(f.z2=v,this._z2=null),i&&i.useNameLabel);Vc(f,h,{labelFetcher:d,labelDataIndex:e,defaultText:function(e){return m?t.getName(e):Ub(t,e)},inheritColor:r,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,y=f.ensureState("emphasis"),y.style=o,f.ensureState("select").style=a,f.ensureState("blur").style=s,v=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&0<p?+p:1,y.scaleX=this._sizeX*v,y.scaleY=this._sizeY*v,this.setSymbolScale(1),fl(this,l,u,c)},bw.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},bw.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Cs(this).dataIndex,o=n&&n.animation;this.silent=r.silent=!0,n&&n.fadeLabel?(n=r.getTextContent())&&lc(n,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}}):r.removeTextContent(),lc(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},bw.getSymbolSize=function(t,e){return[(t=V(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var _w,xw=bw;function bw(t,e,n,r){var i=_w.call(this)||this;return i.updateData(t,e,n,r),i}function ww(t,e){this.parent.drift(t,e)}function Sw(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!r.isIgnore||!r.isIgnore(n))&&(!r.clipShape||r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function kw(t){return(t=null==t||q(t)?t:{isIgnore:t})||{}}function Mw(t){t=t.hostModel;var e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Uc(t),cursorStyle:t.get("cursor")}}Tw.prototype.updateData=function(t,e){this._progressiveEls=null,e=kw(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Mw(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i,a=u(r);Sw(t,a,r,e)&&((i=new o(t,r,s,l)).setPosition(a),t.setItemGraphicEl(r,i),n.add(i))})).update((function(c,h){h=i.getItemGraphicEl(h);var p,f,d=u(c);Sw(t,d,c,e)?(p=t.getItemVisual(c,"symbol")||"circle",f=h&&h.getSymbolType&&h.getSymbolType(),!h||f&&f!==p?(n.remove(h),(h=new o(t,c,s,l)).setPosition(d)):(h.updateData(t,c,s,l),f={x:d[0],y:d[1]},a?h.attr(f):oc(h,f,r)),n.add(h),t.setItemGraphicEl(c,h)):n.remove(h)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},Tw.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){n=t._getSymbolPoint(n),e.setPosition(n),e.markRedraw()}))},Tw.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Mw(t),this._data=null,this.group.removeAll()},Tw.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=kw(n);for(var i=t.start;i<t.end;i++){var o,a=e.getItemLayout(i);Sw(e,a,i,n)&&((o=new this._SymbolCtor(e,i,this._seriesScope)).traverse(r),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o))}},Tw.prototype.eachRendered=function(t){Bc(this._progressiveEls||this.group,t)},Tw.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()};var Aw=Tw;function Tw(t){this.group=new _i,this._SymbolCtor=t||xw}function Cw(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=(n=function(t,e){var n=0;t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:G(e)&&!isNaN(e)?n=e:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]),n}(i,n),r=r.dim,i=i.dim,e.mapDimension(i)),a=e.mapDimension(r),s="x"===i||"radius"===i?1:0,l=(t=N(t.dimensions,(function(t){return e.mapDimension(t)})),!1),u=e.getCalculationInfo("stackResultDimension");return qm(e,t[0])&&(l=!0,t[0]=u),qm(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:i,baseAxisDim:r,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Iw(t,e,n,r){var i=NaN,o=(t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart),t.baseDataOffset),a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var Ow=Math.min,Pw=Math.max;function Dw(t,e){return isNaN(t)||isNaN(e)}function Lw(t,e,n,r,i,o,a,s,l){for(var u,c,h,p,f=n,d=0;d<r;d++){var g=e[2*f],y=e[2*f+1];if(i<=f||f<0)break;if(Dw(g,y)){if(l){f+=o;continue}break}if(f===n)t[0<o?"moveTo":"lineTo"](g,y),h=g,p=y;else{var v=g-u,m=y-c;if(v*v+m*m<.5){f+=o;continue}if(0<a){for(var _=f+o,x=e[2*_],b=e[2*_+1];x===g&&b===y&&d<r;)d++,f+=o,x=e[2*(_+=o)],b=e[2*_+1],g=e[2*f],y=e[2*f+1];var w=d+1;if(l)for(;Dw(x,b)&&w<r;)w++,x=e[2*(_+=o)],b=e[2*_+1];v=0,m=0;var S,k,M,A,T,C,I,O,P,D=void 0,L=void 0;r<=w||Dw(x,b)?(I=g,O=y):(v=x-u,m=b-c,S=g-u,k=x-g,M=y-c,A=b-y,C=T=void 0,L="x"===s?(I=g-(P=0<v?1:-1)*(T=Math.abs(S))*a,O=y,D=g+P*(C=Math.abs(k))*a,y):"y"===s?(O=y-(P=0<m?1:-1)*(T=Math.abs(M))*a,D=I=g,y+P*(C=Math.abs(A))*a):(T=Math.sqrt(S*S+M*M),I=g-v*a*(1-(S=(C=Math.sqrt(k*k+A*A))/(C+T))),O=y-m*a*(1-S),L=y+m*a*S,D=Ow(D=g+v*a*S,Pw(x,g)),L=Ow(L,Pw(b,y)),D=Pw(D,Ow(x,g)),O=y-(m=(L=Pw(L,Ow(b,y)))-y)*T/C,I=Ow(I=g-(v=D-g)*T/C,Pw(u,g)),O=Ow(O,Pw(c,y)),D=g+(v=g-(I=Pw(I,Ow(u,g))))*C/T,y+(m=y-(O=Pw(O,Ow(c,y))))*C/T)),t.bezierCurveTo(h,p,I,O,g,y),h=D,p=L}else t.lineTo(g,y)}u=g,c=y,f+=o}return d}var Ew,Rw=function(){this.smooth=0,this.smoothConstraint=!0},Nw=(n(Bw,Ew=qa),Bw.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Bw.prototype.getDefaultShape=function(){return new Rw},Bw.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;0<i&&Dw(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Dw(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Lw(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Bw.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Ia.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:var h;u=i[l++],c=i[l++];if((h=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&0<=h)return m=a?(c-r)*h+r:(u-n)*h+n,a?[t,m]:[m,t];n=u,r=c;break;case o.C:u=i[l++],c=i[l++];var p=i[l++],f=i[l++],d=i[l++],g=i[l++],y=a?vn(n,u,p,d,t,s):vn(r,c,f,g,t,s);if(0<y)for(var v=0;v<y;v++){var m,_=s[v];if(_<=1&&0<=_)return m=a?gn(r,c,f,g,_):gn(n,u,p,d,_),a?[t,m]:[m,t]}n=d,r=g}}},Bw);function Bw(t){return t=Ew.call(this,t)||this,t.type="ec-polyline",t}n(zw,jw=Rw);var jw,Fw=zw;function zw(){return null!==jw&&jw.apply(this,arguments)||this}n(Uw,Hw=qa),Uw.prototype.getDefaultShape=function(){return new Fw},Uw.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<o&&Dw(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Dw(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Lw(t,n,i,o,o,1,e.smooth,a,e.connectNulls);Lw(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}};var Hw,Vw=Uw;function Uw(t){return t=Hw.call(this,t)||this,t.type="ec-polygon",t}function $w(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function Ww(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function Gw(t,e){t=Ww(t);var n=t[0],r=(t=t[1],e=Ww(e),e[0]);e=e[1];return Math.max(Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function qw(t){return G(t)?t:t?.5:0}function Yw(t,e,n,r){e=e.getBaseAxis();var i="x"===e.dim||"radius"===e.dim?0:1,o=[],a=0,s=[],l=[],u=[],c=[];if(r){for(a=0;a<t.length;a+=2)isNaN(t[a])||isNaN(t[a+1])||c.push(t[a],t[a+1]);t=c}for(a=0;a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],o.push(l[0],l[1]),n){case"end":s[i]=u[i],s[1-i]=l[1-i],o.push(s[0],s[1]);break;case"middle":var h=[];s[i]=h[i]=(l[i]+u[i])/2,s[1-i]=l[1-i],h[1-i]=u[1-i],o.push(s[0],s[1]),o.push(h[0],h[1]);break;default:s[i]=l[i],s[1-i]=u[1-i],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function Xw(t,e){return[t[2*e],t[2*e+1]]}function Zw(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<Ls.length;e++)if(t.get([Ls[e],"endLabel","show"]))return 1}function Kw(t,e,n,r){var i,o,a,s,l,u,c,h,p;return Vb(e,"cartesian2d")?(i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=Zw(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Nb(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l),r.get("clip",!0)||(h=c.shape,p=Math.max(h.width,h.height),u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)),l&&l(1,c),c):Bb(e,n,r)}n(tS,Jw=Sg),tS.prototype.init=function(){var t=new _i,e=new Aw;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},tS.prototype.render=function(t,e,n){function r(t){o._changePolyState(t)}var i,o=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),h=l.getLayout("points")||[],p="polar"===a.type,f=this._coordSys,d=this._symbolDraw,g=this._polyline,y=this._polygon,v=this._lineGroup,m=(e=!e.ssr&&t.get("animation"),!c.isEmpty()),_=c.get("origin"),x=Cw(a,l,_),b=(x=m&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=m_(2*r),o=0;o<r;o++){var a=Iw(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(a,l,x),t.get("showSymbol")),w=t.get("connectNulls"),S=b&&!p&&function(t,e,n){t=t.get("showAllSymbol");var r="auto"===t;if(!t||r){var i,o,a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!function(t,e){for(var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count(),i=(isNaN(r)&&(r=0),e.count()),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*xw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return;return 1}(a,e)))return i=e.mapDimension(a.dim),o={},R(a.getViewLabels(),(function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),o[t]=1})),function(t){return!o.hasOwnProperty(e.get(i,t))}}}(t,l,a),k=this._data,M=(k&&k.eachItemGraphicEl((function(t,e){t.__temp&&(s.remove(t),k.setItemGraphicEl(e,null))})),b||d.remove(),s.add(v),!p&&t.get("step")),A=(a&&a.getArea&&t.get("clip",!0)&&(null!=(i=a.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i,function(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o=r.length-1;0<=o;o--){var a,s=t.getDimensionInfo(r[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){i=r[o];break}}if(i){var l=e.getAxis(a),u=(e=N(i.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),e.length),c=i.outerColors.slice(),h=(n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),c.reverse()),function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:Jn((n-r)/(e.coord-r),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(e<u){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(e,"x"===a?n.getWidth():n.getHeight())),n.length);if(!h&&u)return e[0].coord<0?c[1]||e[u-1].color:c[0]||e[0].color;var p=n[0].coord-10,f=(u=n[h-1].coord+10,u-p);return f<.001?"transparent":(R(n,(function(t){t.offset=(t.coord-p)/f})),n.push({offset:h?n[h-1].offset:.5,color:c[1]||"transparent"}),n.unshift({offset:h?n[0].offset:.5,color:c[0]||"transparent"}),e=new $u(0,0,0,0,n,!0),e[a]=p,e[a+"2"]=u,e)}}}(l,a,n)||l.getVisual("style")[l.getVisual("drawType")]);g&&f.type===a.type&&M===this._step?(m&&!y?y=this._newPolygon(h,x):y&&!m&&(v.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,Qh(A)),(f=v.getClipPath())?ac(f,{shape:Kw(this,a,!1,t).shape},t):v.setClipPath(Kw(this,a,!0,t)),b&&d.updateData(l,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),$w(this._stackedOnPoints,x)&&$w(this._points,h)||(e?this._doUpdateAnimation(l,x,a,n,M,_,w):(M&&(h=Yw(h,a,M,w),x=x&&Yw(x,a,M,w)),g.setShape({points:h}),y&&y.setShape({points:h,stackedOnPoints:x})))):(b&&d.updateData(l,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,i),M&&(h=Yw(h,a,M,w),x=x&&Yw(x,a,M,w)),g=this._newPolyline(h),m?y=this._newPolygon(h,x):y&&(v.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,Qh(A)),v.setClipPath(Kw(this,a,!0,t))),f=t.getModel("emphasis"),n=f.get("focus"),b=f.get("blurScope"),d=f.get("disabled"),g.useStyle(I(u.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),yl(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),Cs(g).seriesIndex=t.seriesIndex,fl(g,n,b,d),S=qw(t.get("smooth")),e=t.get("smoothMonotone");g.setShape({smooth:S,smoothMonotone:e,connectNulls:w}),y&&(i=l.getCalculationInfo("stackedOnSeries"),m=0,y.useStyle(I(c.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),i&&(m=qw(i.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:m,smoothMonotone:e,connectNulls:w}),yl(y,t,"areaStyle"),Cs(y).seriesIndex=t.seriesIndex,fl(y,n,b,d)),l.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=r)})),this._polyline.onHoverStateChange=r,this._data=l,this._coordSys=a,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),y)&&this.packEventData(t,y)},tS.prototype.packEventData=function(t,e){Cs(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},tS.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=so(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=i.getLayout("points");if(!(l=i.getItemGraphicEl(o))){var s=a[2*o];a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel")||0,c=t.get("z")||0;s=((l=new xw(i,o)).x=s,l.y=a,l.setZ(u,c),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=c,s.z2=this._polyline.z2+1),l.__temp=!0,i.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Sg.prototype.highlight.call(this,t,e,n,r)},tS.prototype.downplay=function(t,e,n,r){var i,o=t.getData(),a=so(o,r);this._changePolyState("normal"),null!=a&&0<=a?(i=o.getItemGraphicEl(a))&&(i.__temp?(o.setItemGraphicEl(a,null),this.group.remove(i)):i.downplay()):Sg.prototype.downplay.call(this,t,e,n,r)},tS.prototype._changePolyState=function(t){var e=this._polygon;Zs(this._polyline,t),e&&Zs(e,t)},tS.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Nw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},tS.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Vw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},tS.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse,s=(o=("cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0),t.hostModel),o.get("animationDuration")),l=(U(s)&&(s=s(null)),o.get("animationDelay")||0),u=U(l)?l(null):l;t.eachItemGraphicEl((function(t,o){var c,h,p,f,d,g=t;g&&(f=[t.x,t.y],d=h=c=void 0,n&&(d=i?(p=n,f=e.pointToCoord(f),r?(c=p.startAngle,h=p.endAngle,-f[1]/180*Math.PI):(c=p.r0,h=p.r,f[0])):r?(c=n.x,h=n.x+n.width,t.x):(c=n.y+n.height,h=n.y,t.y)),p=h===c?0:(d-c)/(h-c),a&&(p=1-p),f=U(l)?l(o):s*p+u,d=(t=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:f}),d&&d.animateFrom({style:{opacity:0}},{duration:300,delay:f}),t.disableLabelAnimation=!0)}))},tS.prototype._initOrUpdateEndLabel=function(t,e,n){var r,i,o,a=t.getModel("endLabel");Zw(t)?(r=t.getData(),i=this._polyline,(o=r.getLayout("points"))?(this._endLabel||((this._endLabel=new ys({z2:200})).ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0),0<=(o=function(t){for(var e,n,r=t.length/2;0<r&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(o))&&(Vc(i,Uc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){return null!=n?$b(r,n):Ub(r,t)},enableTextSetter:!0},(n=a,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}})),i.textConfig.position=null)):(i.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},tS.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s,l,u,c,h,p,f,d,g,y,v=this._endLabel,m=this._polyline;v&&(t<1&&null==r.originalX&&(r.originalX=v.x,r.originalY=v.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=o.get("precision"),o=o.get("distance")||0,h=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,c=(h?o:0)*(a?-1:1),o=(h?0:-o)*(a?-1:1),f=void 0,1<=(d=(p=(h=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a])){if(0!==u){if(r<=e&&e<=i||e<=r&&i<=e){l=u;break}s=u}r=i}return{range:[s,l],t:(e-r)/(i-r)}}(s,a=a?h?e.x:e.y+e.height:h?e.x+e.width:e.y,e=h?"x":"y")).range)[1]-p[0])?(1<d&&!g?(y=Xw(s,p[0]),v.attr({x:y[0]+c,y:y[1]+o}),i&&(f=l.getRawValue(p[0]))):((y=m.getPointOn(a,e))&&v.attr({x:y[0]+c,y:y[1]+o}),d=l.getRawValue(p[0]),g=l.getRawValue(p[1]),i&&(f=vo(n,u,d,g,h.t))),r.lastFrameIndex=p[0]):(y=Xw(s,m=1===t||0<r.lastFrameIndex?p[0]:0),i&&(f=l.getRawValue(m)),v.attr({x:y[0]+c,y:y[1]+o})),i)&&"function"==typeof(a=Zc(v)).setLabelText&&a.setLabelText(f)},tS.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=(e=function(t,e,n,r,i,o){a=[],e.diff(t).add((function(t){a.push({cmd:"+",idx:t})})).update((function(t,e){a.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){a.push({cmd:"-",idx:t})})).execute();for(var a,s=a,l=[],u=[],c=[],h=[],p=[],f=[],d=[],g=Cw(i,e,o),y=t.getLayout("points")||[],v=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,b=void 0;switch(_.cmd){case"=":var w=2*_.idx,S=(b=2*_.idx1,y[w]),k=y[1+w],M=v[b],A=v[b+1];(isNaN(S)||isNaN(k))&&(S=M,k=A),l.push(S,k),u.push(M,A),c.push(n[w],n[1+w]),h.push(r[b],r[b+1]),d.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,k=g.dataDimsForPoint,M=i.dataToPoint([e.get(k[0],S),e.get(k[1],S)]),b=2*S,l.push(M[0],M[1]),u.push(v[b],v[b+1]),A=Iw(g,i,e,S),c.push(A[0],A[1]),h.push(r[b],r[b+1]),d.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),f.push(f.length))}f.sort((function(t,e){return d[t]-d[e]}));var T=m_(o=l.length),C=m_(o),I=m_(o),O=m_(o),P=[];for(m=0;m<f.length;m++){var D=f[m],L=2*m,E=2*D;T[L]=l[E],T[1+L]=l[1+E],C[L]=u[E],C[1+L]=u[1+E],I[L]=c[E],I[1+L]=c[1+E],O[L]=h[E],O[1+L]=h[1+E],P[m]=p[D]}return{current:T,next:C,stackedOnCurrent:I,stackedOnNext:O,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),e.current),h=e.stackedOnCurrent,p=e.next,f=e.stackedOnNext;if(i&&(c=Yw(e.current,n,i,a),h=Yw(e.stackedOnCurrent,n,i,a),p=Yw(e.next,n,i,a),f=Yw(e.stackedOnNext,n,i,a)),3e3<Gw(c,p)||l&&3e3<Gw(h,f))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f}));else{s.shape.__points=e.current,s.shape.points=c;n={shape:{points:p}};for(var d,g=(e.current!==c&&(n.shape.__points=e.next),s.stopAnimation(),oc(s,n,u),l&&(l.setShape({points:c,stackedOnPoints:h}),l.stopAnimation(),oc(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,v=0;v<y.length;v++)"="===y[v].cmd&&(d=t.getItemGraphicEl(y[v].idx1))&&g.push({el:d,ptIdx:v});s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,r=2*g[e].ptIdx;n.x=t[r],n.y=t[1+r],n.markRedraw()}}))}},tS.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},tS.type="line";var Jw,Qw=tS;function tS(){return null!==Jw&&Jw.apply(this,arguments)||this}ax((function(t){t.registerChartView(Qw),t.registerSeriesModel(vw),t.registerLayout((!0,{seriesType:"line",plan:xg(),reset:function(t){var e,n,r,i,o,a=t.getData(),s=t.coordinateSystem;t=t.pipelineContext;if(s)return t=N(s.dimensions,(function(t){return a.mapDimension(t)})).slice(0,2),e=t.length,n=a.getCalculationInfo("stackResultDimension"),qm(a,t[0])&&(t[0]=n),qm(a,t[1])&&(t[1]=n),r=a.getStore(),i=a.getDimensionIndex(t[0]),o=a.getDimensionIndex(t[1]),e&&{progress:function(t,n){for(var a=t.end-t.start,l=m_(a*e),u=[],c=[],h=t.start,p=0;h<t.end;h++){var f,d=void 0;d=1===e?(f=r.get(i,h),s.dataToPoint(f,null,c)):(u[0]=r.get(i,h),u[1]=r.get(o,h),s.dataToPoint(u,null,c)),l[p++]=d[0],l[p++]=d[1]}n.setLayout("points",l)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData();t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ob("line"))}));var eS=2*Math.PI,nS=Math.PI/180;function rS(t,e){return ap(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function iS(t,e){var n,r=rS(t,e),i=t.get("center"),o=t.get("radius"),a=(V(o)||(o=[0,o]),Pi(r.width,e.getWidth())),s=(e=Pi(r.height,e.getHeight()),Math.min(a,e)),l=Pi(o[0],s/2);o=Pi(o[1],s/2),s=t.coordinateSystem;return s=s?(n=(t=s.dataToPoint(i))[0]||0,t[1]||0):(n=Pi((i=V(i)?i:[i,i])[0],a)+r.x,Pi(i[1],e)+r.y),{cx:n,cy:s,r0:l,r:o}}function oS(t,e,n){e.eachSeriesByType(t,(function(t){var e,r=t.getData(),i=r.mapDimension("value"),o=rS(t,n),a=iS(t,n),s=a.cx,l=a.cy,u=a.r,c=a.r0,h=-t.get("startAngle")*nS,p=(a=t.get("endAngle"),t.get("padAngle")*nS),f=(a="auto"===a?h-eS:-a*nS,t.get("minAngle")*nS+p),d=0,g=(r.each(i,(function(t){isNaN(t)||d++})),r.getSum(i)),y=Math.PI/(g||d)*2,v=t.get("clockwise"),m=t.get("roseType"),_=t.get("stillShowZeroSum"),x=r.getDataExtent(i),b=(x[0]=0,v?1:-1),w=(t=[h,a],b*p/2),S=(Ca(t,!v),h=t[0],Math.abs(t[1]-h)),k=S,M=0,A=h;r.setLayout({viewRect:o,r:u}),r.each(i,(function(t,e){var n,i,o,a;isNaN(t)?r.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:s,cy:l,r0:c,r:m?NaN:u}):((n="area"!==m?0===g&&_?y:t*y:S/d)<f?k-=n=f:M+=t,i=A+b*n,o=0,a=n<p?o=A+b*n/2:(o=A+w,i-w),r.setItemLayout(e,{angle:n,startAngle:o,endAngle:a,clockwise:v,cx:s,cy:l,r0:c,r:m?Oi(t,x,[c,u]):u}),A=i)})),k<eS&&d&&(k<=.001?(e=S/d,r.each(i,(function(t,n){var i,o;isNaN(t)||(t=0,o=((i=r.getItemLayout(n)).angle=e)<p?t=h+b*(n+.5)*e:(t=h+b*n*e+w,h+b*(n+1)*e-w),i.startAngle=t,i.endAngle=o)}))):(y=k/M,A=h,r.each(i,(function(t,e){var n,i;isNaN(t)||(n=0,i=(t=(e=r.getItemLayout(e)).angle===f?f:t*y)<p?n=A+b*t/2:(n=A+w,A+b*t-w),e.startAngle=n,e.endAngle=i,A+=b*t)}))))}))}var aS=Math.PI/180;function sS(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c,h=t.length,p=0;p<h;p++)"outer"===t[p].position&&"labelLine"===t[p].labelAlignTo&&(c=t[p].label.x-u,t[p].linePoints[1][0]+=c,t[p].label.x=u);if(eb(t,l,l+a)){for(var f,d,g,y,v,m=t,_={list:[],maxY:0},x={list:[],maxY:0},b=0;b<m.length;b++)"none"===m[b].labelAlignTo&&(d=(f=m[b]).label.y>n?x:_,(g=Math.abs(f.label.y-n))>=d.maxY&&(v=f.label.x-e-f.len2*i,y=r+f.len,v=Math.abs(v)<y?Math.sqrt(g*g/(1-v*v/y/y)):y,d.rB=v,d.maxY=g),d.list.push(f));w(_),w(x)}}function w(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len;c=c*c,u=Math.sqrt((1-Math.abs(u*u/a))*c),c=e+(u+l.len2)*i,u=c-l.label.x;lS(l,l.targetTextWidth-u*i,!0),l.label.x=c}}}function lS(t,e,n){var r,i,o,a,s,l,u;void 0===n&&(n=!1),null==t.labelStyleWidth&&(s=(r=t.label).style,i=t.rect,l=s.backgroundColor,u=(u=s.padding)?u[1]+u[3]:0,s=s.overflow,e<(o=i.width+(l?0:u))||n)&&(a=i.height,s&&s.match("break")?(r.setStyle("backgroundColor",null),r.setStyle("width",e-u),s=r.getBoundingRect(),r.setStyle("width",Math.ceil(s.width)),r.setStyle("backgroundColor",l)):(s=e-u,l=e<o||n&&!(s>t.unconstrainedWidth)?s:null,r.setStyle("width",l)),u=r.getBoundingRect(),i.width=u.width,e=(r.style.margin||0)+2.1,i.height=u.height+e,i.y-=(i.height-a)/2)}function uS(t){return"center"===t.position}n(pS,cS=lu),pS.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=C(qb(a.getModel("itemStyle"),l,!0),l);isNaN(u.startAngle)?i.setShape(u):(r?(i.setShape(u),r=o.getShallow("animationType"),o.ecModel.ssr?(ac(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===r?(i.shape.r=l.r0,ac(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),ac(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,oc(i,{shape:{endAngle:l.endAngle}},o,e))):(hc(i),oc(i,{shape:u},o,e)),i.useStyle(t.getItemVisual(e,"style")),yl(i,a),r=(l.startAngle+l.endAngle)/2,n=o.get("selectedOffset"),u=Math.cos(r)*n,r=Math.sin(r)*n,(n=a.getShallow("cursor"))&&i.attr("cursor",n),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=C({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},qb(s.getModel("itemStyle"),l)),C(i.ensureState("select"),{x:u,y:r,shape:qb(a.getModel(["select","itemStyle"]),l)}),C(i.ensureState("blur"),{shape:qb(a.getModel(["blur","itemStyle"]),l)}),n=i.getTextGuideLine(),o=i.getTextContent(),n&&C(n.ensureState("select"),{x:u,y:r}),C(o.ensureState("select"),{x:u,y:r}),fl(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},pS.prototype._updateLabel=function(t,e,n){var r=e.getItemModel(n),i=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill;o=o&&o.opacity,Vc(this,Uc(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:o,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)}),e=this.getTextContent(),this.setTextConfig({position:null,rotation:null}),e.attr({z2:10}),n=t.get(["label","position"]);"outside"!==n&&"outer"!==n?this.removeTextGuideLine():(this.getTextGuideLine()||(e=new bu,this.setTextGuideLine(e)),Kx(this,Jx(r),{stroke:a,opacity:rt(i.get(["lineStyle","opacity"]),o,1)}))};var cS,hS=pS;function pS(t,e,n){var r=cS.call(this)||this,i=(r.z2=2,new ys);return r.setTextContent(i),r.updateData(t,e,n,!0),r}n(gS,fS=Sg),gS.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&0<o.count()){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")&&((n=new lu({shape:iS(t,n)})).useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=n,s.add(n)),o.diff(a).add((function(t){var e=new hS(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){e=a.getItemGraphicEl(e),e.updateData(o,t,i),e.off("click"),s.add(e),o.setItemGraphicEl(t,e)})).remove((function(e){cc(a.getItemGraphicEl(e),t,e)})).execute(),function(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*aS,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y;function p(t){t.ignore=!0}if(s=s.height,r.each((function(t){var s,h,f,d,g,y,v,m,_,x,b=r.getItemGraphicEl(t),w=b.shape,S=b.getTextContent(),k=b.getTextGuideLine(),M=(t=r.getItemModel(t),t.getModel("label")),A=M.get("position")||t.get(["emphasis","label","position"]),T=M.get("distanceToLabelLine"),C=M.get("alignTo"),I=Pi(M.get("edgeDistance"),u),O=M.get("bleedMargin"),P=(t=t.getModel("labelLine"),Pi(t.get("length"),u)),D=Pi(t.get("length2"),u);Math.abs(w.endAngle-w.startAngle)<a?(R(S.states,p),S.ignore=!0,k&&(R(k.states,p),k.ignore=!0)):function(t){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1}(S)&&(x=(w.startAngle+w.endAngle)/2,s=Math.cos(x),h=Math.sin(x),e=w.cx,n=w.cy,f="inside"===A||"inner"===A,v="center"===A?(d=w.cx,g=w.cy,"center"):(d=(v=(f?(w.r+w.r0)/2*s:w.r*s)+e)+3*s,g=(m=(f?(w.r+w.r0)/2*h:w.r*h)+n)+3*h,f||(y=v+s*(P+l-w.r),w=m+h*(P+l-w.r),_=y+(s<0?-1:1)*D,d="edge"===C?s<0?c+I:c+u-I:_+(s<0?-T:T),y=[[v,m],[y,g=w],[_,w]]),f?"center":"edge"===C?0<s?"right":"left":0<s?"left":"right"),m=Math.PI,_=0,G(w=M.get("rotate"))?_=w*(m/180):"center"===A?_=0:"radial"===w||!0===w?_=s<0?-x+m:-x:"tangential"===w&&"outside"!==A&&"outer"!==A&&((M=Math.atan2(s,h))<0&&(M=2*m+M),_=(M=0<h?m+M:M)-m),o=!!_,S.x=d,S.y=g,S.rotation=_,S.setStyle({verticalAlign:"middle"}),f?(S.setStyle({align:v}),(x=S.states.select)&&(x.x+=S.x,x.y+=S.y)):((w=S.getBoundingRect().clone()).applyTransform(S.getComputedTransform()),M=(S.style.margin||0)+2.1,w.y-=M/2,w.height+=M,i.push({label:S,labelLine:k,position:A,len:P,len2:D,minTurnAngle:t.get("minTurnAngle"),maxSurfaceAngle:t.get("maxSurfaceAngle"),surfaceNormal:new ke(s,h),linePoints:y,textAlign:v,labelDistance:T,labelAlignTo:C,edgeDistance:I,bleedMargin:O,rect:w,unconstrainedWidth:w.width,labelStyleWidth:S.style.width})),b.setTextConfig({inside:f}))})),!o&&t.get("avoidLabelOverlap")){for(var f=i,d=e,g=(t=n,l),y=u,v=c,m=[],_=[],x=Number.MAX_VALUE,b=-Number.MAX_VALUE,w=0;w<f.length;w++){var S=f[w].label;uS(f[w])||(S.x<d?(x=Math.min(x,S.x),m):(b=Math.max(b,S.x),_)).push(f[w])}var k;for(w=0;w<f.length;w++)!uS(M=f[w])&&M.linePoints&&null==M.labelStyleWidth&&(S=M.label,A=M.linePoints,void 0,k="edge"===M.labelAlignTo?S.x<d?A[2][0]-M.labelDistance-v-M.edgeDistance:v+y-M.edgeDistance-A[2][0]-M.labelDistance:"labelLine"===M.labelAlignTo?S.x<d?x-v-M.bleedMargin:v+y-b-M.bleedMargin:S.x<d?S.x-v-M.bleedMargin:v+y-S.x-M.bleedMargin,M.targetTextWidth=k,lS(M,k));sS(_,d,t,g,1,0,s,0,h,b),sS(m,d,t,g,-1,0,s,0,h,x);var M,A,T,C,I;for(w=0;w<f.length;w++)!uS(M=f[w])&&M.linePoints&&(S=M.label,A=M.linePoints,T="edge"===M.labelAlignTo,C=(C=S.style.padding)?C[1]+C[3]:0,C=S.style.backgroundColor?0:C,C=M.rect.width+C,I=A[1][0]-A[2][0],T?S.x<d?A[2][0]=v+M.edgeDistance+C+M.labelDistance:A[2][0]=v+y-M.edgeDistance-C-M.labelDistance:(S.x<d?A[2][0]=S.x+M.labelDistance:A[2][0]=S.x-M.labelDistance,A[1][0]=A[2][0]+I),A[1][1]=A[2][1]=S.y)}for(var O=0;O<i.length;O++){var P,D=i[O],L=D.label,E=D.labelLine,N=isNaN(L.x)||isNaN(L.y);L&&(L.setStyle({align:D.textAlign}),N&&(R(L.states,p),L.ignore=!0),P=L.states.select)&&(P.x+=L.x,P.y+=L.y),E&&(P=D.linePoints,N||!P?(R(E.states,p),E.ignore=!0):(Yx(P,D.minTurnAngle),function(t,e,n){if(n<=180&&0<n){n=n/180*Math.PI,zx.fromArray(t[0]),Hx.fromArray(t[1]),Vx.fromArray(t[2]),ke.sub(Ux,Hx,zx),ke.sub($x,Vx,Hx);var r=Ux.len(),i=$x.len();if(!(r<.001||i<.001)&&(Ux.scale(1/r),$x.scale(1/i),Ux.dot(e)<Math.cos(n))){if(r=Nx(Hx.x,Hx.y,Vx.x,Vx.y,zx.x,zx.y,Gx,!1),qx.fromArray(Gx),i=Math.PI/2,e=i+Math.acos($x.dot(e))-n,i<=e)ke.copy(qx,Vx);else{if(qx.scaleAndAdd($x,r/Math.tan(Math.PI/2-e)),n=Vx.x!==Hx.x?(qx.x-Hx.x)/(Vx.x-Hx.x):(qx.y-Hx.y)/(Vx.y-Hx.y),isNaN(n))return;n<0?ke.copy(qx,Hx):1<n&&ke.copy(qx,Vx)}qx.toArray(t[1])}}}(P,D.surfaceNormal,D.maxSurfaceAngle),E.setShape({points:P}),L.__hostTarget.textGuideLineConfig={anchor:new ke(P[0][0],P[0][1])}))}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},gS.prototype.dispose=function(){},gS.prototype.containPoint=function(t,e){var n;e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0},gS.type="pie";var fS,dS=gS;function gS(){var t=null!==fS&&fS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}vS.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},vS.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},vS.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},vS.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var yS=vS;function vS(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var mS,_S=lo(),xS=(n(bS,mS=ug),bS.prototype.init=function(t){mS.prototype.init.apply(this,arguments),this.legendVisualProvider=new yS(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(t)},bS.prototype.mergeOption=function(){mS.prototype.mergeOption.apply(this,arguments)},bS.prototype.getInitialData=function(){return e=V(e={coordDimensions:["value"],encodeDefaulter:H(Pp,t=this)})?{coordDimensions:e}:C({encodeDefine:t.getEncode()},e),n=t.getSource(),e=Vm(n,e).dimensions,(e=new zm(e,t)).initData(n,void 0),e;var t,e,n},bS.prototype.getDataParams=function(t){var e,n=this.getData(),r=_S(n),i=r.seats;i||(e=[],n.each(n.mapDimension("value"),(function(t){e.push(t)})),i=r.seats=Bi(e,n.hostModel.get("percentPrecision"))),r=mS.prototype.getDataParams.call(this,t);return r.percent=i[t]||0,r.$vars.push("percent"),r},bS.prototype._defaultLabelLine=function(t){Qi(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},bS.type="series.pie",bS.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},bS);function bS(){return null!==mS&&mS.apply(this,arguments)||this}ax((function(t){t.registerChartView(dS),t.registerSeriesModel(xS),function(t,e){R([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(n){e(n[0],(function(e,r,i){var o;e=C({},e),i.dispatchAction(C(e,{type:n[1],seriesIndex:(i=e,o=[],r.eachComponent({mainType:"series",subType:t,query:i},(function(t){o.push(t.seriesIndex)})),o)}))}))}))}("pie",t.registerAction),t.registerLayout(H(oS,"pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n,r=e.findComponents({mainType:"legend"});r&&r.length&&(n=t.getData()).filterSelf((function(t){for(var e=n.getName(t),i=0;i<r.length;i++)if(!r[i].isSelected(e))return!1;return!0}))}}),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value");e=n.get(e,t);return!(G(e)&&!isNaN(e)&&e<0)}))}})})),n(kS,wS=gp),kS.type="grid",kS.dependencies=["xAxis","yAxis"],kS.layoutMode="box",kS.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var wS,SS=kS;function kS(){return null!==wS&&wS.apply(this,arguments)||this}n(TS,MS=gp),TS.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",po).models[0]},TS.type="cartesian2dAxis";var MS,AS=TS;function TS(){return null!==MS&&MS.apply(this,arguments)||this}L(AS,nx);So={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},dy=T({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},So),_y=T({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},So);var CS={category:dy,value:_y,time:T({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_y),log:I({logBase:10},_y)},IS={value:1,category:1,time:1,log:1};function OS(t,e,r,i){R(IS,(function(o,a){var s,l=T(T({},CS[a],!0),i,!0);n(u,s=r),u.prototype.mergeDefaultAndTheme=function(t,e){var n=sp(this),r=n?up(t):{};T(t,e.getTheme().get(a+"Axis")),T(t,this.getDefaultOption()),t.type=PS(t),n&&lp(t,r,n)},u.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Qm.createByAxisModel(this))},u.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=l,l=u;function u(){var t=null!==s&&s.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}t.registerComponentModel(l)})),t.registerSubTypeDefaulter(e+"Axis",PS)}function PS(t){return t.type||(t.data?"category":"value")}function DS(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}DS.prototype.getAxis=function(t){return this._axes[t]},DS.prototype.getAxes=function(){return N(this._dimList,(function(t){return this._axes[t]}),this)},DS.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),j(this.getAxes(),(function(e){return e.scale.type===t}))},DS.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var LS=["x","y"];function ES(t){return"interval"===t.type||"time"===t.type}n(BS,RS=DS),BS.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,r,i=this.getAxis("x").scale,o=this.getAxis("y").scale;ES(i)&&ES(o)&&(i=i.getExtent(),o=o.getExtent(),r=this.dataToPoint([i[0],o[0]]),e=this.dataToPoint([i[1],o[1]]),t=i[1]-i[0],n=o[1]-o[0],t)&&n&&(t=(e[0]-r[0])/t,e=(e[1]-r[1])/n,n=r[0]-i[0]*t,i=r[1]-o[0]*e,r=this._transform=[t,0,0,e,n,i],this._invTransform=we([],r))},BS.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},BS.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},BS.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},BS.prototype.containZone=function(t,e){t=this.dataToPoint(t),e=this.dataToPoint(e);var n=this.getArea();e=new Ee(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},BS.prototype.dataToPoint=function(t,e,n){n=n||[];var r,i=t[0],o=t[1];return this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o)?Bt(n,t,this._transform):(t=this.getAxis("x"),r=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(i,e)),n[1]=r.toGlobalCoord(r.dataToCoord(o,e)),n)},BS.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent();n=n.parse(t[0]),r=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),n),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),r),Math.max(o[0],o[1])),e},BS.prototype.pointToData=function(t,e){var n,r,i=[];return this._invTransform?Bt(i,t,this._invTransform):(n=this.getAxis("x"),r=this.getAxis("y"),i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i)},BS.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},BS.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t;e=Math.max(e[0],e[1])-r+t,n=Math.max(n[0],n[1])-i+t;return new Ee(r,i,e,n)};var RS,NS=BS;function BS(){var t=null!==RS&&RS.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=LS,t}n(zS,jS=sh),zS.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},zS.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},zS.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},zS.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var jS,FS=zS;function zS(t,e,n,r,i){return t=jS.call(this,t,e,n)||this,t.index=0,t.type=r||"value",t.position=i||"bottom",t}function HS(t,e,n){n=n||{};t=t.coordinateSystem;var r=e.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=(r=r.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],{left:0,right:1,top:0,bottom:1,onZero:2}),u=e.get("offset")||0,c=(u="x"===r?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],o&&(c=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(c,u[1]),u[0])),i.position=["y"===r?u[l[s]]:t[0],"x"===r?u[l[s]]:t[3]],i.rotation=Math.PI/2*("x"===r?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],i.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),et(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection),e.get(["axisLabel","rotate"]));return i.labelRotate="top"===s?-c:c,i.z2=1,i}function VS(t){return"cartesian2d"===t.get("coordinateSystem")}function US(t){var e={xAxisModel:null,yAxisModel:null};return R(e,(function(n,r){var i=r.replace(/Model$/,"");i=t.getReferringComponents(i,po).models[0];e[r]=i})),e}var $S=Math.log;GS.prototype.getRect=function(){return this._rect},GS.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=F(t),r=n.length;if(r){for(var i=[],o=r-1;0<=o;o--){var a=t[+n[o]],s=a.model,l=a.scale;n_(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(X_(l,s),n_(l)&&(e=a))}i.length&&(e||X_((e=i.pop()).scale,e.model),R(i,(function(t){var n=t.scale,r=(t=t.model,e.scale),i=d_.prototype,o=i.getTicks.call(r),a=i.getTicks.call(r,!0),s=o.length-1,l=(r=i.getInterval.call(r),(t=Y_(n,t)).extent),u=t.fixMin,c=(t=t.fixMax,"log"===n.type&&(c=$S(n.base),l=[$S(l[0])/c,$S(l[1])/c]),n.setExtent(l[0],l[1]),n.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:t}),i.getExtent.call(n)),h=(u&&(l[0]=c[0]),t&&(l[1]=c[1]),i.getInterval.call(n)),p=l[0],f=l[1];if(u&&t)h=(f-p)/s;else if(u)for(f=l[0]+h*s;f<l[1]&&isFinite(f)&&isFinite(l[1]);)h=r_(h),f=l[0]+h*s;else if(t)for(p=l[1]-h*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)h=r_(h),p=l[1]-h*s;else c=(h=s<n.getTicks().length-1?r_(h):h)*s,(p=Di((f=Math.ceil(l[1]/h)*h)-c))<0&&0<=l[0]?(p=0,f=Di(c)):0<f&&l[1]<=0&&(f=0,p=-Di(c));u=(o[0].value-a[0].value)/r,t=(o[s].value-a[s].value)/r,i.setExtent.call(n,p+h*u,f+h*t),i.setInterval.call(n,h),(u||t)&&i.setNiceExtent.call(n,p+h,f-h)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};R(n.x,(function(t){YS(n,"y",t,i)})),R(n.y,(function(t){YS(n,"x",t,i)})),this.resize(this.model,e)},GS.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=(n=!n&&t.get("containLabel"),ap(r,{width:e.getWidth(),height:e.getHeight()})),o=(this._rect=i,this._axesList);function a(){R(o,(function(t){var e,n,r=t.isHorizontal(),o=r?[0,i.width]:[0,i.height],a=t.inverse?1:0;t.setExtent(o[a],o[1-a]),o=t,e=r?i.x:i.y,a=o.getExtent(),n=a[0]+a[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return n-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return n-t+e}}))}a(),n&&(R(o,(function(t){var e,n,r;t.model.get(["axisLabel","inside"])||(e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent(),a=n instanceof c_?n.count():(r=n.getTicks()).length,s=t.getLabelModel(),l=K_(t),u=1;40<a&&(u=Math.ceil(a/40));for(var c,h,p,f=0;f<a;f+=u){var d=l(r?r[f]:{value:o[0]+f},f),g=(d=s.getTextRect(d),d=d,c=s.get("rotate")||0,h=g=h=void 0,c=c*Math.PI/180,h=d.width,g=d.height,p=h*Math.abs(Math.cos(c))+Math.abs(g*Math.sin(c)),h=h*Math.abs(Math.sin(c))+Math.abs(g*Math.cos(c)),new Ee(d.x,d.y,p,h));i?i.union(g):i=g}return i}}(t))&&(n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]),i[n]-=e[n]+r,"top"===t.position?i.y+=e.height+r:"left"===t.position&&(i.x+=e.width+r))})),a()),R(this._coordsList,(function(t){t.calcAffineTransform()}))},GS.prototype.getAxis=function(t,e){if(t=this._axesMap[t],null!=t)return t[e||0]},GS.prototype.getAxes=function(){return this._axesList.slice()},GS.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];q(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},GS.prototype.getCartesians=function(){return this._coordsList.slice()},GS.prototype.convertToPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},GS.prototype.convertFromPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},GS.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",po).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",po).models[0],a=(t=t.gridModel,this._coordsList);return r?P(a,e=r.coordinateSystem)<0&&(e=null):i&&o?e=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},GS.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},GS.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};function l(e){return function(n,r){var l,u;qS(n,t)&&(l=n.get("position"),"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0,u="category"===(l=new FS(e,Z_(n),[0,0],n.get("type"),l)).type,l.onBand=u&&n.get("boundaryGap"),l.inverse=n.get("inverse"),(n.axis=l).model=n,l.grid=i,l.index=r,i._axesList.push(l),a[e][r]=l,s[e]++)}}e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),s.x&&s.y?R((this._axesMap=a).x,(function(e,n){R(a.y,(function(i,o){o="x"+n+"y"+o;var a=new NS(o);a.master=r,a.model=t,r._coordsMap[o]=a,r._coordsList.push(a),a.addAxis(e),a.addAxis(i)}))})):(this._axesMap={},this._axesList=[])},GS.prototype._updateScale=function(t,e){function n(t,e){R(ex(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}R(this._axesList,(function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))})),t.eachSeries((function(t){var r,i;VS(t)&&(i=(r=US(t)).xAxisModel,r=r.yAxisModel,qS(i,e))&&qS(r,e)&&(i=this.getCartesian(i.componentIndex,r.componentIndex),r=t.getData(),t=i.getAxis("x"),i=i.getAxis("y"),n(r,t),n(r,i))}),this)},GS.prototype.getTooltipAxes=function(t){var e=[],n=[];return R(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis();r=r.getOtherAxis(i);P(e,i)<0&&e.push(i),P(n,r)<0&&n.push(r)})),{baseAxes:e,otherAxes:n}},GS.create=function(t,e){var n=[];return t.eachComponent("grid",(function(r,i){var o=new GS(r,t,e);o.name="grid_"+i,o.resize(r,e,!0),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){var e,n,r;VS(t)&&(e=(n=US(t)).xAxisModel,n=n.yAxisModel,r=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=r.getCartesian(e.componentIndex,n.componentIndex))})),n},GS.dimensions=LS;var WS=GS;function GS(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=LS,this._initCartesian(t,e,n),this.model=t}function qS(t,e){return t.getCoordSysModel()===e}function YS(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e];t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)XS(o[n])&&(i=o[n]);else for(var a in o)if(o.hasOwnProperty(a)&&XS(o[a])&&!r[s(o[a])]){i=o[a];break}i&&(r[s(i)]=!0)}function s(t){return t.dim+"_"+t.index}}function XS(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}var ZS=Math.PI,KS=(JS.prototype.hasBuilder=function(t){return!!QS[t]},JS.prototype.add=function(t){QS[t](this.opt,this.axisModel,this.group,this._transformGroup)},JS.prototype.getGroup=function(){return this.group},JS.innerTextLayout=function(t,e,n){var r;e=ji(e-t),t=Fi(e)?(r=0<n?"top":"bottom","center"):Fi(e-ZS)?(r=0<n?"bottom":"top","center"):(r="middle",0<e&&e<ZS?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:r}},JS.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},JS.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},JS);function JS(t,e){this.group=new _i,this.opt=e,this.axisModel=t,I(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new _i({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}var QS={axisLine:function(t,e,n,r){var i,o,a,s,l,u,c,h=e.get(["axisLine","show"]);(h="auto"===h&&t.handleAutoShown?t.handleAutoShown("axisLine"):h)&&(h=e.axis.getExtent(),r=r.transform,i=[h[0],0],o=[h[1],0],a=o[0]<i[0],r&&(Bt(i,i,r),Bt(o,o,r)),s=C({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),kc((h=new Au({shape:{x1:i[0],y1:i[1],x2:o[0],y2:o[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).shape,h.style.lineWidth),h.anid="line",n.add(h),null!=(l=e.get(["axisLine","symbol"])))&&(r=e.get(["axisLine","symbolSize"]),$(l)&&(l=[l,l]),($(r)||G(r))&&(r=[r,r]),h=My(e.get(["axisLine","symbolOffset"])||0,r),u=r[0],c=r[1],R([{rotate:t.rotation+Math.PI/2,offset:h[0],r:0},{rotate:t.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((i[0]-o[0])*(i[0]-o[0])+(i[1]-o[1])*(i[1]-o[1]))}],(function(e,r){var h;"none"!==l[r]&&null!=l[r]&&(r=ky(l[r],-u/2,-c/2,u,c,s.stroke,!0),h=e.r+e.offset,r.attr({rotation:e.rotate,x:(e=a?o:i)[0]+h*Math.cos(t.rotation),y:e[1]-h*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r))})))},axisTickLabel:function(t,e,n,r){var i,o,a,s,l,u=function(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){a=o.getModel("lineStyle"),r=r.tickDirection*o.get("length");for(var s=rk(i.getTicksCoords(),e.transform,r,I(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,r,e,t),c=function(t,e,n,r){var i,o,a,s,l,u,c,h,p=n.axis,f=et(r.axisLabelShow,n.get(["axisLabel","show"]));if(f&&!p.scale.isBlank())return i=n.getModel("axisLabel"),o=i.get("margin"),a=p.getViewLabels(),f=(et(r.labelRotate,i.get("rotate"))||0)*ZS/180,s=KS.innerTextLayout(r.rotation,f,r.labelDirection),l=n.getCategories&&n.getCategories(!0),u=[],c=KS.isLabelSilent(n),h=n.get("triggerEvent"),R(a,(function(f,d){var g="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(f.tickValue):f.tickValue,y=f.formattedLabel,v=f.rawLabel,m=i,_=(m=l&&l[g]&&q(_=l[g])&&_.textStyle?new ch(_.textStyle,i,n.ecModel):m).getTextColor()||n.get(["axisLine","lineStyle","color"]),x=p.dataToCoord(g),b=m.getShallow("align",!0)||s.textAlign,w=nt(m.getShallow("alignMinLabel",!0),b),S=nt(m.getShallow("alignMaxLabel",!0),b),k=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||s.textVerticalAlign,M=nt(m.getShallow("verticalAlignMinLabel",!0),k),A=nt(m.getShallow("verticalAlignMaxLabel",!0),k);x=new ys({x:x,y:r.labelOffset+r.labelDirection*o,rotation:s.rotation,silent:c,z2:10+(f.level||0),style:$c(m,{text:y,align:0===d?w:d===a.length-1?S:b,verticalAlign:0===d?M:d===a.length-1?A:k,fill:U(_)?_("category"===p.type?v:"value"===p.type?g+"":g,d):_})});x.anid="label_"+g,h&&((f=KS.makeAxisEventDataBase(n)).targetType="axisLabel",f.value=v,f.tickIndex=d,"category"===p.type&&(f.dataIndex=g),Cs(x).eventData=f),e.add(x),x.updateTransform(),u.push(x),t.add(x),x.decomposeTransform()})),u}(n,r,e,t),h=(o=c,u=u,tx((i=e).axis)||(f=i.get(["axisLabel","showMinLabel"]),i=i.get(["axisLabel","showMaxLabel"]),u=u||[],y=(o=o||[])[0],d=o[1],a=o[o.length-1],o=o[o.length-2],s=u[0],g=u[1],l=u[u.length-1],u=u[u.length-2],!1===f?(tk(y),tk(s)):ek(y,d)&&(f?(tk(d),tk(g)):(tk(y),tk(s))),!1===i?(tk(a),tk(l)):ek(o,a)&&(i?(tk(o),tk(u)):(tk(a),tk(l)))),n),p=r,f=e,d=t.tickDirection,g=f.axis,y=f.getModel("minorTick");if(y.get("show")&&!g.scale.isBlank()){var v=g.getMinorTicksCoords();if(v.length){g=y.getModel("lineStyle");for(var m=d*y.get("length"),_=I(g.getLineStyle(),I(f.getModel("axisTick").getLineStyle(),{stroke:f.get(["axisLine","lineStyle","color"])})),x=0;x<v.length;x++)for(var b=rk(v[x],p.transform,m,_,"minorticks_"+x),w=0;w<b.length;w++)h.add(b[w])}}e.get(["axisLabel","hideOverlap"])&&nb(Qx(N(c,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,n,r){var i,o,a,s,l,u,c,h,p=et(t.axisName,e.get("name"));p&&(h=e.get("nameLocation"),l=t.nameDirection,i=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,o=(c=e.axis.getExtent())[0]>c[1]?-1:1,o=["start"===h?c[0]-o*u:"end"===h?c[1]+o*u:(c[0]+c[1])/2,nk(h)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*ZS/180),nk(h)?a=KS.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,r){var i;n=ji(n-t),t=r[0]>r[1],r="start"===e&&!t||"start"!==e&&t;return e=Fi(n-ZS/2)?(i=r?"bottom":"top","center"):Fi(n-1.5*ZS)?(i=r?"top":"bottom","center"):(i="middle",n<1.5*ZS&&ZS/2<n?r?"left":"right":r?"right":"left"),{rotation:n,textAlign:e,textVerticalAlign:i}}(t.rotation,h,u||0,c),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=i.getFont(),u=(h=e.get("nameTruncate",!0)||{}).ellipsis,c=et(t.nameTruncateMaxWidth,h.maxWidth,s),Rc({el:t=new ys({x:o[0],y:o[1],rotation:a.rotation,silent:KS.isLabelSilent(e),style:$c(i,{text:p,font:l,overflow:"truncate",width:c,ellipsis:u,fill:i.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:i.get("align")||a.textAlign,verticalAlign:i.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((h=KS.makeAxisEventDataBase(e)).targetType="axisName",h.name=p,Cs(t).eventData=h),r.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function tk(t){t&&(t.ignore=!0)}function ek(t,e){var n,r=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(r&&i)return xe(n=ye([]),n,-t.rotation),r.applyTransform(me([],n,t.getLocalTransform())),i.applyTransform(me([],n,e.getLocalTransform())),r.intersect(i)}function nk(t){return"middle"===t||"center"===t}function rk(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(Bt(a,a,e),Bt(s,s,e)),new Au({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0}));kc(u.shape,u.style.lineWidth),u.anid=i+"_"+t[l].tickValue,o.push(u)}return o}function ik(t,e){return"all"===t||V(t)&&0<=P(t,e)||t===e}function ok(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[sk(t)]}function ak(t){return!!t.get(["handle","show"])}function sk(t){return t.type+"||"+t.id}var lk,uk={},ck=(n(hk,lk=mg),hk.prototype.render=function(t,e,n,r){var i,o,a,s,l,u;this.axisPointerClass&&(i=ok(i=t))&&(l=i.axisPointerModel,o=i.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=ak(l),null==u&&(a.status=l?"show":"hide"),(u=o.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=i.axis.scale.isBlank()?"hide":"show"),lk.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},hk.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},hk.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},hk.prototype.dispose=function(t,e){this._disposeAxisPointer(e),lk.prototype.dispose.apply(this,arguments)},hk.prototype._doUpdateAxisPointerClass=function(t,e,n){var r,i=hk.getAxisPointerClass(this.axisPointerClass);i&&((r=(r=ok(r=t))&&r.axisPointerModel)?(this._axisPointer||(this._axisPointer=new i)).render(t,r,e,n):this._disposeAxisPointer(e))},hk.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},hk.registerAxisPointerClass=function(t,e){uk[t]=e},hk.getAxisPointerClass=function(t){return t&&uk[t]},hk.type="axis",hk);function hk(){var t=null!==lk&&lk.apply(this,arguments)||this;return t.type=hk.type,t}var pk,fk=lo(),dk=["axisLine","axisTickLabel","axisName"],gk=["splitArea","splitLine","minorSplitLine"];n(yk,pk=ck),yk.prototype.render=function(t,e,n,r){this.group.removeAll();var i,o,a=this._axisGroup;this._axisGroup=new _i,this.group.add(this._axisGroup),t.get("show")&&(o=HS(i=t.getCoordSysModel(),t),o=new KS(t,C({handleAutoShown:function(e){for(var n=i.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(n_(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},o)),R(dk,o.add,o),this._axisGroup.add(o.getGroup()),R(gk,(function(e){t.get([e,"show"])&&mk[e](this,this._axisGroup,t,i)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||Oc(a,this._axisGroup,t),pk.prototype.render.call(this,t,e,n,r))},yk.prototype.remove=function(){fk(this).splitAreaColors=null},yk.type="cartesianAxis",Du=yk;function yk(){var t=null!==pk&&pk.apply(this,arguments)||this;return t.type=yk.type,t.axisPointerClass="CartesianAxisPointer",t}var vk,mk={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){n=n.getModel("splitLine");for(var o=n.getModel("lineStyle"),a=V(a=o.get("color"))?a:[a],s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=0,c=i.getTicksCoords({tickModel:n}),h=[],p=[],f=o.getLineStyle(),d=0;d<c.length;d++){var g=i.toGlobalCoord(c[d].coord),y=(g=(l?(h[0]=g,h[1]=s.y,p[0]=g,p[1]=s.y+s.height):(h[0]=s.x,h[1]=g,p[0]=s.x+s.width,p[1]=g),u++%a.length),c[d].tickValue);y=new Au({anid:null!=y?"line_"+c[d].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:I({stroke:a[g]},f),silent:!0});kc(y.shape,f.lineWidth),e.add(y)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=(n=n.getModel("minorSplitLine").getModel("lineStyle"),r.coordinateSystem.getRect()),a=i.isHorizontal(),s=i.getMinorTicksCoords();if(s.length)for(var l=[],u=[],c=n.getLineStyle(),h=0;h<s.length;h++)for(var p=0;p<s[h].length;p++){var f=i.toGlobalCoord(s[h][p].coord);f=(a?(l[0]=f,l[1]=o.y,u[0]=f,u[1]=o.y+o.height):(l[0]=o.x,l[1]=f,u[0]=o.x+o.width,u[1]=f),new Au({anid:"minor_line_"+s[h][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:c,silent:!0}));kc(f.shape,c.lineWidth),e.add(f)}},splitArea:function(t,e,n,r){var i=e,o=(e=r,(r=n).axis);if(!o.scale.isBlank()){r=r.getModel("splitArea"),n=r.getModel("areaStyle");var a=n.get("color"),s=e.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:r,clamp:!0});if(l.length){var u=a.length,c=fk(t).splitAreaColors,h=yt(),p=0;if(c)for(var f=0;f<l.length;f++){var d=c.get(l[f].tickValue);if(null!=d){p=(d+(u-1)*f)%u;break}}var g=o.toGlobalCoord(l[0].coord),y=n.getAreaStyle();for(a=V(a)?a:[a],f=1;f<l.length;f++){var v=o.toGlobalCoord(l[f].coord),m=void 0,_=void 0,x=void 0,b=void 0;g=o.isHorizontal()?(m=g,_=s.y,b=s.height,m+(x=v-m)):(m=s.x,_=g,x=s.width,_+(b=v-_)),v=l[f-1].tickValue;null!=v&&h.set(v,p),i.add(new hs({anid:null!=v?"area_"+v:null,shape:{x:m,y:_,width:x,height:b},style:I({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}fk(t).splitAreaColors=h}}}},_k=(n(xk,vk=Du),xk.type="xAxis",xk);function xk(){var t=null!==vk&&vk.apply(this,arguments)||this;return t.type=xk.type,t}n(Sk,bk=Du),Sk.type="yAxis";var bk,wk=Sk;function Sk(){var t=null!==bk&&bk.apply(this,arguments)||this;return t.type=_k.type,t}n(Ak,kk=mg),Ak.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new hs({shape:t.coordinateSystem.getRect(),style:I({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},Ak.type="grid";var kk,Mk=Ak;function Ak(){var t=null!==kk&&kk.apply(this,arguments)||this;return t.type="grid",t}var Tk={offset:0};ax((function(t){t.registerComponentView(Mk),t.registerComponentModel(SS),t.registerCoordinateSystem("cartesian2d",WS),OS(t,"x",AS,Tk),OS(t,"y",AS,Tk),t.registerComponentView(_k),t.registerComponentView(wk),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))})),n(Ok,Ck=gp),Ok.type="title",Ok.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var Ck,Ik=Ok;function Ok(){var t=null!==Ck&&Ck.apply(this,arguments)||this;return t.type=Ok.type,t.layoutMode={type:"box",ignoreSize:!0},t}n(Lk,Pk=mg),Lk.prototype.render=function(t,e,n){var r,i,o,a,s,l,u,c,h;this.group.removeAll(),t.get("show")&&(r=this.group,u=t.getModel("textStyle"),i=t.getModel("subtextStyle"),c=t.get("textAlign"),h=nt(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new ys({style:$c(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),i=new ys({style:$c(i,{text:l,fill:i.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!o&&!s,i.silent=!a&&!s,o&&u.on("click",(function(){tp(o,"_"+t.get("target"))})),a&&i.on("click",(function(){tp(a,"_"+t.get("subtarget"))})),Cs(u).eventData=Cs(i).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(u),l&&r.add(i),s=r.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=ap(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),c||("right"===(c="middle"===(c=t.get("left")||t.get("right"))?"center":c)?l.x+=l.width:"center"===c&&(l.x+=l.width/2)),h||("bottom"===(h="center"===(h=t.get("top")||t.get("bottom"))?"middle":h)?l.y+=l.height:"middle"===h&&(l.y+=l.height/2),h=h||"top"),r.x=l.x,r.y=l.y,r.markRedraw(),u.setStyle(n={align:c,verticalAlign:h}),i.setStyle(n),s=r.getBoundingRect(),u=l.margin,(c=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),h=new hs({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:c,subPixelOptimize:!0,silent:!0}),r.add(h))},Lk.type="title";var Pk,Dk=Lk;function Lk(){var t=null!==Pk&&Pk.apply(this,arguments)||this;return t.type=Lk.type,t}ax((function(t){t.registerComponentModel(Ik),t.registerComponentView(Dk)})),n(Nk,Ek=gp),Nk.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},Nk.prototype.mergeOption=function(t,e){Ek.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},Nk.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;V(e=!0===e?t.selector=["all","inverse"]:e)&&R(e,(function(t,r){$(t)&&(t={type:t}),e[r]=T(t,(r=n,"all"===(t=t.type)?{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}:void 0))}))},Nk.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}e||this.select(t[0].get("name"))}},Nk.prototype._updateData=function(t){var e=[],n=[],r=(t.eachRawSeries((function(r){var i,o=r.name;n.push(o),r.legendVisualProvider&&(o=r.legendVisualProvider.getAllNames(),t.isSeriesFiltered(r)||(n=n.concat(o)),o.length)?e=e.concat(o):i=!0,i&&oo(r)&&e.push(r.name)})),this._availableNames=n,this.get("data")||e),i=yt();r=N(r,(function(t){return($(t)||G(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new ch(t,this,this.ecModel))}),this);this._data=j(r,(function(t){return!!t}))},Nk.prototype.getData=function(){return this._data},Nk.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&R(this._data,(function(t){e[t.get("name")]=!1})),e[t]=!0},Nk.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},Nk.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},Nk.prototype.allSelect=function(){var t=this._data,e=this.option.selected;R(t,(function(t){e[t.get("name",!0)]=!0}))},Nk.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;R(t,(function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]}))},Nk.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=P(this._availableNames,t)},Nk.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},Nk.type="legend.plain",Nk.dependencies=["series"],Nk.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var Ek,Rk=Nk;function Nk(){var t=null!==Ek&&Ek.apply(this,arguments)||this;return t.type=Nk.type,t.layoutMode={type:"box",ignoreSize:!0},t}var Bk,jk=H,Fk=R,zk=_i,Hk=(n(Vk,Bk=mg),Vk.prototype.init=function(){this.group.add(this._contentGroup=new zk),this.group.add(this._selectorGroup=new zk),this._isFirstRender=!0},Vk.prototype.getContentGroup=function(){return this._contentGroup},Vk.prototype.getSelectorGroup=function(){return this._selectorGroup},Vk.prototype.render=function(t,e,n){var r,i,o,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(i=t.get("align"),r=t.get("orient"),i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===r?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(i,t,e,n,a,r,s=!a||s&&"auto"!==s?s:"horizontal"===r?"end":"start"),o=ap(e=t.getBoxLayoutParams(),r={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),o=ap(I({width:(i=this.layoutInner(t,i,o,l,a,s)).width,height:i.height},e),r,n),this.group.x=o.x-i.x,this.group.y=o.y-i.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=i,s=qh((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new hs({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},Vk.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Vk.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=yt(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){t.get("legendHoverLink")||c.push(t.id)})),Fk(e.getData(),(function(i,o){var a,h,p,f,d=i.get("name");this.newlineDisabled||""!==d&&"\n"!==d?(a=n.getSeriesByName(d)[0],l.get(d)||(a?(f=(p=a.getData()).getVisual("legendLineStyle")||{},h=p.getVisual("legendIcon"),p=p.getVisual("style"),(f=this._createItem(a,d,o,i,e,t,f,p,h,u,r)).on("click",jk(Uk,d,null,r,c)).on("mouseover",jk(Wk,a.name,null,r,c)).on("mouseout",jk(Gk,a.name,null,r,c)),n.ssr&&f.eachChild((function(t){t=Cs(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(d,!0)):n.eachRawSeries((function(a){var s,h,p;l.get(d)||a.legendVisualProvider&&(h=a.legendVisualProvider).containName(d)&&(p=h.indexOfName(d),s=h.getItemVisual(p,"style"),h=h.getItemVisual(p,"legendIcon"),(p=qn(s.fill))&&0===p[3]&&(p[3]=.2,s=C(C({},s),{fill:tr(p,"rgba")})),(p=this._createItem(a,d,o,i,e,t,{},s,h,u,r)).on("click",jk(Uk,null,d,r,c)).on("mouseover",jk(Wk,null,d,r,c)).on("mouseout",jk(Gk,null,d,r,c)),n.ssr&&p.eachChild((function(t){t=Cs(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(d,!0))}),this))):((p=new zk).newline=!0,s.add(p))}),this),i&&this._createSelector(i,e,r,o,a)},Vk.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();Fk(t,(function(t){var r=t.type,i=new ys({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Vc(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),pl(i)}))},Vk.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,p=i.get("itemWidth"),f=i.get("itemHeight"),d=i.isSelected(e),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),v=r.get("icon");a=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),Fk(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle();t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");return u.decal=l&&"inherit"!==l?Zy(l,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[t]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r),l=e.getModel("lineStyle"),a=l.getLineStyle(),s(a,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===a.stroke&&(a.stroke=r.fill),o||(i=e.get("inactiveBorderWidth"),n=u[t],u.lineWidth="auto"===i?0<r.lineWidth&&n?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth")),{itemStyle:u,lineStyle:a}}(l=v||l||"roundRect",r,a,s,h,d,c),s=new zk,h=r.getModel("textStyle"),!U(t.getLegendIcon)||v&&"inherit"!==v?(c="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",n=ky(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:p,itemHeight:f,icon:l,iconRotate:c,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),v="left"===o?p+5:-5,c=o,t=i.get("formatter"),l=e,$(t)&&t?l=t.replace("{name}",null!=e?e:""):U(t)&&(l=t(e)),g=d?h.getTextColor():r.get("inactiveColor"),s.add(new ys({style:$c(h,{text:l,x:v,y:f/2,fill:g,align:c,verticalAlign:"middle"},{inheritColor:g})})),a=new hs({shape:s.getBoundingRect(),style:{fill:"transparent"}}),y=r.getModel("tooltip");return y.get("show")&&Rc({el:a,componentModel:i,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild((function(t){t.silent=!0})),a.silent=!u,this.getContentGroup().add(s),pl(s),s.__legendDataIndex=n,s},Vk.prototype.layoutInner=function(t,e,n,r,i,o){var a,s,l,u,c,h=this.getContentGroup(),p=this.getSelectorGroup(),f=(n=(op(t.get("orient"),h,t.get("itemGap"),n.width,n.height),h.getBoundingRect()),[-n.x,-n.y]);return p.markRedraw(),h.markRedraw(),i?(op("horizontal",p,t.get("selectorItemGap",!0)),a=[-(i=p.getBoundingRect()).x,-i.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",c=0===t?"y":"x","end"===o?a[t]+=n[l]+s:f[t]+=i[l]+s,a[1-t]+=n[u]/2-i[u]/2,p.x=a[0],p.y=a[1],h.x=f[0],h.y=f[1],(o={x:0,y:0})[l]=n[l]+s+i[l],o[u]=Math.max(n[u],i[u]),o[c]=Math.min(0,i[c]+a[1-t]),o):(h.x=f[0],h.y=f[1],this.group.getBoundingRect())},Vk.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Vk.type="legend.plain",Vk);function Vk(){var t=null!==Bk&&Bk.apply(this,arguments)||this;return t.type=Vk.type,t.newlineDisabled=!1,t}function Uk(t,e,n,r){Gk(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Wk(t,e,n,r)}function $k(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function Wk(t,e,n,r){$k(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function Gk(t,e,n,r){$k(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function qk(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function Yk(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name)),R(n.getData(),(function(t){var e;t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),i.hasOwnProperty(t)?i[t]=i[t]&&e:i[t]=e)}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function Xk(t){t.registerComponentModel(Rk),t.registerComponentView(Hk),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,qk),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),(t=t).registerAction("legendToggleSelect","legendselectchanged",H(Yk,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",H(Yk,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",H(Yk,"inverseSelect")),t.registerAction("legendSelect","legendselected",H(Yk,"select")),t.registerAction("legendUnSelect","legendunselected",H(Yk,"unSelect"))}n(Jk,Zk=Rk),Jk.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Jk.prototype.init=function(t,e,n){var r=up(t);Zk.prototype.init.call(this,t,e,n),Qk(this,t,r)},Jk.prototype.mergeOption=function(t,e){Zk.prototype.mergeOption.call(this,t,e),Qk(this,this.option,t)},Jk.type="legend.scroll",Jk.defaultOption=dh(Rk.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800});var Zk,Kk=Jk;function Jk(){var t=null!==Zk&&Zk.apply(this,arguments)||this;return t.type=Jk.type,t}function Qk(t,e,n){var r=[1,1];r[t.getOrient().index]=0,lp(e,n,{type:"box",ignoreSize:!!r})}var tM,eM=_i,nM=["width","height"],rM=["x","y"],iM=(n(oM,tM=Hk),oM.prototype.init=function(){tM.prototype.init.call(this),this.group.add(this._containerGroup=new eM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new eM)},oM.prototype.resetInner=function(){tM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},oM.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this,l=(tM.prototype.renderInner.call(this,t,e,n,r,i,o,a),this._controllerGroup),u=(t=e.get("pageIconSize",!0),V(t)?t:[t,t]);c("pagePrev",0),n=e.getModel("pageTextStyle");function c(t,n){var i=t+"DataIndex";n=Lc(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:z(s._pageGo,s,i,e,r)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});n.name=t,l.add(n)}l.add(new ys({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),c("pageNext",1)},oM.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=nM[s],u=rM[s],c=nM[1-s],h=rM[1-s],p=(i&&op("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=a.getBoundingRect(),d=[-f.x,-f.y],g=A(n);i&&(g[l]=n[l]-f[l]-p),n=this._layoutContentAndController(t,r,g,s,l,c,h,u);return i&&("end"===o?d[s]+=n[l]+p:(t=f[l]+p,d[s]-=t,n[u]-=t),n[l]+=f[l]+p,d[1-s]+=n[h]+n[c]/2-f[c]/2,n[c]=Math.max(n[c],f[c]),n[h]=Math.min(n[h],f[h]+d[1-s]),a.x=d[0],a.y=d[1],a.markRedraw()),n},oM.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup,h=(op(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),op("horizontal",c,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=c.getBoundingRect(),f=this._showController=h[i]>n[i],d=[-h.x,-h.y],g=(e=(e||(d[r]=l[s]),[0,0]),s=[-p.x,-p.y],nt(t.get("pageButtonGap",!0),t.get("itemGap",!0)));f&&("end"===t.get("pageButtonPosition",!0)?s[r]+=n[i]-p[i]:e[r]+=p[i]+g),s[1-r]+=h[o]/2-p[o]/2,l.setPosition(d),u.setPosition(e),c.setPosition(s),d={x:0,y:0},d[i]=(f?n:h)[i],d[o]=Math.max(h[o],p[o]),d[a]=Math.min(0,p[a]+s[1-r]),u.__rectSize=n[i],f?((e={x:0,y:0})[i]=Math.max(n[i]-p[i]-g,0),e[o]=d[o],u.setClipPath(new hs({shape:e})),u.__rectSize=e[i]):c.eachChild((function(t){t.attr({invisible:!0,silent:!0})})),h=this._getPageInfo(t);return null!=h.pageIndex&&oc(l,{x:h.contentPosition[0],y:h.contentPosition[1]},f?t:null),this._updatePageInfoView(t,h),d},oM.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t],null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},oM.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,r=(R(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"];r=n.childOfName(r);r&&(r.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=i?"pointer":"default")})),n.childOfName("pageText")),i=t.get("pageFormatter"),o=e.pageIndex,a=(o=null!=o?o+1:0,e.pageCount);r&&i&&r.setStyle("text",$(i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):i({current:o,total:a}))},oM.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=(t=t.getOrient().index,nM[t]),o=rM[t],a=(e=this._findTargetItemIndex(e),n.children()),s=a[e],l=a.length,u=l?1:0,c={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s),c.contentPosition[t]=-n.s;for(var h=e+1,p=n,f=n,d=null;h<=l;++h)(!(d=g(a[h]))&&f.e>p.s+r||d&&!y(d,p.s))&&(p=f.i>p.i?f:d)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=p.i),++c.pageCount),f=d;for(h=e-1,p=n,f=n,d=null;-1<=h;--h)(d=g(a[h]))&&y(f,d.s)||!(p.i<f.i)||(f=p,null==c.pagePrevDataIndex&&(c.pagePrevDataIndex=p.i),++c.pageCount,++c.pageIndex),p=d}return c;function g(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[o]+t[o],e:n+e[i],i:t.__legendDataIndex}}function y(t,e){return t.e>=e&&t.s<=e+r}},oM.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild((function(r,i){r=r.__legendDataIndex,null==n&&null!=r&&(n=i),r===t&&(e=i)})),null!=e?e:n):0},oM.type="legend.scroll",oM);function oM(){var t=null!==tM&&tM.apply(this,arguments)||this;return t.type=oM.type,t.newlineDisabled=!0,t._currentIndex=0,t}ax((function(t){ax(Xk),t.registerComponentModel(Kk),t.registerComponentView(iM),t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}));var aM=lo(),sM=A,lM=z;function uM(){this._dragging=!1,this.animationThreshold=15}function cM(t,e,n,r){!function t(e,n){var r;return q(e)&&q(n)?(r=!0,R(n,(function(n,i){r=r&&t(e[i],n)})),!!r):e===n}(aM(n).lastProp,r)&&(aM(n).lastProp=r,e?oc(n,r,t):(n.stopAnimation(),n.attr(r)))}function hM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function pM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fM(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}function dM(t,e,n,r,i){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:i.precision});i=i.formatter;return i&&(o={value:J_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},R(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex);t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)})),$(i)?a=i.replace("{value}",a):U(i)&&(a=i(o))),a}function gM(t,e,n){var r=ge();return xe(r,r,n.rotation),_e(r,r,n.position),Tc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}uM.prototype.render=function(t,e,n,r){var i,o,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!r&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,r=this._group,i=this._handle,s&&"hide"!==s?(r&&r.show(),i&&i.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),r?(o=H(cM,e,o),this.updatePointerEl(r,s,o),this.updateLabelEl(r,s,o,e)):(r=this._group=new _i,this.createPointerEl(r,s,t,e),this.createLabelEl(r,s,t,e),n.getZr().add(r)),fM(r,e,!0),this._renderHandle(a)):(r&&r.hide(),i&&i.hide()))},uM.prototype.remove=function(t){this.clear(t)},uM.prototype.dispose=function(t){this.clear(t)},uM.prototype.determineAnimation=function(t,e){var n,r=e.get("animation"),i=t.axis,o="category"===i.type;e=e.get("snap");return!(!e&&!o)&&("auto"===r||null==r?(n=this.animationThreshold,o&&i.getBandWidth()>n||!!e&&(o=ok(t).seriesDataCount,e=i.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===r)},uM.prototype.makeElOption=function(t,e,n,r,i){},uM.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;i&&(i=aM(t).pointerEl=new jc[i.type](sM(e.pointer)),t.add(i))},uM.prototype.createLabelEl=function(t,e,n,r){e.label&&(e=aM(t).labelEl=new ys(sM(e.label)),t.add(e),hM(e,r))},uM.prototype.updatePointerEl=function(t,e,n){t=aM(t).pointerEl,t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},uM.prototype.updateLabelEl=function(t,e,n,r){t=aM(t).labelEl,t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),hM(t,r))},uM.prototype._renderHandle=function(t){var e,n,r,i,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=e.getModel("handle"),a=e.get("status"),i.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,r=this._handle=Lc(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ue(t.event)},onmousedown:lM(this._onHandleDragMove,this,0,0),drift:lM(this._onHandleDragMove,this),ondragend:lM(this._onHandleDragEnd,this)}),n.add(r)),fM(r,e,!1),r.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=i.get("size"))||(a=[a,a]),r.scaleX=a[0]/2,r.scaleY=a[1]/2,Eg(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(r&&n.remove(r),this._handle=null))},uM.prototype._moveHandleToValue=function(t,e){cM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,pM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},uM.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(pM(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(pM(t)),aM(n).lastProp=null,this._doDispatchAxisPointer())},uM.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},uM.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},uM.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;t=t.getZr();var e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Rg(this,"_doDispatchAxisPointer")},uM.prototype.doClear=function(){},uM.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},n(mM,yM=uM),mM.prototype.makeElOption=function(t,e,n,r,i){var o,a,s=n.axis,l=s.grid,u=r.get("type"),c=_M(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(o=(a=r).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=xM[u](s,h,c)).style=o,t.graphicKey=a.type,t.pointer=a),HS(l.model,n));u=e,s=t,h=p,c=n,o=r,a=i,l=KS.innerTextLayout(h.rotation,0,h.labelDirection),h.labelMargin=o.get(["label","margin"]),function(t,e,n,r,i){var o=dM(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=(n=n.getModel("label"),qh(n.get("padding")||0)),s=n.getFont(),l=ei(o,s),u=i.position,c=l.width+a[1]+a[3],h=(l=l.height+a[0]+a[2],i.align);"right"===h&&(u[0]-=c),"center"===h&&(u[0]-=c/2),h=i.verticalAlign,"bottom"===h&&(u[1]-=l),"middle"===h&&(u[1]-=l/2),i=u,h=c,c=l,r=(l=r).getWidth(),l=l.getHeight(),i[0]=Math.min(i[0]+h,r)-h,i[1]=Math.min(i[1]+c,l)-c,i[0]=Math.max(i[0],0),i[1]=Math.max(i[1],0),r=n.get("backgroundColor"),r&&"auto"!==r||(r=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:$c(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:r}),z2:10}}(s,c,o,a,{position:gM(c.axis,u,h),align:l.textAlign,verticalAlign:l.textVerticalAlign})},mM.prototype.getHandleTransform=function(t,e,n){var r=HS(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]),n=gM(e.axis,t,r);return{x:n[0],y:n[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},mM.prototype.updateHandleTransform=function(t,e,n,r){n=n.axis;var i=n.grid,o=n.getGlobalExtent(!0),a=(i=_M(i,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,[t.x,t.y]);a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),e=(i[1]+i[0])/2,o=[e,e];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var yM,vM=mM;function mM(){return null!==yM&&yM.apply(this,arguments)||this}function _M(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var xM={line:function(t,e,n){var r;return r=[e,n[0]],e=[e,n[1]],n=bM(t),{type:"Line",subPixelOptimize:!0,shape:{x1:r[n=n||0],y1:r[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:(e=[e-r/2,n[0]],n=[r,i],r=bM(t),{x:e[r=r||0],y:e[1-r],width:n[r],height:n[1-r]})}}};function bM(t){return"x"===t.dim?0:1}n(kM,wM=gp),kM.type="axisPointer",kM.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var wM,SM=kM;function kM(){var t=null!==wM&&wM.apply(this,arguments)||this;return t.type=kM.type,t}var MM=lo(),AM=R;function TM(t,e,n){var r,i,a;function s(t,e){i.on(t,(function(t){n=a;var n,r,o={dispatchAction:function t(e){var i=r[e.type];i?i.push(e):(e.dispatchAction=t,n.dispatchAction(e))},pendings:r={showTip:[],hideTip:[]}};AM(MM(i).records,(function(n){n&&e(n,t,o.dispatchAction)}));var s,l=o.pendings,u=a,c=l.showTip.length,h=l.hideTip.length;c?s=l.showTip[c-1]:h&&(s=l.hideTip[h-1]),s&&(s.dispatchAction=null,u.dispatchAction(s))}))}o.node||(r=e.getZr(),MM(r).records||(MM(r).records={}),a=e,MM(i=r).initialized||(MM(i).initialized=!0,s("click",H(IM,"click")),s("mousemove",H(IM,"mousemove")),s("globalout",CM)),(MM(r).records[t]||(MM(r).records[t]={})).handler=n)}function CM(t,e,n){t.handler("leave",null,n)}function IM(t,e,n,r){e.handler(t,n,r)}function OM(t,e){o.node||(e=e.getZr(),(MM(e).records||{})[t]&&(MM(e).records[t]=null))}n(LM,PM=mg),LM.prototype.render=function(t,e,n){e=e.getComponent("tooltip");var r=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";TM("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||0<=r.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},LM.prototype.remove=function(t,e){OM("axisPointer",e)},LM.prototype.dispose=function(t,e){OM("axisPointer",e)},LM.type="axisPointer";var PM,DM=LM;function LM(){var t=null!==PM&&PM.apply(this,arguments)||this;return t.type=LM.type,t}function EM(t,e){var n,r,i,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=so(n=e.getData(),t))||s<0||V(s)?{point:[]}:(r=n.getItemGraphicEl(s),i=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:i&&i.dataToPoint?a=t.isStacked?(e=i.getBaseAxis(),t=i.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),i.dataToPoint(o)||[]):i.dataToPoint(n.getValues(N(i.dimensions,(function(t){return n.mapDimension(t)})),s))||[]:r&&((e=r.getBoundingRect().clone()).applyTransform(r.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:r})}var RM=lo();function NM(t,e,n){var r,i,o,a,s,l,u,c,h,p,f,d,g,y,v=t.currTrigger,m=[t.x,t.y],_=t,x=t.dispatchAction||z(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return HM(m)&&(m=EM({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=HM(m),i=_.axesInfo,o=b.axesInfo,a="leave"===v||HM(m),s={},e={list:[],map:{}},u={showPointer:H(jM,l={}),showTooltip:H(FM,e)},R(b.coordSysMap,(function(t,e){var n=r||t.containPoint(m);R(b.coordSysAxesInfo[e],(function(t,e){var o=t.axis,l=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(i,t);a||!n||i&&!l||null!=(l=null!=(l=l&&l.value)||r?l:o.pointToData(m))&&BM(t,l,u,!1,s)}))})),c={},R(o,(function(t,e){var n=t.linkGroup;n&&!l[e]&&R(n.axesInfo,(function(e,r){r=l[r];e!==t&&r&&(r=r.value,n.mapper&&(r=t.axis.scale.parse(n.mapper(r,zM(e),zM(t)))),c[t.key]=r)}))})),R(c,(function(t,e){BM(o[e],t,u,!0,s)})),h=l,_=o,p=s.axesInfo=[],R(_,(function(t,e){var n=t.axisPointerModel.option;e=h[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})})),v=e,_=t,e=x,HM(t=m)||!v.list.length?e({type:"hideTip"}):(x=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:v.list})),e=o,_=(t=n).getZr(),x="axisPointerLastHighlights",f=RM(_)[x]||{},d=RM(_)[x]={},R(e,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&R(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;d[e]=t}))})),g=[],y=[],R(f,(function(t,e){d[e]||y.push(t)})),R(d,(function(t,e){f[e]||g.push(t)})),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),s}function BM(t,e,n,r,i){var o,a,s,l,u,c,h,p,f,d,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,c=[],h=Number.MAX_VALUE,p=-1,R(t.seriesModels,(function(t,e){var n,r=t.getData().mapDimensionsAll(l);if(t.getAxisTooltipData){var i=t.getAxisTooltipData(r,a,s),o=i.dataIndices;i=i.nestestValue}else{if(!(o=t.getData().indicesOfNearest(r[0],a,"category"===s.type?.5:null)).length)return;i=t.getData().get(r[0],o[0])}null!=i&&isFinite(i)&&(r=a-i,(n=Math.abs(r))<=h)&&((n<h||0<=r&&p<0)&&(h=n,p=r,u=i,c.length=0),R(o,(function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))})),d=(o={payloadBatch:c,snapToValue:u}).snapToValue,(f=o.payloadBatch)[0]&&null==i.seriesIndex&&C(i,f[0]),!r&&t.snap&&g.containData(d)&&null!=d&&(e=d),n.showPointer(t,e,f),n.showTooltip(t,o,d)):n.showPointer(t,e))}function jM(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function FM(t,e,n,r){n=n.payloadBatch;var i,o,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(i=sk(e=e.coordSys.model),(o=t.map[i])||(o=t.map[i]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function zM(t){var e=t.axis.model,n={};t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function HM(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function VM(t){ck.registerAxisPointerClass("CartesianAxisPointer",vM),t.registerComponentModel(SM),t.registerComponentView(DM),t.registerPreprocessor((function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!V(e)&&(t.axisPointer.link=[e])})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n,r,i,o,a,s,l,u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n=u,e=e,i=(r=t).getComponent("tooltip"),o=r.getComponent("axisPointer"),a=o.get("link",!0)||[],s=[],R(e.getCoordinateSystems(),(function(t){var e,l,u,c,h;function p(i,u,c){var h,p,f=c.model.getModel("axisPointer",o),d=f.get("show");d&&("auto"!==d||i||ak(f))&&(null==u&&(u=f.get("triggerTooltip")),d=(f=i?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};return R(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=A(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line"),e=s.label||(s.label={}),null==e.show&&(e.show=!1),"cross"===i&&(i=a.get(["label","show"]),e.show=null==i||i,o||(i=s.lineStyle=a.get("crossStyle"))&&I(e,i.textStyle)),t.model.getModel("axisPointer",new ch(s,n,r))}(c,l,o,r,i,u):f).get("snap"),i=f.get("triggerEmphasis"),h=sk(c.model),p=u||d||"category"===c.type,u=n.axesInfo[h]={key:h,axis:c,coordSys:t,axisPointerModel:f,triggerTooltip:u,triggerEmphasis:i,involveSeries:p,snap:d,useHandle:ak(f),seriesModels:[],linkGroup:null},e[h]=u,n.seriesInvolved=n.seriesInvolved||p,null!=(i=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(ik(o[r+"AxisId"],n.id)||ik(o[r+"AxisIndex"],n.componentIndex)||ik(o[r+"AxisName"],n.name))return i}}(a,c)))&&((d=s[i]||(s[i]={axesInfo:{}})).axesInfo[h]=u,d.mapper=a[i].mapper,u.linkGroup=d)}t.axisPointerEnabled&&(u=sk(t.model),e=n.coordSysAxesInfo[u]={},l=(n.coordSysMap[u]=t).model.getModel("tooltip",i),R(t.getAxes(),H(p,!1,null)),t.getTooltipAxes)&&i&&l.get("show")&&(u="axis"===l.get("trigger"),c="cross"===l.get(["axisPointer","type"]),h=t.getTooltipAxes(l.get(["axisPointer","axis"])),(u||c)&&R(h.baseAxes,H(p,!c||"cross",u)),c)&&R(h.otherAxes,H(p,"cross",!1))})),u.seriesInvolved&&(l=u,t.eachSeries((function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&R(l.coordSysAxesInfo[sk(e.model)],(function(n){var r=n.axis;e.getAxis(r.dim)===r&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())}))}))),u}(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},NM)}n(WM,UM=gp),WM.type="tooltip",WM.dependencies=["axisPointer"],WM.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}};var UM,$M=WM;function WM(){var t=null!==UM&&UM.apply(this,arguments)||this;return t.type=WM.type,t}function GM(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function qM(t){if(o.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var YM=qM(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function XM(t,e){if(!t)return e;e=Gh(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var ZM=XM(qM(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),KM=XM(YM,"transform"),JM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(o.transform3dSupported?"will-change:transform;":"");function QM(t,e,n){var r;t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return o.transformSupported?(r="translate"+((r=o.transform3dSupported)?"3d":"")+"("+t+","+e+(r?",0":"")+")",n?"top:0;left:0;"+KM+":"+r+";":[["top",0],["left",0],[YM,r]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function tA(t,e,n,r,i){var o,a,s=e&&e.painter;n?(o=s&&s.getViewportRoot())&&(a=t,n=n,Kt(Zt,o,r,i,!0))&&Kt(a,n,Zt[0],Zt[1]):(t[0]=r,t[1]=i,(o=s&&s.getViewportRootOffset())&&(t[0]+=o.offsetLeft,t[1]+=o.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}nA.prototype.update=function(t){this._container||(r=this._api.getDom(),n="position",n=(e=(e=r).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=r.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=t.get("className")||""},nA.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=JM+function(t,e,n){var r,i,a=[],s=t.get("transitionDuration"),l=t.get("backgroundColor"),u=t.get("shadowBlur"),c=t.get("shadowColor"),h=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),f=t.getModel("textStyle"),d=rg(t,"html");return a.push("box-shadow:"+h+"px "+p+"px "+u+"px "+c),e&&s&&a.push((c="opacity"+(u=" "+(h=s)/2+"s "+(p="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+u,n||(u=" "+h+"s "+p,c+=o.transformSupported?","+KM+u:",left"+u+",top"+u),ZM+":"+c)),l&&a.push("background-color:"+l),R(["width","color","radius"],(function(e){var n="border-"+e,r=Gh(n);r=t.get(r);null!=r&&a.push(n+":"+r+("color"===e?"":"px"))})),a.push((i=[],e=(r=f).get("fontSize"),(s=r.getTextColor())&&i.push("color:"+s),i.push("font:"+r.getFont()),e&&i.push("line-height:"+Math.round(3*e/2)+"px"),s=r.get("textShadowColor"),e=r.get("textShadowBlur")||0,n=r.get("textShadowOffsetX")||0,h=r.get("textShadowOffsetY")||0,s&&e&&i.push("text-shadow:"+n+"px "+h+"px "+e+"px "+s),R(["decoration","align"],(function(t){var e=r.get(t);e&&i.push("text-"+t+":"+e)})),i.join(";"))),null!=d&&a.push("padding:"+qh(d).join("px ")+"px"),a.join(";")+";"}(t,!this._firstShow,this._longHide)+QM(i[0],i[1],!0)+"border-color:"+Qh(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},nA.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,u,c,h="";if($(i)&&"item"===n.get("trigger")&&!GM(n)&&(n=n,r=r,h=$(i=i)&&"inside"!==i?(a=n.get("backgroundColor"),n=n.get("borderWidth"),r=Qh(r),i=i="left"===(i=i)?"right":"right"===i?"left":"top"===i?"bottom":"top",p=Math.max(1.5*Math.round(n),6),s="",l=KM+":",-1<P(["left","right"],i)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==i?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==i?225:45)+"deg)"),c=c*Math.PI/180,c=(u=p+n)*Math.abs(Math.cos(c))+u*Math.abs(Math.sin(c)),r=r+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(s+=";"+i+":-"+Math.round(100*((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-u)/2))/100+"px")+";"+l+";","border-bottom:"+r,"border-right:"+r,"background-color:"+a+";"].join("")+'"></div>'):""),$(t))o.innerHTML=t+h;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var p,f=0;f<t.length;f++)Z(t[f])&&t[f].parentNode!==o&&o.appendChild(t[f]);h&&o.childNodes.length&&((p=document.createElement("div")).innerHTML=h,o.appendChild(p))}}},nA.prototype.setEnterable=function(t){this._enterable=t},nA.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},nA.prototype.moveTo=function(t,e){var n,r=this._styleCoord;tA(r,this._zr,this._container,t,e),null!=r[0]&&null!=r[1]&&(n=this.el.style,R(QM(r[0],r[1]),(function(t){n[t[0]]=t[1]})))},nA.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},nA.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",o.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},nA.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(z(this.hide,this),t)):this.hide())},nA.prototype.isShow=function(){return this._show},nA.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var eA=nA;function nA(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,o.wxa)return null;var n=document.createElement("div"),r=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),i=(e=e.appendTo,e=e&&($(e)?document.querySelector(e):Z(e)?e:U(e)&&e(t.getDom())),tA(this._styleCoord,r,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){i._enterable&&(clearTimeout(i._hideTimeout),i._show=!0),i._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,i._enterable||(e=r.handler,le(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){i._inContent=!1,i._enterable&&i._show&&i.hideLater(i._hideDelay)}}iA.prototype.update=function(t){t=t.get("alwaysShowContent"),t&&this._moveIfResized(),this._alwaysShowContent=t},iA.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},iA.prototype.setContent=function(t,e,n,r,i){var o=this,a=(q(t)&&Xi(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new ys({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:rg(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),R(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el),this);this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},iA.prototype.setEnterable=function(t){this._enterable=t},iA.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect();t=aA(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},iA.prototype.moveTo=function(t,e){var n,r,i=this.el;i&&(sA(r=this._styleCoord,this._zr,t,e),t=r[0],e=r[1],n=oA((r=i.style).borderWidth||0),r=aA(r),i.x=t+n+r.left,i.y=e+n+r.top,i.markRedraw())},iA.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},iA.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},iA.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(z(this.hide,this),t)):this.hide())},iA.prototype.isShow=function(){return this._show},iA.prototype.dispose=function(){this._zr.remove(this.el)};var rA=iA;function iA(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),sA(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function oA(t){return Math.max(0,t)}function aA(t){var e=oA(t.shadowBlur||0),n=oA(t.shadowOffsetX||0);t=oA(t.shadowOffsetY||0);return{left:oA(e-n),right:oA(e+n),top:oA(e-t),bottom:oA(e+t)}}function sA(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var lA,uA=new hs({shape:{x:-1,y:-1,width:2,height:2}}),cA=(n(hA,lA=mg),hA.prototype.init=function(t,e){var n;!o.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?o.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new rA(e):new eA(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},hA.prototype.render=function(t,e,n){!o.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Eg(this,"_updatePosition",50,"fixRate"):Rg(this,"_updatePosition"))},hA.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");TM("itemTooltip",this._api,z((function(e,n,r){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},hA.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,r=this._api,i=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){r.isDisposed()||t.manuallyShowTip(e,n,r,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})})))},hA.prototype.manuallyShowTip=function(t,e,n,r){var i,a,s,l;r.from!==this.uid&&!o.node&&n.getDom()&&(i=fA(r,n),this._ticket="",l=r.dataByCoordSys,(a=function(t,e,n){var r=ho(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o;e=go(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse((function(e){var n=Cs(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o))return{componentMainType:i,componentIndex:e.componentIndex,el:o}}}(r,e,n))?((s=a.el.getBoundingRect().clone()).applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)):r.tooltip&&null!=r.x&&null!=r.y?((s=uA).x=r.x,s.y=r.y,s.update(),Cs(s).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:s},i)):l?this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:l,tooltipOption:r.tooltipOption},i):null!=r.seriesIndex?this._manuallyAxisShowTip(t,e,n,r)||(s=(a=EM(r,e)).point[0],l=a.point[1],null!=s&&null!=l&&this._tryShow({offsetX:s,offsetY:l,target:a.el,position:r.position,positionDefault:"bottom"},i)):null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i)))},hA.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(fA(r,n))},hA.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a&&(a=e.getSeriesByIndex(i),a&&(e=pA([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger"))))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0},hA.prototype._tryShow=function(t,e){var n,r,i,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):o?"legend"!==Cs(o).ssrType&&(hy(o,(function(t){return null!=Cs(t).dataIndex?(r=t,1):null!=Cs(t).tooltipConfig&&(i=t,1)}),!(this._lastDataByCoordSys=null)),r?this._showSeriesItemTooltip(t,r,e):i?this._showComponentItemTooltip(t,i,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},hA.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=z(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},hA.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=pA([e.tooltipOption],r),a=this._renderMode,s=[],l=Xd("section",{blocks:[],noHeader:!0}),u=[],c=new ig,h=(R(t,(function(t){R(t.dataByAxis,(function(t){var e,i,o=n.getComponent(t.axisDim+"Axis",t.axisIndex),h=t.value;o&&null!=h&&(e=dM(h,o.axis,n,t.seriesDataIndices,t.valueLabelOpt),i=Xd("section",{header:e,noHeader:!st(e),sortBlocks:!0,blocks:[]}),l.blocks.push(i),R(t.seriesDataIndices,(function(l){var p,f=n.getSeriesByIndex(l.seriesIndex),d=(l=l.dataIndexInside,f.getDataParams(l));d.dataIndex<0||(d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=J_(o.axis,{value:h}),d.axisValueLabel=e,d.marker=c.makeTooltipMarker("item",Qh(d.color),a),(p=(l=Jf(f.formatTooltip(l,!0,null))).frag)&&(f=pA([f],r).get("valueFormatter"),i.blocks.push(f?C({valueFormatter:f},p):p)),l.text&&u.push(l.text),s.push(d))})))}))})),l.blocks.reverse(),u.reverse(),e.position),p=(e=o.get("order"),e=tg(l,c,a,e,n.get("useUTC"),o.get("textStyle")),e=(e&&u.unshift(e),"richText"===a?"\n\n":"<br/>"),u.join(e));this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,p,s,Math.random()+"",i[0],i[1],h,null,c)}))},hA.prototype._showSeriesItemTooltip=function(t,e,n){var r,i,o,a,s,l=this._ecModel,u=(e=Cs(e),e.seriesIndex),c=l.getSeriesByIndex(u),h=e.dataModel||c,p=e.dataIndex,f=(e=e.dataType,h.getData(e)),d=this._renderMode,g=t.positionDefault,y=pA([f.getItemModel(p),h,c&&(c.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null);c=y.get("trigger");null!=c&&"item"!==c||(r=h.getDataParams(p,e),i=new ig,r.marker=i.makeTooltipMarker("item",Qh(r.color),d),g=Jf(h.formatTooltip(p,!1,e)),c=y.get("order"),e=y.get("valueFormatter"),o=g.frag,a=o?tg(e?C({valueFormatter:e},o):o,i,d,c,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+h.name+"_"+p,this._showOrMove(y,(function(){this._showTooltipContent(y,a,r,s,t.offsetX,t.offsetY,t.position,t.target,i)})),n({type:"showTip",dataIndexInside:p,dataIndex:f.getRawIndex(p),seriesIndex:u,from:this.uid}))},hA.prototype._showComponentItemTooltip=function(t,e,n){var r=Cs(e),i=r.tooltipConfig.option||{},o=[i=$(i)?{content:i,formatter:i}:i],a=(r=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(r&&o.push(r),o.push({formatter:i.content}),t.positionDefault),pA(o,this._tooltipModel,r?{position:r}:null)),s=a.get("content"),l=Math.random()+"",u=new ig;this._showOrMove(a,(function(){var n=A(a.get("formatterParams")||{});this._showTooltipContent(a,s,n,l,t.offsetX,t.offsetY,t.position,e,u)})),n({type:"showTip",from:this.uid})},hA.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){var u,c,h,p,f;this._ticket="",t.get("showContent")&&t.get("show")&&((u=this._tooltipContent).setEnterable(t.get("enterable")),c=t.get("formatter"),a=a||t.get("position"),e=e,h=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color,c&&(e=$(c)?(p=t.ecModel.get("useUTC"),e=c,Kh(e=(f=V(n)?n[0]:n)&&f.axisType&&0<=f.axisType.indexOf("time")?Ih(f.axisValue,e,p):e,n,!0)):U(c)?(f=z((function(e,r){e===this._ticket&&(u.setContent(r,l,t,h,a),this._updatePosition(t,a,i,o,u,n,s))}),this),this._ticket=r,c(n,r,f)):c),u.setContent(e,l,t,h,a),u.show(t,h),this._updatePosition(t,a,i,o,u,n,s))},hA.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||V(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:V(e)?void 0:{color:r||e.color||e.borderColor}},hA.prototype._updatePosition=function(t,e,n,r,i,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),c=(e=e||t.get("position"),i.getSize()),h=t.get("align"),p=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();a&&f.applyTransform(a.transform),V(e=U(e)?e([n,r],o,i.el,f,{viewSize:[l,u],contentSize:c.slice()}):e)?(n=Pi(e[0],l),r=Pi(e[1],u)):q(e)?((o=e).width=c[0],o.height=c[1],n=(o=ap(o,{width:l,height:u})).x,r=o.y,p=h=null):(n=(s=$(e)&&a?function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,f,c,t.get("borderWidth")):function(t,e,n,r,i,o,a){n=n.getSize();var s=n[0];n=n[1];return null!=o&&(r<t+s+o+2?t-=s+o:t+=o),null!=a&&(i<e+n+a?e-=n+a:e+=a),[t,e]}(n,r,i,l,u,h?null:20,p?null:20))[0],r=s[1]),h&&(n-=dA(h)?c[0]/2:"right"===h?c[0]:0),p&&(r-=dA(p)?c[1]/2:"bottom"===p?c[1]:0),GM(t)&&(o=n,a=r,e=l,f=u,h=(h=i).getSize(),p=h[0],h=h[1],o=Math.min(o+p,e)-p,a=Math.min(a+h,f)-h,o=Math.max(o,0),a=Math.max(a,0),n=(s=[o,a])[0],r=s[1]),i.moveTo(n,r)},hA.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&R(n,(function(n,o){n=n.dataByAxis||[];var a=(t[o]||{}).dataByAxis||[];(i=i&&n.length===a.length)&&R(n,(function(t,n){n=a[n]||{};var o=t.seriesDataIndices||[],s=n.seriesDataIndices||[];(i=i&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&o.length===s.length)&&R(o,(function(t,e){e=s[e],i=i&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex})),r&&R(t.seriesDataIndices,(function(t){t=t.seriesIndex;var n=e[t];t=r[t];n&&t&&t.data!==n.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},hA.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},hA.prototype.dispose=function(t,e){!o.node&&e.getDom()&&(Rg(this,"_updatePosition"),this._tooltipContent.dispose(),OM("itemTooltip",e))},hA.type="tooltip",hA);function hA(){var t=null!==lA&&lA.apply(this,arguments)||this;return t.type=hA.type,t}function pA(t,e,n){for(var r=e.ecModel,i=n?(i=new ch(n,r,r),new ch(e.option,i,r)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&($(a=a instanceof ch?a.get("tooltip",!0):a)?{formatter:a}:a))&&(i=new ch(a,i,r))}return i}function fA(t,e){return t.dispatchAction||z(e.dispatchAction,e)}function dA(t){return"center"===t||"middle"===t}ax((function(t){ax(VM),t.registerComponentModel($M),t.registerComponentView(cA),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},bt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},bt)}));var gA=["x","y","radius","angle","single"],yA=["cartesian2d","polar","singleAxis"];function vA(t){return t+"Axis"}function mA(t){var e=t.ecModel,n={infoList:[],infoMap:yt()};return t.eachTargetAxis((function(t,r){var i,o;t=e.getComponent(vA(t),r);t&&(r=t.getCoordSysModel())&&(i=r.uid,(o=n.infoMap.get(i))||(n.infoList.push(o={model:r,axisModels:[]}),n.infoMap.set(i,o)),o.axisModels.push(t))})),n}xA.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var _A=xA;function xA(){this.indexList=[],this.indexMap=[]}n(wA,bA=gp),wA.prototype.init=function(t,e,n){var r=SA(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},wA.prototype.mergeOption=function(t){var e=SA(t);T(this.option,t,!0),T(this.settledOption,e,!0),this._doInit(e)},wA.prototype._doInit=function(t){var e=this.option,n=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);R([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},wA.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=yt();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},wA.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return R(gA,(function(n){var r,i=this.getReferringComponents(vA(n),fo);i.specified&&(e=!0,r=new _A,R(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r))}),this),e},wA.prototype._fillAutoTargetAxisByOrient=function(t,e){var n,r=this.ecModel,i=!0;function o(e,n){var r,o,a=e[0];a&&((r=new _A).add(a.componentIndex),t.set(n,r),i=!1,"x"!==n&&"y"!==n||(o=a.getReferringComponents("grid",po).models[0])&&R(e,(function(t){a.componentIndex!==t.componentIndex&&o===t.getReferringComponents("grid",po).models[0]&&r.add(t.componentIndex)})))}i&&o(r.findComponents({mainType:(n="vertical"===e?"y":"x")+"Axis"}),n),i&&o(r.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&R(gA,(function(e){var n,o;i&&(n=r.findComponents({mainType:vA(e),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((o=new _A).add(n[0].componentIndex),t.set(e,o),i=!1)}),this)},wA.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){t=t||e}),this),"y"===t?"vertical":"horizontal"},wA.prototype._setDefaultThrottle=function(t){t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(t=this.ecModel.option,this.option.throttle=t.animation&&0<t.animationDurationUpdate?100:20)},wA.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]];r=null!=t[r[1]];o&&!r?e[i]="percent":!o&&r?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},wA.prototype.noTarget=function(){return this._noTarget},wA.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(vA(e),n))}),this),t},wA.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){R(n.indexList,(function(n){t.call(e,r,n)}))}))},wA.prototype.getAxisProxy=function(t,e){if(t=this.getAxisModel(t,e),t)return t.__dzAxisProxy},wA.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(vA(t),e)},wA.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;R([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},wA.prototype.setCalculatedRange=function(t){var e=this.option;R(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},wA.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},wA.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},wA.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},wA.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},wA.prototype.getOrient=function(){return this._orient},wA.type="dataZoom",wA.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],wA.defaultOption={z:4,filterMode:"filter",start:0,end:100};var bA;Vl=wA;function wA(){var t=null!==bA&&bA.apply(this,arguments)||this;return t.type=wA.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function SA(t){var e={};return R(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}n(AA,kA=Vl),AA.type="dataZoom.inside",AA.defaultOption=dh(Vl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var kA,MA=AA;function AA(){var t=null!==kA&&kA.apply(this,arguments)||this;return t.type=AA.type,t}n(CA,TA=mg),CA.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},CA.type="dataZoom";var TA;Fu=CA;function CA(){var t=null!==TA&&TA.apply(this,arguments)||this;return t.type=CA.type,t}function IA(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0],s=(a=(null!=i&&(i=PA(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r&&(s=PA(s=Math.abs(e[1]-e[0]),[0,a]),i=o=PA(s,[i,o]),r=0),e[0]=PA(e[0],n),e[1]=PA(e[1],n),OA(e,r)),e[r]+=t,i||0);t=n.slice();a.sign<0?t[0]+=s:t[1]-=s,e[r]=PA(e[r],t),n=OA(e,r),null!=i&&(n.sign!==a.sign||n.span<i)&&(e[1-r]=e[r]+a.sign*i),n=OA(e,r),null!=o&&n.span>o&&(e[1-r]=e[r]+n.sign*o)}function OA(t,e){return t=t[e]-t[1-e],{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function PA(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var DA="\0_ec_interaction_mutex";function LA(t,e){return((t=t)[DA]||(t[DA]={}))[e]}im({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},bt),n(NA,EA=$t),NA.prototype.isDragging=function(){return this._dragging},NA.prototype.isPinching=function(){return this._pinching},NA.prototype.setPointerChecker=function(t){this.pointerChecker=t},NA.prototype.dispose=function(){this.disable()},NA.prototype._mousedownHandler=function(t){if(!ce(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},NA.prototype._mousemoveHandler=function(t){var e,n,r,i,o,a;this._dragging&&FA("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!LA(this._zr,"globalPan")&&(e=t.offsetX,n=t.offsetY,o=e-(r=this._x),a=n-(i=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&ue(t.event),jA(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null}))},NA.prototype._mouseupHandler=function(t){ce(t)||(this._dragging=!1)},NA.prototype._mousewheelHandler=function(t){var e=FA("zoomOnMouseWheel",t,this._opt),n=FA("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;0!==r&&(e||n)&&(e&&(e=3<i?1.4:1<i?1.2:1.1,BA(this,"zoom","zoomOnMouseWheel",t,{scale:0<r?e:1/e,originX:o,originY:a,isAvailableBehavior:null})),n)&&BA(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<r?1:-1)*(3<(i=Math.abs(r))?.4:1<i?.15:.05),originX:o,originY:a,isAvailableBehavior:null})},NA.prototype._pinchHandler=function(t){LA(this._zr,"globalPan")||BA(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var EA,RA=NA;function NA(t){var e=EA.call(this)||this,n=(e._zr=t,z(e._mousedownHandler,e)),r=z(e._mousemoveHandler,e),i=z(e._mouseupHandler,e),o=z(e._mousewheelHandler,e),a=z(e._pinchHandler,e);return e.enable=function(e,s){this.disable(),this._opt=I(A(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(e=null==e||e)&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",r),t.on("mouseup",i)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",a))},e.disable=function(){t.off("mousedown",n),t.off("mousemove",r),t.off("mouseup",i),t.off("mousewheel",o),t.off("pinch",a)},e}function BA(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(ue(r.event),jA(t,e,n,r,i))}function jA(t,e,n,r,i){i.isAvailableBehavior=z(FA,null,n,r),t.trigger(e,i)}function FA(t,e,n){return n=n[t],!t||n&&(!$(n)||e.event[n+"Key"])}var zA=lo();function HA(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function VA(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function UA(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}n(GA,$A=Fu),GA.prototype.render=function(t,e,n){var r,i;$A.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,r=t,i={pan:z(qA.pan,this),zoom:z(qA.zoom,this),scrollMove:z(qA.scrollMove,this)},zA(n).coordSysRecordMap.each((function(t){t=t.dataZoomInfoMap.get(r.uid),t&&(t.getRange=i)})))},GA.prototype.dispose=function(){this._clear(),$A.prototype.dispose.apply(this,arguments)},GA.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=zA(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o,a=r[i],s=(a=n.get(a),a.dataZoomInfoMap);s&&(o=e.uid,s.get(o))&&(s.removeKey(o),s.keys().length||HA(n,a))}this.range=null},GA.type="dataZoom.inside";var $A,WA=GA;function GA(){var t=null!==$A&&$A.apply(this,arguments)||this;return t.type="dataZoom.inside",t}var qA={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a)return a=(0<(e=XA[e](null,[r.originX,r.originY],a,n,t)).signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(o[1]-o[0])+o[0],n=Math.max(1/r.scale,0),o[0]=(o[0]-a)*n+a,o[1]=(o[1]-a)*n+a,IA(0,o,[0,100],0,(t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan,t.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0},pan:YA((function(t,e,n,r,i,o){return r=XA[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n),r.signal*(t[1]-t[0])*r.pixel/r.pixelLength})),scrollMove:YA((function(t,e,n,r,i,o){return XA[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n).signal*(t[1]-t[0])*o.scrollDelta}))};function YA(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return IA(t(a,s,e,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var XA={grid:function(t,e,n,r,i){n=n.axis;var o={};i=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===n.dim?(o.pixel=e[0]-t[0],o.pixelLength=i.width,o.pixelStart=i.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=i.height,o.pixelStart=i.y,o.signal=n.inverse?-1:1),o},polar:function(t,e,n,r,i){var o=n.axis,a={},s=(i=i.model.coordinateSystem,i.getRadiusAxis().getExtent()),l=i.getAngleAxis().getExtent();return t=t?i.pointToCoord(t):[0,0],e=i.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){n=n.axis,i=i.model.coordinateSystem.getRect();var o={};return t=t||[0,0],"horizontal"===n.orient?(o.pixel=e[0]-t[0],o.pixelLength=i.width,o.pixelStart=i.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=i.height,o.pixelStart=i.y,o.signal=n.inverse?-1:1),o}},ZA=R,KA=Li,JA=(QA.prototype.hostedBy=function(t){return this._dataZoomModel===t},QA.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},QA.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},QA.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){var n;n=(n=e).get("coordinateSystem"),0<=P(yA,n)&&(n=vA(this._dimName),n=e.getReferringComponents(n,po).models[0])&&this._axisIndex===n.componentIndex&&t.push(e)}),this),t},QA.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},QA.prototype.getMinMaxSpan=function(){return A(this._minMaxSpan)},QA.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[],l=(ZA(["start","end"],(function(l,u){var c=t[l];l=t[l+"Value"];"percent"===i[u]?l=r.parse(Oi(c=null==c?o[u]:c,o,n)):(e=!0,c=Oi(l=null==l?n[u]:r.parse(l),n,o)),s[u]=null==l||isNaN(l)?n[u]:l,a[u]=null==c||isNaN(c)?o[u]:c})),KA(s),KA(a),this._minMaxSpan);function u(t,e,n,i,o){var a=o?"Span":"ValueSpan";IA(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Oi(t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},QA.prototype.reset=function(t){var e,n,r,i;t===this._dataZoomModel&&(i=this.getTargetSeriesModels(),this._dataExtent=(n=(e=this)._dimName,r=[1/0,-1/0],ZA(i=i,(function(t){var e,i;e=r,i=t.getData(),t=n,i&&R(ex(i,t),(function(t){t=i.getApproximateExtent(t),t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])}))})),[(e=G_((i=e.getAxisModel()).axis.scale,i,r).calculate()).min,e.max]),this._updateMinMaxSpan(),i=this.calculateDataWindow(t.settledOption),this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel())},QA.prototype.filterData=function(t,e){var n,r,i,o;t===this._dataZoomModel&&(n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow,"none"!==i)&&ZA(r,(function(t){var e,r,a=t.getData(),s=a.mapDimensionsAll(n);s.length&&("weakFilter"===i?(e=a.getStore(),r=N(s,(function(t){return a.getDimensionIndex(t)}),a),a.filterSelf((function(t){for(var n,i,a,l=0;l<s.length;l++){var u=e.get(r[l],t),c=!isNaN(u),h=u<o[0];u=u>o[1];if(c&&!h&&!u)return!0;c&&(a=!0),h&&(n=!0),u&&(i=!0)}return a&&n&&i}))):ZA(s,(function(e){var n;"empty"===i?t.setData(a=a.map(e,(function(t){return(e=t)>=o[0]&&e<=o[1]?t:NaN;var e}))):((n={})[e]=o,a.selectRange(n))})),ZA(s,(function(t){a.setApproximateExtent(o,t)})))}))},QA.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ZA(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=(o=null!=o?this.getAxisModel().axis.scale.parse(o):o)?i=Oi(n[0]+o,n,[0,100],!0):null!=i&&(o=Oi(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},QA.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;n&&(t=Ni(r,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+r[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+r[1].toFixed(t)),e.freeze())},QA);function QA(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}var tT={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(vA(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[],r=(e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new JA(e,r,o,t),n.push(i.__dzAxisProxy))})),yt());return R(n,(function(t){R(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))}))}},eT=!1;function nT(t){eT||(eT=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,tT),t.registerAction("dataZoom",(function(t,e){R(function(t,e){var n,r=yt(),i=[],o=yt();for(t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));n=!1,t.eachComponent("dataZoom",a),n;);function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis((function(t,n){t=r.get(t),t&&t[n]&&(e=!0)})),e)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))})),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function rT(t){nT(t),t.registerComponentModel(MA),t.registerComponentView(WA),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=zA(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=yt());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){R(mA(t).infoList,(function(n){var i,o,a=n.model.uid,s=r.get(a)||r.set(a,(a=e,s=n.model,i={model:s,containsPoint:H(UA,s),dispatchAction:H(VA,a),dataZoomInfoMap:null,controller:null},o=i.controller=new RA(a.getZr()),R(["pan","zoom","scrollMove"],(function(t){o.on(t,(function(e){var n=[];i.dataZoomInfoMap.each((function(r){var o;e.isAvailableBehavior(r.model.option)&&(o=(o=(r.getRange||{})[t])&&o(r.dzReferCoordSysInfo,i.model.mainType,i.controller,e),!r.model.get("disabled",!0))&&o&&n.push({dataZoomId:r.model.id,start:o[0],end:o[1]})})),n.length&&i.dispatchAction(n)}))})),i));(s.dataZoomInfoMap||(s.dataZoomInfoMap=yt())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n,i,o,a,s=t.controller,l=t.dataZoomInfoMap;(e=l&&null!=(n=l.keys()[0])?l.get(n):e)?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,l.each((function(t){t=t.model;var e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");o["type_"+i]<o["type_"+e]&&(i=e),a=a&&t.get("preventDefaultMouseMove",!0)})),n={controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}},s.enable(n.controlType,n.opt),s.setPointerChecker(t.containsPoint),Eg(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):HA(r,t)}))}))}(t)}n(aT,iT=Vl),aT.type="dataZoom.slider",aT.layoutMode="box",aT.defaultOption=dh(Vl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}});var iT,oT=aT;function aT(){var t=null!==iT&&iT.apply(this,arguments)||this;return t.type=aT.type,t}var sT,lT=hs,uT="horizontal",cT="vertical",hT=["line","bar","candlestick","scatter"],pT={easing:"cubicOut",duration:100,delay:0},fT=(n(dT,sT=Fu),dT.prototype.init=function(t,e){this.api=e,this._onBrush=z(this._onBrush,this),this._onBrushEnd=z(this._onBrushEnd,this)},dT.prototype.render=function(t,e,n,r){sT.prototype.render.apply(this,arguments),Eg(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView())},dT.prototype.dispose=function(){this._clear(),sT.prototype.dispose.apply(this,arguments)},dT.prototype._clear=function(){Rg(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},dT.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new _i);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},dT.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,r=this._findCoordRect(),i=(e={width:e.getWidth(),height:e.getHeight()},this._orient===uT?{right:e.width-r.x-r.width,top:e.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height}),o=up(t.option);R(["right","top","width","height"],(function(t){"ph"===o[t]&&(o[t]=i[t])})),n=ap(o,e);this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===cT&&this._size.reverse()},dT.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=(r=r&&r.get("inverse"),this._displayables.sliderGroup),o=(this._dataShadowInfo||{}).otherAxisInverse;i.attr(n!==uT||r?n===uT&&r?{scaleY:o?1:-1,scaleX:-1}:n!==cT||r?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1}),n=t.getBoundingRect([i]);t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},dT.prototype._getViewExtent=function(){return[0,this._size[0]]},dT.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new lT({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),t=new lT({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:z(this._onClickPanel,this)}),e=this.api.getZr();r?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},dT.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim();o=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=o)for(var a,s,l,u,c,h,p,f,d,g,y=this._shadowPolygonPts,v=this._shadowPolylinePts,m=(i===this._shadowData&&o===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(r=.3*((a=i.getDataExtent(o))[1]-a[0]),a=[a[0]-r,a[1]+r],s=[0,e[1]],t=[0,e[0]],l=[[e[0],0],[0,0]],u=[],c=t[1]/(i.count()-1),h=0,p=Math.round(i.count()/e[0]),i.each([o],(function(t,e){var n;0<p&&e%p?h+=c:(t=(n=null==t||isNaN(t)||""===t)?0:Oi(t,a,s,!0),n&&!f&&e?(l.push([l[l.length-1][0],0]),u.push([u[u.length-1][0],0])):!n&&f&&(l.push([h,0]),u.push([h,0])),l.push([h,t]),u.push([h,t]),h+=c,f=n)})),y=this._shadowPolygonPts=l,v=this._shadowPolylinePts=u),this._shadowData=i,this._shadowDim=o,this._shadowSize=[e[0],e[1]],this.dataZoomModel),_=0;_<3;_++){d=1===_,x=g=void 0,d=m.getModel(d?"selectedDataBackground":"dataBackground"),g=new _i,x=new vu({shape:{points:y},segmentIgnoreThreshold:1,style:d.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),d=new bu({shape:{points:v},segmentIgnoreThreshold:1,style:d.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),g.add(x),g.add(d);var x=g;this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}},dT.prototype._prepareDataShadowInfo=function(){var t,e,n=this.dataZoomModel,r=n.get("showDataShadow");if(!1!==r)return e=this.ecModel,n.eachTargetAxis((function(i,o){R(n.getAxisProxy(i,o).getTargetSeriesModels(),(function(n){var a,s,l,u;t||!0!==r&&P(hT,n.get("type"))<0||(a=e.getComponent(vA(i),o).axis,u=n.coordinateSystem,null!=(s={x:"y",y:"x",radius:"angle",angle:"radius"}[i])&&u.getOtherAxis&&(l=u.getOtherAxis(a).inverse),s=n.getData().mapDimension(s),t={thisAxis:a,series:n,thisDim:i,otherDim:s,otherAxisInverse:l})}),this)}),this),t},dT.prototype._renderHandle=function(){var t,e,n=this.group,r=this._displayables,i=r.handles=[null,null],o=r.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),p=r.filler=new lT({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new lT({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),R([0,1],(function(t){var e=l.get("handleIcon"),r=(e=ky(e=!by[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),e.attr({cursor:gT(this._orient),draggable:!0,drift:z(this._onDragMove,this,t),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1),z2:5}),e.getBoundingRect()),s=l.get("handleSize");this._handleHeight=Pi(s,this._size[1]),this._handleWidth=r.width/r.height*this._handleHeight,e.setStyle(l.getModel("handleStyle").getItemStyle()),e.style.strokeNoScale=!0,e.rectHover=!0,e.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),pl(e),s=l.get("handleColor"),null!=s&&(e.style.fill=s),a.add(i[t]=e),r=l.getModel("textStyle");n.add(o[t]=new ys({silent:!0,invisible:!0,style:$c(r,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:r.getTextColor(),font:r.getFont()}),z2:10}))}),this),c=p;h&&(p=Pi(l.get("moveHandleSize"),s[1]),t=r.moveHandle=new hs({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),h=.8*p,(h=r.moveHandleIcon=ky(l.get("moveHandleIcon"),-h/2,-h/2,h,h,"#fff",!0)).silent=!0,h.y=s[1]+p/2-.5,t.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(s[1]/2,Math.max(p,10)),(c=r.moveZone=new hs({invisible:!0,shape:{y:s[1]-e,height:p+e}})).on("mouseover",(function(){u.enterEmphasis(t)})).on("mouseout",(function(){u.leaveEmphasis(t)})),a.add(t),a.add(h),a.add(c)),c.attr({draggable:!0,cursor:gT(this._orient),drift:z(this._onDragMove,this,"all"),ondragstart:z(this._showDataInfo,this,!0),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1)})},dT.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Oi(t[0],[0,100],e,!0),Oi(t[1],[0,100],e,!0)]},dT.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];IA(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?Oi(o.minSpan,a,i,!0):null,null!=o.maxSpan?Oi(o.maxSpan,a,i,!0):null),e=this._range,n=this._range=Li([Oi(r[0],i,a,!0),Oi(r[1],i,a,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},dT.prototype._updateView=function(t){for(var e=this._displayables,n=this._handleEnds,r=Li(n.slice()),i=this._size,o=(R([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]}),{x:r[0],width:r[1]-r[0]}),a=(e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon)&&e.moveHandleIcon.attr("x",o.x+o.width/2),e.dataShadowSegs),s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new hs,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(t)},dT.prototype._updateDataInfo=function(t){var e,n,r=this.dataZoomModel,i=this._displayables,o=i.handleLabels,a=this._orient,s=["",""],l=(r.get("showDetail")&&(r=r.findRepresentativeAxisProxy())&&(e=r.getAxisModel().axis,n=this._range,t=t?r.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:r.getDataValueWindow(),s=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),Li(this._handleEnds.slice()));function u(t){var e=Ac(i.handles[t].parent,this.group),n=Cc(0===t?"right":"left",e),r=this._handleWidth/2+5;r=Tc([l[t]+(0===t?-r:r),this._size[1]/2],e);o[t].setStyle({x:r[0],y:r[1],verticalAlign:a===uT?"middle":n,align:a===uT?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},dT.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter");n=n.get("labelPrecision"),null!=n&&"auto"!==n||(n=e.getPixelPrecision()),e=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20));return U(r)?r(t,e):$(r)?r.replace("{value}",e):e},dT.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},dT.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,ue(r.event),r=Tc([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(t,r[0]),n=this.dataZoomModel.get("realtime"),this._updateView(!n),e&&n&&this._dispatchZoomAction(!0)},dT.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},dT.prototype._onClickPanel=function(t){var e=this._size;t=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},dT.prototype._onBrushStart=function(t){var e=t.offsetX;t=t.offsetY;this._brushStart=new ke(e,t),this._brushing=!0,this._brushStartTime=+new Date},dT.prototype._onBrushEnd=function(t){var e,n,r;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e)&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=Li([Oi(e.x,n,r=[0,100],!0),Oi(e.x+e.width,n,r,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},dT.prototype._onBrush=function(t){this._brushing&&(ue(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},dT.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new lT({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1),r=this._brushStart,n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(r.x,r.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),i.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},dT.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?pT:null,start:e[0],end:e[1]})},dT.prototype._findCoordRect=function(){var t,e,n=mA(this.dataZoomModel).infoList;return(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},dT.type="dataZoom.slider",dT);function dT(){var t=null!==sT&&sT.apply(this,arguments)||this;return t.type=dT.type,t._displayables={},t}function gT(t){return"vertical"===t?"ns-resize":"ew-resize"}function yT(t){t.registerComponentModel(oT),t.registerComponentView(fT),nT(t)}ax((function(t){ax(rT),ax(yT)})),ax(Tb);var vT={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},mT=(_T.prototype.evaluate=function(t){var e=s(t);return $(e)?this._condVal.test(t):!!G(e)&&this._condVal.test(t+"")},_T);function _T(t){null==(this._condVal=$(t)?new RegExp(t):Q(t)?t:null)&&Xi("")}bT.prototype.evaluate=function(){return this.value};var xT=bT;function bT(){}ST.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var wT=ST;function ST(){}MT.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var kT=MT;function MT(){}TT.prototype.evaluate=function(){return!this.child.evaluate()};var AT=TT;function TT(){}IT.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?n:e))return!1;return!0};var CT=IT;function IT(){}function OT(t,e){if(!0===t||!1===t)return(n=new xT).value=t,n;var n;if(DT(t)||Xi(""),t.and)return PT("and",t,e);if(t.or)return PT("or",t,e);if(t.not)return n=e,DT(o=(o=t).not)||Xi(""),(l=new AT).child=OT(o,n),l.child||Xi(""),l;for(var r=t,i=e,o=i.prepareGetValue(r),a=[],s=F(r),l=r.parser,u=l?fd(l):null,c=0;c<s.length;c++){var h,p=s[c];"parser"===p||i.valueGetterAttrMap.get(p)||(h=xt(vT,p)?vT[p]:p,p=r[p],p=u?u(p):p,(h=function(t,e){return"eq"===t||"ne"===t?new _d("eq"===t,e):xt(dd,t)?new gd(t,e):null}(h,p)||"reg"===h&&new mT(p))||Xi(""),a.push(h))}return a.length||Xi(""),(l=new CT).valueGetterParam=o,l.valueParser=u,l.getValue=i.getValue,l.subCondList=a,l}function PT(t,e,n){return e=e[t],V(e)||Xi(""),e.length||Xi(""),t=new("and"===t?wT:kT),t.children=N(e,(function(t){return OT(t,n)})),t.children.length||Xi(""),t}function DT(t){return q(t)&&!E(t)}ET.prototype.evaluate=function(){return this._cond.evaluate()};var LT=ET;function ET(t,e){this._cond=OT(t,e)}var RT={type:"echarts:filter",transform:function(t){for(var e,n,r=t.upstream,i=(t=t.config,n={valueGetterAttrMap:yt({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;xt(t,"dimension")||Xi(""),t=r.getDimensionInfo(e);return t||Xi(""),{dimIdx:t.index}},getValue:function(t){return r.retrieveValueFromItem(e,t.dimIdx)}},new LT(t,n)),o=[],a=0,s=r.count();a<s;a++)e=r.getRawDataItem(a),i.evaluate()&&o.push(e);return{data:o}}},NT={type:"echarts:sort",transform:function(t){for(var e=t.upstream,n=(t=t.config,t=Ji(t),t.length||Xi(""),[]),r=(t=(R(t,(function(t){var r=t.dimension,i=t.order,o=t.parser,a=(t=t.incomparable,r=(null==r&&Xi(""),"asc"!==i&&"desc"!==i&&Xi(""),t&&"min"!==t&&"max"!==t&&Xi(""),"asc"!==i&&"desc"!==i&&Xi(""),e.getDimensionInfo(r)),r||Xi(""),o?fd(o):null);o&&!a&&Xi(""),n.push({dimIdx:r.index,parser:a,comparator:new vd(i,t)})})),e.sourceFormat),t!==bp&&t!==wp&&Xi(""),[]),i=0,o=e.count();i<o;i++)r.push(e.getRawDataItem(i));return r.sort((function(t,r){for(var i=0;i<n.length;i++){var o=n[i],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(r,o.dimIdx);o=(o.parser&&(a=o.parser(a),s=o.parser(s)),o.comparator.evaluate(a,s));if(0!==o)return o}return 0})),{data:r}}};ax((function(t){t.registerTransform(RT),t.registerTransform(NT)})),t.Axis=sh,t.ChartView=Sg,t.ComponentModel=gp,t.ComponentView=mg,t.List=zm,t.Model=ch,t.PRIORITY=vy,t.SeriesModel=ug,t.color=Kn,t.connect=function(t){var e;return V(t)&&(e=t,t=null,R(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Yv++,R(e,(function(e){e.group=t}))),Gv[t]=!0,t},t.dataTool={},t.dependencies={zrender:"5.5.0"},t.disConnect=yy,t.disconnect=Zv,t.dispose=function(t){$(t)?t=Wv[t]:t instanceof Ov||(t=Kv(t)),t instanceof Ov&&!t.isDisposed()&&t.dispose()},t.env=o,t.extendChartView=function(t){return t=Sg.extend(t),Sg.registerClass(t),t},t.extendComponentModel=function(t){return t=gp.extend(t),gp.registerClass(t),t},t.extendComponentView=function(t){return t=mg.extend(t),mg.registerClass(t),t},t.extendSeriesModel=function(t){return t=ug.extend(t),ug.registerClass(t),t},t.format=oh,t.getCoordinateSystemDimensions=function(t){if(t=Jp.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=Kv,t.getInstanceById=function(t){return Wv[t]},t.getMap=function(t){var e=Qy.getMap;return e&&e(t)},t.graphic=Sh,t.helper=my,t.init=function(t,e,n){var r=!(n&&n.ssr);if(r){var i=Kv(t);if(i)return i}return(i=new Ov(t,e,n)).id="ec_"+qv++,Wv[i.id]=i,r&&yo(t,Xv,i.id),Av(i),Jy.trigger("afterinit",i),i},t.innerDrawElementOnCanvas=Wy,t.matrix=Se,t.number=Io,t.parseGeoJSON=wx,t.parseGeoJson=wx,t.registerAction=im,t.registerCoordinateSystem=om,t.registerLayout=am,t.registerLoading=cm,t.registerLocale=_h,t.registerMap=hm,t.registerPostInit=em,t.registerPostUpdate=nm,t.registerPreprocessor=Qv,t.registerProcessor=tm,t.registerTheme=Jv,t.registerTransform=pm,t.registerUpdateLifecycle=rm,t.registerVisual=sm,t.setCanvasCreator=function(t){p({createCanvas:t})},t.setPlatformAPI=p,t.throttle=Lg,t.time=Mc,t.use=ax,t.util=eh,t.vector=zt,t.version="5.5.0",t.zrUtil=St,t.zrender=Ii}))}).call(this,n("bc2e")["default"])},d9c3:function(t,e,n){(function(t,e,r){var i,o=n("7037");
  25. /*
  26. * [js-sha1]{@link https://github.com/emn178/js-sha1}
  27. *
  28. * @version 0.7.0
  29. * @author Chen, Yi-Cyuan [emn178@gmail.com]
  30. * @copyright Chen, Yi-Cyuan 2014-2024
  31. * @license MIT
  32. */
  33. (function(){"use strict";var a="object"===("undefined"===typeof window?"undefined":o(window)),s=a?window:{};s.JS_SHA1_NO_WINDOW&&(a=!1);var l=!a&&"object"===("undefined"===typeof self?"undefined":o(self)),u=!s.JS_SHA1_NO_NODE_JS&&"object"===("undefined"===typeof t?"undefined":o(t))&&t.versions&&t.versions.node;u?s=e:l&&(s=self);var c=!s.JS_SHA1_NO_COMMON_JS&&"object"===o(r)&&r.exports,h=n("3c35"),p=!s.JS_SHA1_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,f="0123456789abcdef".split(""),d=[-2147483648,8388608,32768,128],g=[24,16,8,0],y=["hex","array","digest","arrayBuffer"],v=[],m=Array.isArray;!s.JS_SHA1_NO_NODE_JS&&m||(m=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var _=ArrayBuffer.isView;!p||!s.JS_SHA1_NO_ARRAY_BUFFER_IS_VIEW&&_||(_=function(t){return"object"===o(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});var x=function(t){var e=o(t);if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error("input is invalid type");if(p&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!m(t)&&!_(t))throw new Error("input is invalid type");return[t,!1]},b=function(t){return function(e){return new k(!0).update(e)[t]()}},w=function(t){var e,r=n(0),i=n(1).Buffer;e=i.from&&!s.JS_SHA1_NO_BUFFER_FROM?i.from:function(t){return new i(t)};return function(n){if("string"===typeof n)return r.createHash("sha1").update(n,"utf8").digest("hex");if(null===n||void 0===n)throw new Error("input is invalid type");return n.constructor===ArrayBuffer&&(n=new Uint8Array(n)),m(n)||_(n)||n.constructor===i?r.createHash("sha1").update(e(n)).digest("hex"):t(n)}},S=function(t){return function(e,n){return new M(e,!0).update(n)[t]()}};function k(t){t?(v[0]=v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0,this.blocks=v):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function M(t,e){var n,r=x(t);if(t=r[0],r[1]){var i,o=[],a=t.length,s=0;for(n=0;n<a;++n)i=t.charCodeAt(n),i<128?o[s++]=i:i<2048?(o[s++]=192|i>>>6,o[s++]=128|63&i):i<55296||i>=57344?(o[s++]=224|i>>>12,o[s++]=128|i>>>6&63,o[s++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++n)),o[s++]=240|i>>>18,o[s++]=128|i>>>12&63,o[s++]=128|i>>>6&63,o[s++]=128|63&i);t=o}t.length>64&&(t=new k(!0).update(t).array());var l=[],u=[];for(n=0;n<64;++n){var c=t[n]||0;l[n]=92^c,u[n]=54^c}k.call(this,e),this.update(u),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}k.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=x(t);t=e[0];var n,r,i=e[1],o=0,a=t.length||0,s=this.blocks;while(o<a){if(this.hashed&&(this.hashed=!1,s[0]=this.block,this.block=s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),i)for(r=this.start;o<a&&r<64;++o)n=t.charCodeAt(o),n<128?s[r>>>2]|=n<<g[3&r++]:n<2048?(s[r>>>2]|=(192|n>>>6)<<g[3&r++],s[r>>>2]|=(128|63&n)<<g[3&r++]):n<55296||n>=57344?(s[r>>>2]|=(224|n>>>12)<<g[3&r++],s[r>>>2]|=(128|n>>>6&63)<<g[3&r++],s[r>>>2]|=(128|63&n)<<g[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++o)),s[r>>>2]|=(240|n>>>18)<<g[3&r++],s[r>>>2]|=(128|n>>>12&63)<<g[3&r++],s[r>>>2]|=(128|n>>>6&63)<<g[3&r++],s[r>>>2]|=(128|63&n)<<g[3&r++]);else for(r=this.start;o<a&&r<64;++o)s[r>>>2]|=t[o]<<g[3&r++];this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.block=s[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},k.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>>2]|=d[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},k.prototype.hash=function(){var t,e,n,r=this.h0,i=this.h1,o=this.h2,a=this.h3,s=this.h4,l=this.blocks;for(e=16;e<80;++e)n=l[e-3]^l[e-8]^l[e-14]^l[e-16],l[e]=n<<1|n>>>31;for(e=0;e<20;e+=5)t=i&o|~i&a,n=r<<5|r>>>27,s=n+t+s+1518500249+l[e]<<0,i=i<<30|i>>>2,t=r&i|~r&o,n=s<<5|s>>>27,a=n+t+a+1518500249+l[e+1]<<0,r=r<<30|r>>>2,t=s&r|~s&i,n=a<<5|a>>>27,o=n+t+o+1518500249+l[e+2]<<0,s=s<<30|s>>>2,t=a&s|~a&r,n=o<<5|o>>>27,i=n+t+i+1518500249+l[e+3]<<0,a=a<<30|a>>>2,t=o&a|~o&s,n=i<<5|i>>>27,r=n+t+r+1518500249+l[e+4]<<0,o=o<<30|o>>>2;for(;e<40;e+=5)t=i^o^a,n=r<<5|r>>>27,s=n+t+s+1859775393+l[e]<<0,i=i<<30|i>>>2,t=r^i^o,n=s<<5|s>>>27,a=n+t+a+1859775393+l[e+1]<<0,r=r<<30|r>>>2,t=s^r^i,n=a<<5|a>>>27,o=n+t+o+1859775393+l[e+2]<<0,s=s<<30|s>>>2,t=a^s^r,n=o<<5|o>>>27,i=n+t+i+1859775393+l[e+3]<<0,a=a<<30|a>>>2,t=o^a^s,n=i<<5|i>>>27,r=n+t+r+1859775393+l[e+4]<<0,o=o<<30|o>>>2;for(;e<60;e+=5)t=i&o|i&a|o&a,n=r<<5|r>>>27,s=n+t+s-1894007588+l[e]<<0,i=i<<30|i>>>2,t=r&i|r&o|i&o,n=s<<5|s>>>27,a=n+t+a-1894007588+l[e+1]<<0,r=r<<30|r>>>2,t=s&r|s&i|r&i,n=a<<5|a>>>27,o=n+t+o-1894007588+l[e+2]<<0,s=s<<30|s>>>2,t=a&s|a&r|s&r,n=o<<5|o>>>27,i=n+t+i-1894007588+l[e+3]<<0,a=a<<30|a>>>2,t=o&a|o&s|a&s,n=i<<5|i>>>27,r=n+t+r-1894007588+l[e+4]<<0,o=o<<30|o>>>2;for(;e<80;e+=5)t=i^o^a,n=r<<5|r>>>27,s=n+t+s-899497514+l[e]<<0,i=i<<30|i>>>2,t=r^i^o,n=s<<5|s>>>27,a=n+t+a-899497514+l[e+1]<<0,r=r<<30|r>>>2,t=s^r^i,n=a<<5|a>>>27,o=n+t+o-899497514+l[e+2]<<0,s=s<<30|s>>>2,t=a^s^r,n=o<<5|o>>>27,i=n+t+i-899497514+l[e+3]<<0,a=a<<30|a>>>2,t=o^a^s,n=i<<5|i>>>27,r=n+t+r-899497514+l[e+4]<<0,o=o<<30|o>>>2;this.h0=this.h0+r<<0,this.h1=this.h1+i<<0,this.h2=this.h2+o<<0,this.h3=this.h3+a<<0,this.h4=this.h4+s<<0},k.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4;return f[t>>>28&15]+f[t>>>24&15]+f[t>>>20&15]+f[t>>>16&15]+f[t>>>12&15]+f[t>>>8&15]+f[t>>>4&15]+f[15&t]+f[e>>>28&15]+f[e>>>24&15]+f[e>>>20&15]+f[e>>>16&15]+f[e>>>12&15]+f[e>>>8&15]+f[e>>>4&15]+f[15&e]+f[n>>>28&15]+f[n>>>24&15]+f[n>>>20&15]+f[n>>>16&15]+f[n>>>12&15]+f[n>>>8&15]+f[n>>>4&15]+f[15&n]+f[r>>>28&15]+f[r>>>24&15]+f[r>>>20&15]+f[r>>>16&15]+f[r>>>12&15]+f[r>>>8&15]+f[r>>>4&15]+f[15&r]+f[i>>>28&15]+f[i>>>24&15]+f[i>>>20&15]+f[i>>>16&15]+f[i>>>12&15]+f[i>>>8&15]+f[i>>>4&15]+f[15&i]},k.prototype.toString=k.prototype.hex,k.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i]},k.prototype.array=k.prototype.digest,k.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(20),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),t},M.prototype=new k,M.prototype.finalize=function(){if(k.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();k.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),k.prototype.finalize.call(this)}};var A=function(){var t=b("hex");u&&(t=w(t)),t.create=function(){return new k},t.update=function(e){return t.create().update(e)};for(var e=0;e<y.length;++e){var n=y[e];t[n]=b(n)}return t}();A.sha1=A,A.sha1.hmac=function(){var t=S("hex");t.create=function(t){return new M(t)},t.update=function(e,n){return t.create(e).update(n)};for(var e=0;e<y.length;++e){var n=y[e];t[n]=S(n)}return t}(),c?r.exports=A:(s.sha1=A,h&&(i=function(){return A}.call(A,n,A,r),void 0===i||(r.exports=i)))})()}).call(this,n("4362"),n("c8ba"),n("62e4")(t))},da49:function(t,e,n){(function(t){var e=n("7037");t.addInterceptor({returnValue:function(t){return!t||"object"!==e(t)&&"function"!==typeof t||"function"!==typeof t.then?t:new Promise((function(e,n){t.then((function(t){return t[0]?n(t[0]):e(t[1])}))}))}})}).call(this,n("543d")["default"])},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!o).join("/"),t||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e50d:function(t,e,n){var r=n("7037")["default"];t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},eb38:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.compareVersion=function(t,e){t=t.split("."),e=e.split(".");var n=Math.max(t.length,e.length);while(t.length<n)t.push("0");while(e.length<n)e.push("0");for(var r=0;r<n;r++){var i=parseInt(t[r],10),o=parseInt(e[r],10);if(i>o)return 1;if(i<o)return-1}return 0},e.devicePixelRatio=void 0,e.sleep=function(t){return new Promise((function(e){setTimeout((function(){e(!0)}),t)}))},e.wrapTouch=function(t){for(var e=0;e<t.touches.length;++e){var n=t.touches[e];n.offsetX=n.x,n.offsetY=n.y}return t};var n=t.getSystemInfoSync().pixelRatio;e.devicePixelRatio=n}).call(this,n("bc2e")["default"])},ed6d:function(t,e,n){var r=n("4a4b");t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},f0c5:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s,l,u){var c,h="function"===typeof t?t.options:t;if(l){h.components||(h.components={});var p=Object.prototype.hasOwnProperty;for(var f in l)p.call(l,f)&&!p.call(h.components,f)&&(h.components[f]=l[f])}if(u&&("function"===typeof u.beforeCreate&&(u.beforeCreate=[u.beforeCreate]),(u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(h.mixins||(h.mixins=[])).push(u)),e&&(h.render=e,h.staticRenderFns=n,h._compiled=!0),r&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(h.functional){h._injectStyles=c;var d=h.render;h.render=function(t,e){return c.call(e),d(t,e)}}else{var g=h.beforeCreate;h.beforeCreate=g?[].concat(g,c):[c]}return{exports:t,options:h}}n.d(e,"a",(function(){return r}))},f8bd:function(t){t.exports=JSON.parse('{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}')},f8f1:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("5a09")),o=r(n("f8bd")),a=r(n("3bb0")),s={en:i.default,"zh-Hans":o.default,"zh-Hant":a.default};e.default=s},fabb:function(t,e,n){t.exports=null}}]);