go-viee-fetch-Demo/public/static/lib/plugin/ht-vector.js
2025-08-25 20:25:55 +08:00

2 lines
491 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

this.ht=this.ht||{},this.ht.vector=function(){"use strict";function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}(a.key),a)}}function s(e,t,o){return t&&l(e.prototype,t),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(o){var a=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(e){return!1}}();return function(){var e,t=f(o),t=(e=a?(e=f(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}}function x(){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,o){var a=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(a)return(a=Object.getOwnPropertyDescriptor(a,t)).get?a.get.call(arguments.length<3?e:o):a.value}).apply(this,arguments)}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a,i,n,r,l=[],s=!0,u=!1;try{if(n=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;s=!1}else for(;!(s=(a=n.call(o)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=o.return&&(r=o.return(),Object(r)!==r))return}finally{if(u)throw i}}return l}}(e,t)||h(e,t)||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.")}()}function Ze(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||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.")}()}function h(e,t){var o;if(e)return"string"==typeof e?m(e,t):"Map"===(o="Object"===(o=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?m(e,t):void 0}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,a=new Array(t);o<t;o++)a[o]=e[o];return a}var b=function(e){try{return!!e()}catch(e){return!0}},w=!b(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),k=Function.prototype,C=k.call,k=w&&k.bind.bind(C,C),a=w?k:function(e){return function(){return C.apply(e,arguments)}},T=a({}.toString),V=a("".slice),D=function(e){return V(T(e),8,-1)},I=Object,S=a("".split),k=b(function(){return!I("z").propertyIsEnumerable(0)})?function(e){return"String"==D(e)?S(e,""):I(e)}:I,L=function(e){return null==e},R=TypeError,P=k,A=function(e){if(L(e))throw R("Can't call method on "+e);return e},k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _(e){return e&&e.Math==Math&&e}function M(e){return K(e)?e:void 0}function O(e,t){return(e=Et[Ot(e)])==Wt||e!=Ht&&(K(t)?b(t):!!t)}function W(a){function i(e,t,o){if(this instanceof i){switch(arguments.length){case 0:return new a;case 1:return new a(e);case 2:return new a(e,t)}return new a(e,t,o)}return jt(a,this,arguments)}return i.prototype=a.prototype,i}function F(l){return function(e,t,o){var a,i=At(e),n=oo(i),r=to(o,n);if(l&&t!=t){for(;r<n;)if((a=i[r++])!=a)return!0}else for(;r<n;r++)if((l||r in i)&&i[r]===t)return l||r||0;return!l&&-1}}function N(){}function j(e){e.write(fo("")),e.close();var t=e.parentWindow.Object;return e=null,t}var z,G,U,Y,Z,k=_("object"==typeof globalThis&&globalThis)||_("object"==typeof window&&window)||_("object"==typeof self&&self)||_("object"==typeof k&&k)||function(){return this}()||Function("return this")(),e="object"==typeof document&&document.all,e={all:e,IS_HTMLDDA:void 0===e&&void 0!==e},q=e.all,p=k,K=e.IS_HTMLDDA?function(e){return"function"==typeof e||e===q}:function(e){return"function"==typeof e},k=p.WeakMap,k=K(k)&&/native code/.test(String(k)),J=e.all,e=e.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:K(e)||e===J}:function(e){return"object"==typeof e?null!==e:K(e)},$=!b(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),ee=e,te=p.document,oe=ee(te)&&ee(te.createElement),ae=$,ie=function(e){return oe?te.createElement(e):{}},e=!ae&&!b(function(){return 7!=Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a}),$=ae&&b(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ne=String,re=TypeError,le=Function.prototype.call,se=w?le.bind(le):function(){return le.apply(le,arguments)},ue={},t=a({}.isPrototypeOf),ce="undefined"!=typeof navigator&&String(navigator.userAgent)||"",de=p.process,o=p.Deno,de=de&&de.versions||o&&o.version,o=de&&de.v8,ge=(Ie=!(Ie=o?0<(me=o.split("."))[0]&&me[0]<4?1:+(me[0]+me[1]):Ie)&&ce&&(!(me=ce.match(/Edge\/(\d+)/))||74<=me[1])&&(me=ce.match(/Chrome\/(\d+)/))?+me[1]:Ie,Ie),fe=!!Object.getOwnPropertySymbols&&!b(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41}),de=fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pe=function(e,t){return arguments.length<2?M(ue[e])||M(p[e]):ue[e]&&ue[e][t]||p[e]&&p[e][t]},ve=t,o=de,ye=Object,me=o?function(e){return"symbol"==typeof e}:function(e){var t=pe("Symbol");return K(t)&&ve(t.prototype,ye(e))},be=String,we=function(e){try{return be(e)}catch(e){return"Object"}},ke=TypeError,Ce=function(e){if(K(e))return e;throw ke(we(e)+" is not a function")},Te=se,Ve=TypeError,De=Object.defineProperty,Ie=function(t,o){try{De(p,t,{value:o,configurable:!0,writable:!0})}catch(e){p[t]=o}return o},t="__core-js_shared__",de=p[t]||Ie(t,{}),Se=de,Ie=(function(e){(e.exports=function(e,t){return Se[e]||(Se[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})}(se={exports:{}}),se.exports),Ne=Object,qe=function(e){return Ne(A(e))},Ke=a({}.hasOwnProperty),t=Object.hasOwn||function(e,t){return Ke(qe(e),t)},Je=0,$e=Math.random(),Qe=a(1..toString),de=Ie,et=t,tt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qe(++Je+$e,36)},ot=p.Symbol,at=de("wks"),it=o?ot.for||ot:ot&&ot.withoutSetter||tt,nt=me,rt=function(e,t){e=e[t];return L(e)?void 0:Ce(e)},lt=function(e,t){var o,a;if("string"===t&&K(o=e.toString)&&!ee(a=Te(o,e)))return a;if(K(o=e.valueOf)&&!ee(a=Te(o,e)))return a;if("string"!==t&&K(o=e.toString)&&!ee(a=Te(o,e)))return a;throw Ve("Can't convert object to primitive value")},se=function(e){return et(at,e)||(at[e]=fe&&et(ot,e)?ot[e]:it("Symbol."+e)),at[e]},st=TypeError,ut=se("toPrimitive"),ct=function(e,t){if(!ee(e)||nt(e))return e;var o=rt(e,ut);if(o){if(o=Te(o,e,t=void 0===t?"default":t),!ee(o)||nt(o))return o;throw st("Can't convert object to primitive value")}return lt(e,t=void 0===t?"number":t)},dt=e,Ie=$,gt=function(e){if(ee(e))return e;throw re(ne(e)+" is not an object")},ft=function(e){e=ct(e,"string");return nt(e)?e:e+""},pt=TypeError,vt=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,xt="enumerable",mt="configurable",bt="writable",wt={f:ae?Ie?function(e,t,o){var a;return gt(e),t=ft(t),gt(o),"function"==typeof e&&"prototype"===t&&"value"in o&&bt in o&&!o[bt]&&(a=yt(e,t))&&a[bt]&&(e[t]=o.value,o={configurable:(mt in o?o:a)[mt],enumerable:(xt in o?o:a)[xt],writable:!1}),vt(e,t,o)}:vt:function(e,t,o){if(gt(e),t=ft(t),gt(o),dt)try{return vt(e,t,o)}catch(e){}if("get"in o||"set"in o)throw pt("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},kt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},t=ae?function(e,t,o){return wt.f(e,t,kt(1,o))}:function(e,t,o){return e[t]=o,e},Ct=de("keys"),Tt=t,o=function(e){return Ct[e]||(Ct[e]=tt(e))},Vt={},Dt="Object already initialized",It=p.TypeError,me=p.WeakMap,St=k||Se.state?((U=Se.state||(Se.state=new me)).get=U.get,U.has=U.has,U.set=U.set,z=function(e,t){if(U.has(e))throw It(Dt);return t.facade=e,U.set(e,t),t},G=function(e){return U.get(e)||{}},function(e){return U.has(e)}):(Y=o("state"),Vt[Y]=!0,z=function(e,t){if(et(e,Y))throw It(Dt);return t.facade=e,Tt(e,Y,t),t},G=function(e){return et(e,Y)?e[Y]:{}},function(e){return et(e,Y)}),e={set:z,get:G,has:St,enforce:function(e){return St(e)?G(e):z(e,{})},getterFor:function(t){return function(e){if(ee(e)&&(e=G(e)).type===t)return e;throw It("Incompatible receiver, "+t+" required")}}},$=Function.prototype,Lt=$.apply,Bt=$.call,de="object"==typeof Reflect&&Reflect.apply||(w?Bt.bind(Lt):function(){return Bt.apply(Lt,arguments)}),t={}.propertyIsEnumerable,Rt=Object.getOwnPropertyDescriptor,Pt={f:Rt&&!t.call({1:2},1)?function(e){e=Rt(this,e);return!!e&&e.enumerable}:t},At=function(e){return P(A(e))},_t=Object.getOwnPropertyDescriptor,k={f:ae?_t:function(e,t){if(e=At(e),t=ft(t),dt)try{return _t(e,t)}catch(e){}if(et(e,t))return kt(!Te(Pt.f,e,t),e[t])}},Mt=/#|\.prototype\./,Ot=O.normalize=function(e){return String(e).replace(Mt,".").toLowerCase()},Et=O.data={},Ht=O.NATIVE="N",Wt=O.POLYFILL="P",me=O,Ft=function(e){if("Function"===D(e))return a(e)},Nt=Ft(Ft.bind),jt=de,zt=k,Gt=me,Ut=function(e,t){return Ce(e),void 0===t?e:w?Nt(e,t):function(){return e.apply(t,arguments)}},Yt=zt.f,$=Function.prototype,t=ae&&Object.getOwnPropertyDescriptor,de=et($,"name"),k={EXISTS:de,PROPER:de&&"something"===function(){}.name,CONFIGURABLE:de&&(!ae||t($,"name").configurable)},Xt=Math.ceil,Zt=Math.floor,qt=Math.trunc||function(e){e=+e;return(0<e?Zt:Xt)(e)},Kt=function(e){e=+e;return e!=e||0==e?0:qt(e)},Jt=Math.max,$t=Math.min,Qt=Math.min,eo=function(e){return 0<e?Qt(Kt(e),9007199254740991):0},to=function(e,t){e=Kt(e);return e<0?Jt(e+t,0):$t(e,t)},oo=function(e){return eo(e.length)},me={includes:F(!0),indexOf:F(!1)},ao=me.indexOf,io=a([].push),no=function(e,t){var o,a=At(e),i=0,n=[];for(o in a)!et(Vt,o)&&et(a,o)&&io(n,o);for(;t.length>i;)!et(a,o=t[i++])||~ao(n,o)||io(n,o);return n},ro=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lo=Object.keys||function(e){return no(e,ro)},de={f:ae&&!Ie?Object.defineProperties:function(e,t){gt(e);for(var o,a=At(t),i=lo(t),n=i.length,r=0;r<n;)wt.f(e,o=i[r++],a[o]);return e}},t=pe("document","documentElement"),so=de,uo=t,ho="prototype",co="script",go=o("IE_PROTO"),fo=function(e){return"<"+co+">"+e+"</"+co+">"},po=function(){try{Z=new ActiveXObject("htmlfile")}catch(e){}po="undefined"==typeof document||document.domain&&Z?j(Z):(e=ie("iframe"),t="java"+co+":",e.style.display="none",uo.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(fo("document.F=Object")),t.close(),t.F);for(var e,t,o=ro.length;o--;)delete po[ho][ro[o]];return po()},$=(Vt[go]=!0,Object.create||function(e,t){var o;return null!==e?(N[ho]=gt(e),o=new N,N[ho]=null,o[go]=e):o=po(),void 0===t?o:so.f(o,t)}),Ie=!b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),vo=o("IE_PROTO"),yo=Object,xo=yo.prototype,de=Ie?yo.getPrototypeOf:function(e){var t,e=qe(e);return et(e,vo)?e[vo]:(t=e.constructor,K(t)&&e instanceof t?t.prototype:e instanceof yo?xo:null)},mo=$,bo=de,wo=function(e,t,o,a){return a&&a.enumerable?e[t]=o:Tt(e,t,o),e},ko=se("iterator"),t=!1;[].keys&&("next"in(o=[].keys())?(Ie=bo(bo(o)))!==Object.prototype&&(Co=Ie):t=!0);var Co=!ee(Co)||b(function(){var e={};return Co[ko].call(e)!==e})?{}:mo(Co),$=(K(Co[ko])||wo(Co,ko,function(){return this}),{IteratorPrototype:Co,BUGGY_SAFARI_ITERATORS:t}),de={};de[se("toStringTag")]="z";function To(){return this}function Vo(){return this}var Do,Io="[object z]"===String(de),So=se("toStringTag"),Lo=Object,Bo="Arguments"==D(function(){return arguments}()),Ro=Io?D:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Lo(e),So))?t:Bo?D(e):"Object"==(t=D(e))&&K(e.callee)?"Arguments":t},Po=Io?{}.toString:function(){return"[object "+Ro(this)+"]"},Ao=wt.f,_o=se("toStringTag"),o=$,Mo=function(e,t,o,a){e&&(o=o?e:e.prototype,et(o,_o)||Ao(o,_o,{configurable:!0,value:t}),a)&&!Io&&Tt(o,"toString",Po)},Oo={},Eo=o.IteratorPrototype,Ho=String,Wo=TypeError,Fo=function(e,t,o){try{return a(Ce(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}},No=function(e){if("object"==typeof e||K(e))return e;throw Wo("Can't set "+Ho(e)+" as a prototype")},Ie=Object.setPrototypeOf||("__proto__"in{}?function(){var o,a=!1,e={};try{(o=Fo(Object.prototype,"__proto__","set"))(e,[]),a=e instanceof Array}catch(e){}return function(e,t){return gt(e),No(t),a?o(e,t):e.__proto__=t,e}}():void 0),v=function(e,t){var o,a,i,n,r,l,s=e.target,u=e.global,h=e.stat,c=e.proto,d=u?p:h?p[s]:(p[s]||{}).prototype,g=u?ue:ue[s]||Tt(ue,s,{})[s],f=g.prototype;for(a in t)r=!(o=Gt(u?a:s+(h?".":"#")+a,e.forced))&&d&&et(d,a),n=g[a],r&&(l=e.dontCallGetSet?(l=Yt(d,a))&&l.value:d[a]),i=r&&l?l:t[a],r&&typeof n==typeof i||(r=e.bind&&r?Ut(i,p):e.wrap&&r?W(i):c&&K(i)?Ft(i):i,(e.sham||i&&i.sham||n&&n.sham)&&Tt(r,"sham",!0),Tt(g,a,r),c&&(et(ue,n=s+"Prototype")||Tt(ue,n,{}),Tt(ue[n],a,i),e.real)&&f&&(o||!f[a])&&Tt(f,a,i))},jo=function(e,t,o,a){t+=" Iterator";return e.prototype=mo(Eo,{next:kt(+!a,o)}),Mo(e,t,!1,!0),Oo[t]=To,e},zo=Ie,Go=k.PROPER,Uo=o.BUGGY_SAFARI_ITERATORS,Yo=se("iterator"),Xo="values",Zo="entries",t=function(){},de=e,$=function(e,t,o,a,i,n,r){jo(o,t,a);function l(e){if(e===i&&g)return g;if(!Uo&&e in c)return c[e];switch(e){case"keys":case Xo:case Zo:return function(){return new o(this,e)}}return function(){return new o(this)}}var s,u,a=t+" Iterator",h=!1,c=e.prototype,d=c[Yo]||c["@@iterator"]||i&&c[i],g=!Uo&&d||l(i),f="Array"==t&&c.entries||d;if(f&&(f=bo(f.call(new e)))!==Object.prototype&&f.next&&(Mo(f,a,!0,!0),Oo[a]=Vo),Go&&i==Xo&&d&&d.name!==Xo&&(h=!0,g=function(){return Te(d,this)}),i)if(s={values:l(Xo),keys:n?g:l("keys"),entries:l(Zo)},r)for(u in s)!Uo&&!h&&u in c||wo(c,u,s[u]);else v({target:t,proto:!0,forced:Uo||h},s);return r&&c[Yo]!==g&&wo(c,Yo,g,{name:i}),Oo[t]=g,s},qo=function(e,t){return{value:e,done:t}},Ko="Array Iterator",Jo=de.set,$o=de.getterFor(Ko),Ie=($(Array,"Array",function(e,t){Jo(this,{type:Ko,target:At(e),index:0,kind:t})},function(){var e=$o(this),t=e.target,o=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,qo(void 0,!0)):qo("keys"==o?a:"values"==o?t[a]:[a,t[a]],!1)},"values"),Oo.Arguments=Oo.Array,t(),t(),t(),{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Qo=se("toStringTag");for(Do in Ie){var ea=p[Do],ea=ea&&ea.prototype;ea&&Ro(ea)!==Qo&&Tt(ea,Qo,Do),Oo[Do]=Oo.Array}{var k=Array.isArray||function(e){return"Array"==D(e)},ta=a(Function.toString);K(Se.inspectSource)||(Se.inspectSource=function(e){return ta(e)});var o,oa=o=Se.inspectSource,aa=function(){},ia=[],na=pe("Reflect","construct"),ra=/^\s*(?:class|function)\b/,la=a(ra.exec),sa=!ra.exec(aa),ua=function(e){if(!K(e))return!1;try{return na(aa,ia,e),!0}catch(e){return!1}},e,Ie=((e=function(e){if(!K(e))return!1;switch(Ro(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return sa||!!la(ra,oa(e))}catch(e){return!0}}).sham=!0,!na||b(function(){var e;return ua(ua.call)||!ua(Object)||!ua(function(){e=!0})||e})?e:ua),ha=k,ca=Ie,da=se("species"),ga=Array,fa=function(e){var t;return void 0===(t=ha(e)&&(t=e.constructor,ca(t)&&(t===ga||ha(t.prototype))||ee(t)&&null===(t=t[da]))?void 0:t)?ga:t},pa=function(e,t){return new(fa(e))(0===t?0:t)},va=a([].push),o,e,k,Ie=function(e,t){var o=[][e];return!!o&&b(function(){o.call(null,t||function(){return 1},1)})},ya=(k=e={forEach:(o=function(d){var g=1==d,f=2==d,p=3==d,v=4==d,y=6==d,x=7==d,m=5==d||y;return function(e,t,o,a){for(var i,n,r=qe(e),l=P(r),s=Ut(t,o),u=oo(l),h=0,t=a||pa,c=g?t(e,u):f||x?t(e,0):void 0;h<u;h++)if((m||h in l)&&(n=s(i=l[h],h,r),d))if(g)c[h]=n;else if(n)switch(d){case 3:return!0;case 5:return i;case 6:return h;case 2:va(c,i)}else switch(d){case 4:return!1;case 7:va(c,i)}return y?-1:p||v?v:c}})(0),map:o(1),filter:o(2),some:o(3),every:o(4),find:o(5),findIndex:o(6),filterReject:o(7)}).forEach,o,e,o=e=(o=Ie("forEach"))?[].forEach:function(e){return ya(this,e,1<arguments.length?arguments[1]:void 0)};v({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o});var e,o,xa=o=(e=function(e){return ue[e+"Prototype"]})("Array").forEach,ma=Array.prototype,ba={DOMTokenList:!0,NodeList:!0},o,ze=o=function(e){var t=e.forEach;return e===ma||ve(ma,e)&&t===ma.forEach||et(ba,Ro(e))?xa:t},wa=String,ka=function(e){if("Symbol"===Ro(e))throw TypeError("Cannot convert a Symbol value to a string");return wa(e)},o="\t\n\v\f\r    \u2028\u2029\ufeff",Ca=a("".replace),Ta=RegExp("^["+o+"]+"),Va=RegExp("(^|[^"+o+"])["+o+"]+$"),Da,Da,Ia=(Da={start:(Da=function(t){return function(e){e=ka(A(e));return 1&t&&(e=Ca(e,Ta,"")),e=2&t?Ca(e,Va,"$1"):e}})(1),end:Da(2),trim:Da(3)}).trim,Sa=p.parseInt,La,Ba=(La=p.Symbol)&&La.iterator,Ra=/^[+-]?0x/i,Pa=a(Ra.exec),La,La=(La=8!==Sa(o+"08")||22!==Sa(o+"0x16")||Ba&&!b(function(){Sa(Object(Ba))}))?function(e,t){e=Ia(ka(e));return Sa(e,t>>>0||(Pa(Ra,e)?16:10))}:Sa,Aa=(v({global:!0,forced:parseInt!=La},{parseInt:La}),ue.parseInt),La="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,n=a([].slice),_a=TypeError,Ma=n,Oa=function(e,t){if(e<t)throw _a("Not enough arguments");return e},Ea=p.Function,Ha=/MSIE .\./.test(ce)||La&&((n=p.Bun.version.split(".")).length<3||0==n[0]&&(n[1]<3||3==n[1]&&0==n[2])),La,n=(La=function(n,r){var l=r?2:1;return Ha?function(e,t){var o=Oa(arguments.length,1)>l,a=K(e)?e:Ea(e),i=o?Ma(arguments,l):[],e=o?function(){jt(a,this,i)}:a;return r?n(e,t):n(e)}:n})(p.setInterval,!0),n=(v({global:!0,bind:!0,forced:p.setInterval!==n},{setInterval:n}),La(p.setTimeout,!0))}v({global:!0,bind:!0,forced:p.setTimeout!==n},{setTimeout:n});var Wa=ue.setTimeout,Fa=se("species"),Na=function(e,t,o){t=ft(t);t in e?wt.f(e,t,kt(0,o)):e[t]=o},La=function(t){return 51<=ge||!b(function(){var e=[];return(e.constructor={})[Fa]=function(){return{foo:1}},1!==e[t](Boolean).foo})},n=La("slice"),ja=se("species"),za=Array,Ga=Math.max;v({target:"Array",proto:!0,forced:!n},{slice:function(e,t){var o,a,i,n=At(this),r=oo(n),l=to(e,r),s=to(void 0===t?r:t,r);if(ha(n)&&(o=n.constructor,(o=ca(o)&&(o===za||ha(o.prototype))||ee(o)&&null===(o=o[ja])?void 0:o)===za||void 0===o))return Ma(n,l,s);for(a=new(void 0===o?za:o)(Ga(s-l,0)),i=0;l<s;l++,i++)l in n&&Na(a,i,n[l]);return a.length=i,a}});var Ua=e("Array").slice,Ya=Array.prototype,Me=function(e){var t=e.slice;return e===Ya||ve(Ya,e)&&t===Ya.slice?Ua:t},Xa=me.indexOf,Za=Ft([].indexOf),qa=!!Za&&1/Za([1],1,-0)<0,n=qa||!Ie("indexOf");v({target:"Array",proto:!0,forced:n},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return qa?Za(this,e,t)||0:Xa(this,e,t)}});var Ka=e("Array").indexOf,Ja=Array.prototype,Oe=function(e){var t=e.indexOf;return e===Ja||ve(Ja,e)&&t===Ja.indexOf?Ka:t},$a=k.filter,me=La("filter");v({target:"Array",proto:!0,forced:!me},{filter:function(e){return $a(this,e,1<arguments.length?arguments[1]:void 0)}});var Qa=e("Array").filter,ei=Array.prototype,ti=function(e){var t=e.filter;return e===ei||ve(ei,e)&&t===ei.filter?Qa:t},oi=Da.trim,ai=a("".charAt),ii=p.parseFloat,n=p.Symbol,ni=n&&n.iterator,me=1/ii(o+"-0")!=-1/0||ni&&!b(function(){ii(Object(ni))})?function(e){var e=oi(ka(e)),t=ii(e);return 0===t&&"-"==ai(e,0)?-0:t}:ii;v({global:!0,forced:parseFloat!=me},{parseFloat:me});var ri=ue.parseFloat,li=k.map,Da=La("map");v({target:"Array",proto:!0,forced:!Da},{map:function(e){return li(this,e,1<arguments.length?arguments[1]:void 0)}});var si=e("Array").map,ui=Array.prototype,Ge=function(e){var t=e.map;return e===ui||ve(ui,e)&&t===ui.map?si:t},hi=TypeError,ci=function(e){if(9007199254740991<e)throw hi("Maximum allowed index exceeded");return e},di=se("isConcatSpreadable"),n=51<=ge||!b(function(){var e=[];return e[di]=!1,e.concat()[0]!==e}),o=!n||!La("concat");v({target:"Array",proto:!0,arity:1,forced:o},{concat:function(e){for(var t,o,a,i,n,r=qe(this),l=pa(r,0),s=0,u=-1,h=arguments.length;u<h;u++)if(n=void 0,!ee(i=a=-1===u?r:arguments[u])||(void 0!==(n=i[di])?!n:!ha(i)))ci(s+1),Na(l,s++,a);else for(o=oo(a),ci(s+o),t=0;t<o;t++,s++)t in a&&Na(l,s,a[t]);return l.length=s,l}});var gi=e("Array").concat,fi=Array.prototype,Ee=function(e){var t=e.concat;return e===fi||ve(fi,e)&&t===fi.concat?gi:t};v({target:"Array",proto:!0},{fill:function(e){for(var t=qe(this),o=oo(t),a=arguments.length,i=to(1<a?arguments[1]:void 0,o),a=2<a?arguments[2]:void 0,n=void 0===a?o:to(a,o);i<n;)t[i++]=e;return t}}),t();var pi=e("Array").fill,vi=Array.prototype,Ue=function(e){var t=e.fill;return e===vi||ve(vi,e)&&t===vi.fill?pi:t},yi=TypeError,xi=Object.getOwnPropertyDescriptor,me=ae&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),mi=TypeError,bi=me?function(e,t){if(ha(e)&&!xi(e,"length").writable)throw yi("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},wi=function(e,t){if(!delete e[t])throw mi("Cannot delete property "+we(t)+" of "+we(e))},Da=La("splice"),ki=Math.max,Ci=Math.min;v({target:"Array",proto:!0,forced:!Da},{splice:function(e,t){var o,a,i,n,r,l,s=qe(this),u=oo(s),h=to(e,u),e=arguments.length;for(0===e?o=a=0:a=1===e?(o=0,u-h):(o=e-2,Ci(ki(Kt(t),0),u-h)),ci(u+o-a),i=pa(s,a),n=0;n<a;n++)(r=h+n)in s&&Na(i,n,s[r]);if(o<(i.length=a)){for(n=h;n<u-a;n++)l=n+o,(r=n+a)in s?s[l]=s[r]:wi(s,l);for(n=u;u-a+o<n;n--)wi(s,n-1)}else if(a<o)for(n=u-a;h<n;n--)l=n+o-1,(r=n+a-1)in s?s[l]=s[r]:wi(s,l);for(n=0;n<o;n++)s[n+h]=arguments[n+2];return bi(s,u-a+o),i}});function Ti(u){return function(e,t,o,a){Ce(t);var i=qe(e),n=P(i),r=oo(i),l=u?r-1:0,s=u?-1:1;if(o<2)for(;;){if(l in n){a=n[l],l+=s;break}if(l+=s,u?l<0:r<=l)throw Si("Reduce of empty array with no initial value")}for(;u?0<=l:l<r;l+=s)l in n&&(a=t(a,n[l],l,i));return a}}var Vi=e("Array").splice,Di=Array.prototype,Ii=function(e){var t=e.splice;return e===Di||ve(Di,e)&&t===Di.splice?Vi:t},Si=TypeError,n={left:Ti(!1),right:Ti(!0)},Li="undefined"!=typeof process&&"process"==D(process),Bi=n.left,o=!Li&&79<ge&&ge<83||!Ie("reduce");v({target:"Array",proto:!0,forced:o},{reduce:function(e){var t=arguments.length;return Bi(this,e,t,1<t?arguments[1]:void 0)}});function Ri(e){return e&&"object"===Xe(e)&&"touches"in e}function Pi(e,t){var o;return e?(e=((e=e)?("string"!=typeof e&&(e+=""),e.replace(/^\s+|\s+$/g,"")):"").split(/\s+/g),o=[],ze(e).call(e,function(e){isNaN(e)||o.push(Aa(e))}),Ai(o)):Ai([],t)}function Ai(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e&&0!==e.length?3===e.length?[e[0],e[1],e[2],e[1]]:2===e.length?[e[0],e[1],e[0],e[1]]:1===e.length?[e[0],e[0],e[0],e[0]]:[e[0],e[1],e[2],e[3]]:[t,t,t,t]}function _i(e){e&&"textarea"===e||(e="input");var t=(e=document.createElement(e)).style;return t.display="block",t.boxSizing="border-box",t.position="absolute",t.outline="none",t.zIndex=1e4,t.borderWidth=0,t.backgroundColor="rgba(0, 0, 0, 0)",e}function Mi(e,t,o){var a=t.style,i=o.rect,n=new ht.Math.Matrix2d,r=e.getZoom();ht.Default.layout(t,i),n.appendTranslate(e.tx(),e.ty()),n.appendScale(r,r),n.append(o.matrix),Oi(a,"transform","matrix("+n.a.toFixed(5)+", "+n.b.toFixed(5)+", "+n.c.toFixed(5)+",\n "+n.d.toFixed(5)+", "+n.tx.toFixed(5)+", "+n.ty.toFixed(5)+")"),Oi(a,"transformOrigin",(-i.x).toFixed(5)+"px "+(-i.y).toFixed(5)+"px")}function Oi(e,t,o){var a=t[0].toUpperCase+t.substring(1,t.length);e["webkit"+a]=o,e["moz"+a]=o,e["ms"+a]=o,e["o"+a]=o,e[t]=o}function Ei(e,t,o,a){for(var i=[],n=e.split("\n"),r=0,l=n.length;r<l;r++){var s=n[r];if(""===s&&(s=" "),a)Array.prototype.push.apply(i,Sn(s,o,t));else{for(var u,h,c="",d=void 0,g="",f=0;f<s.length;f++)s.charAt(f).match(/[a-z|A-Z]/g)?c+="1":c+="2";for(var c=(c=c.replace(/21/g,"2".concat(Ln,"1"))).replace(/12/g,"1".concat(Ln,"2")),p=0;p<c.length;p++)c.charAt(p)===Ln&&(s=Rn(s,p+1,Bn));for(var v=s.split(Bn),y=c.split(Ln),x=0,m=v.length;x<m;x++)u=g+v[x],h=He(t,u),"1"===y[x][0]?h.width>o?g?(i.push(g),g="",x--):(d=Sn(v[x],o,t),Array.prototype.push.apply(i,Me(d).call(d,0,d.length-1)),g=d[d.length-1]):g=h.width===o?(i.push(u),""):u:g=h.width>o?(d=Sn(u,o,t),Array.prototype.push.apply(i,Me(d).call(d,0,d.length-1)),d[d.length-1]):u;g&&i.push(g)}}return i}function Hi(e,t,o,a,i,n){return e?(t=t&&new Yi(t),e.pressed?a||(i&&t&&0!==t.a?ht.Default.darker(t,Ui.activeDarker):n?null:Ui.emptyColor):e.hover?o||(i&&t&&0!==t.a?ht.Default.darker(t,Ui.hoverDarker):n?null:Ui.emptyColor):t?t.getRGBA():n?null:Ui.emptyColor):t}var Wi,Fi,Ni=e("Array").reduce,ji=Array.prototype,zi=function(e){var t=e.reduce;return e===ji||ve(ji,e)&&t===ji.reduce?Ni:t},Gi={HOVER:"ht.hover",ACTIVE:"ht.active",PRESSED:"ht.pressed",DISABLED:"ht.disabled",FOCUS:"ht.focus",FONT_SIZE:"ht.fontSize",FONT_FAMILY:"ht.fontFamily",FONT:"ht.font",VALUE:"ht.value",PLACEHOLDER:"ht.placeholder",TEXT_COLOR:"ht.textColor",PADDING:"ht.padding",EDITING:"ht.editing",TEXT_ALIGN:"ht.textAlign",LINE_HEIGHT:"ht.lineHeight",WORD_BREAK:"ht.wordBreak",CHECKED:"ht.checked",LABEL:"ht.label",ICON:"ht.icon",FORM_ITEM_NAME:"ht.name",FORM_ITEM_GROUP:"ht.group",ON_CLICK:"ht.onClick",ON_CHANGE:"ht.onChange",ON_KEYDOWN:"ht.onKeyDown",ON_KEYUP:"ht.onKeyUp",ON_SELECT_ROW:"ht.onSelectRow",ON_HOVER_CELL:"ht.onHoverCell",DROP_DOWN:"ht.dropDown",FORMAT:"ht.format",SHOW_TIME:"ht.showTime",DATE_TYPE:"ht.dateType",DATA_SOURCE:"ht.dataSource",DROP_ICON_WIDTH:"ht.dropIconWidth",DROP_ICON_HEIGHT:"ht.dropIconHeight",DROP_ROW_HEIGHT:"ht.dropRowHeight",DROP_WIDTH:"ht.dropWidth",DROP_BACKGROUND:"ht.dropBackground",DROP_HOVER_BACKGROUND:"ht.dropHoverBackground",DROP_LABEL_FONT:"ht.dropLabelFont",DROP_LABEL_COLOR:"ht.dropLabelColor",DROP_ACTIVE_LABEL_COLOR:"ht.dropActiveLabelColor",DROP_ACTIVE_BACKGOUND:"ht.dropActiveBackground",DROP_MAX_HEIGHT:"ht.dropMaxHeight",INPUT_TYPE:"ht.inputType",MAX_LENGTH:"ht.maxLength",ENTER_END_INPUTABLE:"ht.enterEndInputable",HOVER_INDEX:"ht.hoverIndex",DATASOURCE:"ht.dataSource",ROW_HEIGHT:"ht.rowHeight",HEAD_HEIGHT:"ht.headHeight",TRANSLATE_X:"ht.translateX",TRANSLATE_Y:"ht.translateY",SHOW_HEAD:"ht.showHead",SELECTED_INDEX:"ht.selectedIndex",SCROLL_BAR_VISIBLE:"ht.scrollBarVisible",AUTO_HIDE_SCROLL_BAR:"ht.autoHideScrollBar",COLUMNS:"ht.columns",MULTIPLE:"ht.multiple",MAX:"ht.max",MIN:"ht.min",STEP:"ht.step",SHOW_TOOLTIP:"ht.showToolTip",TOOLTIP_FORMAT:"ht.toolTipFormat",VALUE_BAR_DRAGGABLE:"ht.valueBarDraggable",MAX_SELECTION:"ht.maxSelection",HIDE_SELECTED:"ht.hideSelected"},Ui={placeholderColor:"#737373",fontSize:12,fontFamily:"arial, sans-serif",emptyColor:"rgba(0,0,0,0)",hoverDarker:5,activeDarker:11},t=ht.Default.setImage,Yi=(t("ht.vector.date",{width:16,height:16,comps:[{type:"roundRect",borderColor:"#ffffff",cornerRadius:1,rect:[1.5,6.54942,12.94,8]},{type:"shape",borderWidth:1,borderColor:"#ffffff",borderCap:"round",closePath:!0,points:[1.5,2.4523,14.44,2.4523,14.44,2.4523,14.44,2.4523,14.44,14.54942,14.44,14.54942,14.44,14.54942,1.5,14.54942,1.5,14.54942,1.5,14.54942,1.5,2.4523,1.5,2.4523,1.5,2.4523,1.5,2.4523],segments:[1,2,3,2,3,2,3,2,3,2]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[4.46,1,4.46,4]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[11.5,1,11.5,4]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[3.52013,9.50677,7.00013,9.50677,9.00013,9.50677,12.50756,9.50677],segments:[1,2,1,2]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[3.52,12.52535,12.50756,12.52535]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[3.52013,6.54942,7.00013,6.54942,9.00013,6.54942,12.50756,6.54942],segments:[1,2,1,2]}]}),t("ht.vector.dropDownIcon",{width:18,height:10,comps:[{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",points:[1,1,9,9,17,1]}]}),t("ht.vector.treeOpenIcon",{width:10,height:10,attachStyle:"close",blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",borderColor:"rgb(0,0,0)",closePath:!0,points:[0,0,10,5,0,10]}]}),t("ht.vector.treeCloseIcon",{width:10,height:10,attachStyle:"close",blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",borderColor:"rgb(0,0,0)",closePath:!0,points:[0,0,10,0,5,10]}]}),t("ht.vector.treeDefIcon",{width:22,height:16,blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[19.46829,3.58619,19.46829,1.10347,7.80392,1.10347,6.77294,0,0,0,0,16,19.46157,16,22,3.58619,19.46829,3.58619,6.04692,1.12664,7.07791,2.23011,18.26449,2.23011,18.26449,3.59706,2.82065,3.59706,1.12837,10.10776,1.12837,1.12664,6.04692,1.12664,18.43055,14.74166,1.12837,14.74166,1.12837,14.63244,3.68405,4.67291,20.5368,4.67291,18.43055,14.74166],segments:[1,2,2,2,2,2,2,2,2,5,1,2,2,2,2,2,2,2,5,1,2,2,2,2,2,5]}]}),t("ht.vector.treeLoadIcon",{width:32,height:32,blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[16.5125,32,7.69062,32,.5125,24.82187,.5125,16,.5125,7.17813,7.6875,0,16.5125,0,20.60625,0,24.5,1.54375,27.48125,4.35,27.84688,4.69375,27.8625,5.26563,27.51875,5.63125,27.175,5.99375,26.60313,6.0125,26.2375,5.66875,23.59375,3.18125,20.14063,1.8125,16.5125,1.8125,8.6875,1.8125,2.325,8.17812,2.325,16,2.325,23.82187,8.69062,30.1875,16.5125,30.1875,22.40937,30.1875,27.60312,26.6375,29.74063,21.14063,29.92188,20.675,30.44688,20.44063,30.9125,20.625,31.37813,20.80625,31.60938,21.33125,31.42813,21.79688,29.01563,27.99687,23.1625,32,16.5125,32],segments:[1,4,4,4,4,4,4,4,4,4,4,4,4,5]}]}),t("ht.vector.treeCheckIcon",{dataBindings:[],width:160,height:160,attachStyle:"close",blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[139.3,.47663,20.5,.47663,9.52832,.47663,.5,9.50496,.5,20.47663,.5,139.57663,.5,150.54831,9.52832,159.57663,20.5,159.57663,139.5,159.57663,150.47168,159.57663,159.5,150.54831,159.5,139.57663,159.5,20.37663,159.47367,15.05689,157.32589,9.96152,153.53619,6.22809,149.74648,2.49467,144.61954,.42337,139.3,.47663,133.1,47.37663,61.3,119.57663,60.37719,120.51835,59.11835,121.05785,57.8,121.07663,56.41253,121.11208,55.0711,120.56825,54.1,119.57663,26.4,88.27663,24.93292,87.00925,24.32978,84.99815,24.85726,83.13258,25.38474,81.26701,26.95166,79.86949,28.86517,79.55795,30.77868,79.24642,32.70799,80.07473,33.8,81.67663,57.9,108.57663,126.1,40.37663,127.27177,38.81427,129.2561,38.07551,131.1643,38.49122,133.07249,38.90692,134.56971,40.40414,134.98541,42.31234,135.40112,44.22053,134.66236,46.20486,133.1,47.37663],segments:[1,2,4,2,4,2,4,2,4,4,5,1,2,4,4,2,4,4,4,2,2,4,4,4,5]}]}),t("ht.vector.treeUnCheckIcon",{width:160,height:160,blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[130,5,30,5,16.25,5,5,16.25,5,30,5,130,5,143.75,16.25,155,30,155,130,155,143.75,155,155,143.75,155,130,155,30,155,16.25,143.75,5,130,5,142.5,130,142.5,136.875,136.875,142.5,130,142.5,30,142.5,23.125,142.5,17.5,136.875,17.5,130,17.5,30,17.5,23.125,23.125,17.5,30,17.5,130,17.5,136.875,17.5,142.5,23.125,142.5,30,142.5,130],segments:[1,2,4,2,4,2,4,2,4,5,1,4,2,4,2,4,2,4,2,5]}]}),t("ht.vector.treeUnCheckAllIcon",{width:160,height:160,blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[158.11523,31.17188,158.11523,128.82813,158.11523,136.89453,155.24414,143.80859,149.52148,149.53125,143.79883,155.25391,136.9043,158.125,128.81836,158.125,31.18164,158.125,23.11523,158.125,16.20117,155.25391,10.47852,149.53125,4.75586,143.80859,1.88477,136.91406,1.88477,128.82813,1.88477,31.17188,1.88477,23.10547,4.75586,16.19141,10.47852,10.46875,16.20117,4.74609,23.0957,1.875,31.18164,1.875,128.83789,1.875,136.9043,1.875,143.81836,4.74609,149.54102,10.46875,155.24414,16.19141,158.11523,23.10547,158.11523,31.17188,132.06055,86.52344,132.06055,73.49609,132.06055,71.73828,131.41602,70.19531,130.12695,68.92578,128.83789,67.63672,127.29492,66.99219,125.55664,66.99219,34.42383,66.99219,32.66602,66.99219,31.12305,67.63672,29.85352,68.92578,28.56445,70.21484,27.91992,71.75781,27.91992,73.49609,27.91992,86.52344,27.91992,88.28125,28.56445,89.82422,29.85352,91.09375,31.14258,92.38281,32.64648,93.02734,34.42383,93.02734,125.55664,93.02734,127.31445,93.02734,128.85742,92.38281,130.12695,91.09375,131.41602,89.78516,132.06055,88.26172,132.06055,86.52344],segments:[1,2,4,4,2,4,4,2,4,4,2,4,4,5,1,2,4,4,2,4,4,2,4,4,2,4,4,5]}]}),t("ht.vector.pagination.previous",{background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",points:[28,17,18,25,28,33]}]}),t("ht.vector.pagination.next",{background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:3.14159,points:[32,17,22,25,32,33]}]}),t("ht.vector.pagination.first",{background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:0,points:[35,17,25,25,35,33]},{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:0,points:[29,17,19,25,29,33]}]}),t("ht.vector.pagination.last",{background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:3.14159,points:[29,17,19,25,29,33]},{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:3.14159,points:[35,17,25,25,35,33]}]}),t("ht.vector.pagination.ellipsis",{modified:"Mon Aug 26 2019 15:46:29 GMT+0800 (中国标准时间)",background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"oval",background:"rgb(255,255,255)",borderColor:"#979797",rect:[12.18756,23,4,4]},{type:"oval",background:"rgb(255,255,255)",borderColor:"#979797",rect:[23,23,4,4]},{type:"oval",background:"rgb(255,255,255)",borderColor:"#979797",rect:[33.81244,23,4,4]}]}),function(){function i(e,t,o,a){c(this,i),this.r=null,this.g=null,this.b=null,this.a=null,e&&this.setColor(e,t,o,a)}return s(i,[{key:"setColor",value:function(e,t,o,a){var i;e&&!t?(i=ht.Default.toColorData(e),this.r=i[0],this.g=i[1],this.b=i[2],this.a=i[3]/255):(this.r=e,this.g=t,this.b=o,this.a=a)}},{key:"toString",value:function(){return 1!==this.a&&null!==this.a?this.getRGBA():this.getWebColor()}},{key:"getRGB",value:function(){var e=this.r,t=this.g,o=this.b;return null!==e&&null!==t&&null!==o?Ee(e=Ee(e="rgb(".concat(e,", ")).call(e,t,", ")).call(e,o,")"):null}},{key:"getRGBA",value:function(){var e=this.r,t=this.g,o=this.b,a=this.a;return null!==e&&null!==t&&null!==o?Ee(t=Ee(e=Ee(e="rgba(".concat(e,", ")).call(e,t,", ")).call(e,o,", ")).call(t,null===a?1:a.toFixed(2),")"):null}},{key:"getWebColor",value:function(){var e=this.r,t=this.g,o=this.b;return null!==e&&null!==t&&null!==o?Ee(e=Ee(e="#".concat(this._getWebValue(e))).call(e,this._getWebValue(t))).call(e,this._getWebValue(o)):null}},{key:"_getWebValue",value:function(e){e=e.toString(16);return e=1===e.length?"0"+e:e}}]),i}()),Le="top",Be="bottom",Re="right",Pe="left",Ae="center",_e="middle",Xi="multiple",Zi="single",qi="radio",Ki="checkbox",Ji="x",he="y",$i=2,Qi="e",en="category",tn="time",on="bar",an="line",nn="diffLine",rn="cube",ln="cylinder",sn="Previous",un="Next",hn="Previous Jump",cn="Next Jump",dn="First",gn="Last",fn={tooltipSyncZoom:!1},pn=/firefox/.test(window.navigator.userAgent.toLowerCase()),vn=/MSIE/.test(window.navigator.userAgent.toLowerCase()),me=ht.Default,yn=me.removeHTML,xn=me.appendToScreen,mn=me.getClientPoint,bn=me.brighter,wn=me.darker,kn=me.isString,Cn=me.getScreenPoint,Tn=me._edgeProtectMethod,Vn=me.callLater,Dn=me.isDoubleClick,In=ht.Math.fequal,He=(Wi={},Fi=document?ht.Default.createCanvas().getContext("2d"):null,function(e,t){Fi.font=e||ht.Default.labelFont;e=Wi[Fi.font];return e||(e=2*Fi.measureText("e").width,Wi[Fi.font]=e),{width:Fi.measureText(t).width+2,height:e}}),Sn=(document.createElement("input").setAttribute("style","width: 0;height: 0;"),function(e,t,o){for(var a=[],i=0,n=1,r=e.length;n<=r;n++){var l=e.substring(i,n);He(o,l).width>t&&(i=n-1===i?(a.push(e.substring(i,n)),n):(a.push(e.substring(i,n-1)),n-1))}return i!==n-1&&a.push(e.substring(i,n)),a}),Ln="|",Bn="\n",Rn=function(e,t,o){return e=e.substring(0,t-1)+o+e.substring(t-1,e.length)};function Pn(e,t){var o,a=e.prototype,i=ht.Default.getMSMap();for(o in t)i[o]&&i.hasOwnProperty(o)?i[o](a,t):a[o]=t[o]}function An(e){e=e.a(Gi.VALUE);return void 0===e?"":e}function _n(n){var r=(e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).multiple,l=e.readType,s=ti(e),e=e.accept;Mn||((Mn=document.createElement("input")).setAttribute("type","file"),Mn.setAttribute("id","hiddenFile"),Mn.style.width=0,Mn.style.height=0,Mn.addEventListener("change",function(e){yn(Mn),Mn=null;for(var o,t=e.target.files,a={files:[]},i=0;i<t.length;i++)(!s||s(t[i]))&&a.files.push(t[i]);l&&0!==a.files.length?r?(o=0,ze(e=a.files).call(e,function(t){var e=new FileReader;e.onload=function(e){t.readResult=e.target.result,++o===a.files.length&&n(a)},On(e,t,l)})):((e=new FileReader).onload=function(e){t[0].readResult=e.target.result,n(a)},On(e,t[0],l)):n(a)}),xn(Mn)),Mn.multiple=!!r,Mn.accept=e||"",Mn.click()}var Mn;Mn=null;function On(e,t,o){"binaryString"===o?e.readAsBinaryString(t):"ArrayBuffer"===o?e.readAsArrayBuffer(t):"dataUrl"===o?e.readAsDataURL(t):e.readAsText(t)}function En(e,t){for(var o=[],a=0,i=0,n=0,r=e.length;n<r;n++){var l,s,u,h=e[n].width||.1;isNaN(h)?(l=h.split("+"),1<(s=ri(l[0]))?i+=s:a+=s,(u=[]).push(s),1<(s=ri(l[1]))?(i+=s,u.unshift(s)):(a+=s,u.push(s)),o.push(u)):(1<=(h=ri(h))?i+=h=Math.max(1,h):a+=h,o.push(h))}for(n=0,r=o.length;n<r;n++)(h=o[n])<1?o[n]=Math.max(0,h/a*(t-i)):h instanceof Array&&(o[n]=h[0]+Math.max(0,h[1]/a*(t-i)));return o}function Hn(e){return{x:(e=je(e,4))[0],y:e[1],width:e[2],height:e[3]}}function Wn(e,t,o,a){var i=gr(e,t),n=fr(i,t,e instanceof ht.graph3d.Graph3dView,a);if(n)for(var r=0,l=n.length;r<l;r++){var s=n[r];if(s.comp===o)return s}return null}function Ye(e,t,o){if(!(e=gr(e,t)))return{};var a=t.getCurrentPrefix?t.getCurrentPrefix():null;if(e.vectorInfos)for(var i=e.vectorInfos,n=0;n<i.length;n++){var r=i[n];if(r.comp===o&&r.prefix===a)return r}else e.vectorInfos=[];return t={comp:o,prefix:a},e.vectorInfos.push(t),t}function Fn(e,t,o,a,i){a&&(a.editing=!1,delete a.dom),i&&e.a(i,o.value),e.iv(),yn(o)}function E(e,t){"default"===t&&(t=null),e.getView().style.cursor=t}function X(e,t,o,a){var e=e[t],o=o.getCurrentPrefix?o.getCurrentPrefix():null;if(e&&e.func){if("string"==typeof e.func)return(e=je(e.func.split("@"),2))[0],(o||"")+e[1]}else if(o)return o+t;return null}function Nn(e,t){return{x:e.x-t,y:e.y-t,width:e.width+2*t,height:e.height+2*t}}function jn(e,t,o){var e=(t=Wn(o,t,e)).rect,t=t.matrix,a=new ht.Math.Matrix2d,i=rr(o),n=o.tx?o.tx():0,r=o.ty?o.ty():0,t=(a.append(t),new ht.Math.Vector2),l=a.apply(t.set(e.x,e.y)),s=a.apply(t.set(e.x,e.y+e.height)),u=a.apply(t.set(e.x+e.width,e.y)),a=a.apply(t.set(e.x+e.width,e.y+e.height));return xr([Cn(l.x,l.y,o.getCanvas(),n,r,i,i),Cn(s.x,s.y,o.getCanvas(),n,r,i,i),Cn(u.x,u.y,o.getCanvas(),n,r,i,i),Cn(a.x,a.y,o.getCanvas(),n,r,i,i)])}function zn(e,t,o){var a,i;return e&&e.func?(a=e.func,i=e.value,t=ht.Default.isFunction(a)?o&&o.vectorDataBindingDisabled&&!e.isSafeFunc?i:a(t,o):t instanceof ht.Data?/^attr@/.test(a)?t.a(Me(a).call(a,5)):/^style@/.test(a)?t.s(Me(a).call(a,6)):/^field@/.test(a)?t[Me(a).call(a,6)]:t[a]?t[a](o):i:i,void 0!==i&&null==t?i:t):e}function Gn(e,t){var o=t.borderWidth,a=t.borderColor,i=t.dash,n=t.dashPattern,r=t.background,l=t.bgGradient,s=t.bgGradientColor,t=t.contentRect;i&&e.setLineDash(n),r&&(l&&s&&(r=(i=ht.Default).createGradient.apply(i,Ee(n=[e,l,r,s]).call(n,Ze(t)))),e.fillStyle=r,Ue(e).call(e)),o&&a&&(e.strokeStyle=a,e.lineWidth=o,e.stroke())}function Un(e,t,o,a){var i=t.x,n=t.y,r=t.width,t=t.height;e.fillStyle=o,e.beginPath(),xe(e,i,n,r,t,a),e.closePath(),Ue(e).call(e)}function H(e,t,o,a,i){return e=Wn(e,t,o,i),{x:a.x+e.rect.x,y:a.y+e.rect.y}}function Yn(e){return ht.Default.clone(e)}function Xn(e){return ht.Default.isArray(e)}function Zn(e){return ht.Default.isObject(e)}function qn(e,t,o,a){ht.Default.drawPoints(e,t,o,a)}function Kn(e,t,o,a,i,n,r,l,s){!s&&r&&(s=r.s("body.color")),ht.Default.drawImage(e,t,o,a,i,n,r,l,s)}function Jn(e,t){return ht.Default.intersectsRect(e,t)}function $n(e,t,o){var a,i,n,r,l;return o?(l=He(e,t),a=new ht.Math.Vector2(0,0),i=new ht.Math.Vector2(l.width,0),n=new ht.Math.Vector2(l.width,l.height),r=new ht.Math.Vector2(0,l.height),l=new ht.Math.Vector2(l.width/2,l.height/2),o=lr(o),a.rotateAround(l,o),i.rotateAround(l,o),n.rotateAround(l,o),r.rotateAround(l,o),xr([a,i,n,r])):He(e,t)}function Qn(e,t){var o=e.x,a=e.y,i=e.width,e=e.height,n=t.x,t=t.y,n=Math.max(n,o-1);return n=Math.min(n,o+i+1),t=Math.max(t,a-1),{x:n,y:Math.min(t,a+e+1)}}function er(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.3,o=e.length,a=[],i=[];if(o<=2)return{points:e,segments:o?1===o?[1]:[1,2]:null};for(var n=0;n<o;n++){var r=e[n],l=e[n-1]||r,s=e[n+1]||r,u=Math.sqrt(Math.pow(r.x-l.x,2)+Math.pow(r.y-l.y,2)),h=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),c=u/(u+h),u=h/(u+h),h=t*(isNaN(c)?0:c),c=t*(isNaN(u)?0:u);n&&a.push({x:r.x-h*(s.x-l.x),y:r.y-h*(s.y-l.y)}),a.push(r),n!==o-1&&a.push({x:r.x+c*(s.x-l.x),y:r.y+c*(s.y-l.y)}),i.push(n?4:1)}return{points:a,segments:i}}function tr(){var o=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(o+16*Math.random())%16|0;return o=Math.floor(o/16),("x"==e?t:3&t|8).toString(16)})}function or(e){return ht.Default.toColorData(e)}function ar(e,t){return ht.Default.getDistance(e,t)}function ir(e,t,o){var a,i,n,r,l,s,u;return"object"===Xe(t)?(u=t.type,a=t.colorStops,l=t.coordinate,i=o.x,n=o.y,r=o.width,o=o.height,"radial"===u?(l=l||[0,0,.5,0,1,.5],u=Math.min(r,o),u=[i+r*l[0],n+o*l[1],u*l[2],i+r*l[3],n+o*l[4],u*l[5]],s=e.createRadialGradient.apply(e,u),ze(a).call(a,function(e){var t=e.offset,e=e.color;s.addColorStop(t,e)})):(u=[i+r*(l=l||[0,0,0,1])[0],n+o*l[1],i+r*l[2],n+o*l[3]],s=e.createLinearGradient.apply(e,u),ze(a).call(a,function(e){var t=e.offset,e=e.color;s.addColorStop(t,e)})),s):t}function nr(e){var t=e.x,o=e.y,a=e.width,e=e.height,i=a/2,n=e/2;return{middleMiddle:{x:t+i,y:o+n},topMiddle:{x:t+i,y:o},bottomMiddle:{x:t+i,y:o+e},leftMiddle:{x:t,y:o+n},rightMiddle:{x:t+a,y:o+n}}}function rr(e){return e.getZoom?e.getZoom():1}function lr(e){return Math.PI*(e/180)}function sr(e){return e=e.getBoundingClientRect(),We(e.x)&&(e.x=e.left,e.y=e.top),e}function ur(e){Oe(kr).call(kr,e)<0&&kr.push(e)}function hr(e){0<=(e=Oe(kr).call(kr,e))&&Ii(kr).call(kr,e,1)}function cr(t,o){var a=(o.y-t.y)/(o.x-t.x),i=t.y-a*t.x;return{conditionY:function(e){return e>=Math.min(t.x,o.x)&&e<=Math.max(t.x,o.x)},lineY:function(e){return a*e+i},conditionX:function(e){return e>=Math.min(t.y,o.y)&&e<=Math.max(t.y,o.y)},lineX:function(e){return(e-i)/a}}}function dr(e,t,o){return e=function(e,t){for(var o=[],a=e.length,i=0;i<a;i++)for(var n=e[i],r=(n=n._as?n._as:n)[0],l=1;l<n.length;l++)o.push([r,n[l]]),r=n[l];for(var s=[],i=0;i<o.length;i++){var u=Cr(o[i][0],o[i][1],t);s.push(u)}return{distance:s,segments:o}}(Tn.getStraightLinePoints(null,e,t),o),zi(o=Ge(t=e.distance).call(t,function(e){return e.z})).call(o,function(e,t){return Math.min(e,t)},1/0)}var gr=function(e,t){return e&&t?e.getDataUI?e.getDataUI(t):e.getData3dUI?e.getData3dUI(t):void 0:null},fr=function(e,t,o,a){var i;return e&&e.interactiveInfo?o?("billboard"===t.s("shape3d")?i=t.s("shape3d.image"):a&&(o=e.gv.intersectObject(a,t),i=t.s("".concat("body"===o.part?"":o.part+".","image"))||t.s("shape3d.".concat("body"===o.part?"":o.part+".","image"))),i&&e.interactiveInfo[i]?e.interactiveInfo[i].bodyInfo.compInfos:null):e.interactiveInfo.bodyInfo?e.interactiveInfo.bodyInfo.compInfos:null:null},We=function(e){return null==e},pr=function e(t,o,a){for(var i in o){var n=o[i];"object"!==Xe(n)||ht.Default.isArray(n)||a?t[i]=o[i]:(We(t[i])&&ht.Default.isObject(o[i])&&(t[i]={}),e(t[i],o[i]))}},vr=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e[t%=e.length]},Fe=function(e){return!We(e)},yr=function(e,t,o,a,i,n,r,l,s,u){ht.Default.drawText(e,t,o,a,i,n,r,l,s,u)},xe=function(e,t,o,a,i,n,r,l,s){ht.Default.drawRoundRect.apply(ht.Default,arguments)},La=ht.Default,xr=La.unionPoint,Q=La.containsPoint,mr=function(e,t,o,a,i,n,r,l,s,u){!u&&l&&(u=l.s("body.color")),ht.Default.drawStretchImage(e,t,o,a,i,n,r,l,s,u)},br=function(e,t){t=(t=t.replace(/yyyy|YYYY/,e.getFullYear())).replace(/yy|YY/,9<e.getYear()%100?(e.getYear()%100).toString():"0"+e.getYear()%100);var o=e.getMonth()+1,o=(t=(t=(t=(t=(t=t.replace(/MM/,9<o?o.toString():"0"+o)).replace(/M/g,o)).replace(/w|W/g,["日","一","二","三","四","五","六"][e.getDay()])).replace(/dd|DD/,9<e.getDate()?e.getDate().toString():"0"+e.getDate())).replace(/d|D/g,e.getDate()),e.getHours());return t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/HH/,9<o?o.toString():"0"+o)).replace(/H/g,o)).replace(/A/g,12<=o?"PM":"AM")).replace(/Aa/g,12<=o?"pm":"am")).replace(/hh/,9<(o=12<o?o%12:o)?o.toString():"0"+o)).replace(/h/g,o)).replace(/mm/,9<e.getMinutes()?e.getMinutes().toString():"0"+e.getMinutes())).replace(/m/g,e.getMinutes())).replace(/ss|SS/,9<e.getSeconds()?e.getSeconds().toString():"0"+e.getSeconds())).replace(/s|S/g,e.getSeconds())},wr=function(e){return ht.Default.getImage(e)},kr=[],Cr=function(e,t,o){var a=e.x,i=e.y,n=t.x,r=t.y,l=o.x,o=o.y,n=n-a,r=r-i,s=Math.sqrt(n*n+r*r),u=n/s,s=r/s,h=(-a+l)*u+(-i+o)*s,a={x:a+h*u,y:i+h*s};return a.x>=Math.min(e.x,t.x)&&a.x<=Math.max(e.x,t.x)&&a.y>=Math.min(e.y,t.y)&&a.y<=Math.max(e.y,t.y)||(a.x=(Math.abs(a.x-e.x)<Math.abs(a.x-t.x)?e:t).x,a.y=(Math.abs(a.y-e.y)<Math.abs(a.y-t.y)?e:t).y),n=l-a.x,r=o-a.y,a.z=Math.sqrt(n*n+r*r),a},r={},Tr=Function,Vr=a([].concat),Dr=a([].join),Ir={},Da=w?Tr.bind:function(r){var l=Ce(this),e=l.prototype,s=Ma(arguments,1),u=function(){var e=Vr(s,Ma(arguments));if(this instanceof u){var t=l,o=e.length,a=e;if(!et(Ir,o)){for(var i=[],n=0;n<o;n++)i[n]="a["+n+"]";Ir[o]=Tr("C,a","return new C("+Dr(i,",")+")")}return Ir[o](t,a)}return l.apply(r,e)};return ee(e)&&(u.prototype=e),u};v({target:"Function",proto:!0,forced:Function.bind!==Da},{bind:Da});function Sr(e,t,o,a){var i=o.dropDown;i?i.open():((i=new Fr(e,t,o,"a@"+a)).open(),o.dropDown=i)}function Lr(e,t,o,a){var i=o.dropDown;e.getFormat=function(){return e.a(Gi.FORMAT)},e.getCurrentFormat=function(){return e.a(Gi.FORMAT)},i||(i=new Nr(e,t,o,a),o.dropDown=i),i.open(),o.hideDropDownButtons&&(i._dropDownView.removeViewAt(1),t=i._dropDownView.getPreferredSize(),i._dropDownView.setWidth(t.width),i._dropDownView.setHeight(t.height))}var Br,Rr,Pr,Ar,_r,Mr,Or=e("Function").bind,Er=Function.prototype,Hr=function(e){var t=e.bind;return e===Er||ve(Er,e)&&t===Er.bind?Or:t},Wr=function(){function i(t,e,o,a){c(this,i),this.data=t,this.graph=e,this.vectorInfo=o,this.valueType=a,this._documentClickHandler=Hr(e=this.documentClickHandler).call(e,this),ht.Default.addMethod(t,{isInstant:function(){return this.a("ht.instant")},setInstant:function(e){t.a("ht.instant",e)}})}return s(i,[{key:"init",value:function(){var t=this,o=(this._initing=!0,this.data),e=(this.graph,o.a("ht.dropDownProperty")),a=this.value,i=new this.dropDownClazz,n=(this.initDate&&"5.0"<ht.Default.getUIVersion()&&(a=this.initDate(a)),this.formatRangeDate&&(a=this.formatRangeDate(a)),i._dropDownView=i.initDropDownView(o,this.getDatas(),a));if(e&&e.buttonTexts&&i.setPropertyValue("buttonTexts",e.buttonTexts),e)for(var r in e)i.setPropertyValue(r,e[r]);o&&(o.getInstant=function(){return!0}),i.getDropDownView=function(){return n},n.on("d:click",function(e){e.stopPropagation()}),n.on("d:mousedown",function(e){e.stopPropagation()}),n.on("d:mousewheel",function(e){e.stopPropagation()}),n.on("d:mousemove",function(e){t.dropDownClazz!==ht.ui.ColorDropDown&&t.dropDownClazz!==ht.ui.DateRangeDropDown&&t.dropDownClazz!==ht.ui.DateTimeDropDown&&e.stopPropagation()}),i.addDropDownListener(function(e){"cancel"===e.kind&&(e=o.a("ht.onClose"))&&e(o,this.graph)}),this._dropDown=i,this._dropDownView=n,this.onInit(i,n);var l=jn(this.vectorInfo.comp,this.data,this.graph);this.prepareLayoutDropDown(i,n,{left:l.x,top:l.y,width:l.widht,height:l.height}),xn(n.getView()),i.addValueChangeListener(this.handleDropDownValueChange,this),i.addDropDownListener(this.handleDropDownChange,this),Wa(function(){t.registerCloseEvent(t._documentClickHandler)},100),i.afterOpen(a),n.iv(!0),this._initing=!1}},{key:"onInit",value:function(e,t){}},{key:"getDatas",value:function(){return null}},{key:"prepareLayoutDropDown",value:function(e,t,o){var a=ht.Default.getWindowInfo(),i=this.graph,n=jn(this.vectorInfo.comp,this.data,this.graph),r=t.getView().style,l=e.getWidth(),e=e.getHeight(),i=(this.vectorInfo.dropDownSyncZoom&&i.getClassName(),Math.max(0,n.x)),s=n.y+n.height,u="50% 0";s+e>a.height&&s-n.height>e&&(s=s-e-n.height,u="50% 100%"),i+l>a.width&&(i=a.width-l),r.left=i+"px",r.top=s+"px",t.setWidth(l),t.setHeight(e),Oi(r,"transformOrigin",u)}},{key:"registerCloseEvent",value:function(e){var t=this.graph.getView();document.addEventListener("touchstart",e),t.addEventListener("touchstart",e),document.addEventListener("mousedown",e),t.addEventListener("mousedown",e)}},{key:"unregisterCloseEvent",value:function(e){var t=this.graph.getView();document.removeEventListener("touchstart",e),t.removeEventListener("touchstart",e),document.removeEventListener("mousedown",e),t.removeEventListener("mousedown",e)}},{key:"_clearDropDown",value:function(){this._dropDown=this._dropDownView=null,this.vectorInfo.editing=!1,this.data.iv()}},{key:"documentClickHandler",value:function(e){var t,o,a,i=this.data,n=this.graph;ht.Default.isLeftButton(e)&&(t=this._dropDown,o=this._dropDownView,a=this.vectorInfo.comp,a=jn(a,i,n),o)&&(i=o.containsEvent?o.containsEvent(e):t.isClickOnDropDownView(e),ht.Default.containsPoint(a,ht.Default.getClientPoint(e))||i||this.close())}},{key:"close",value:function(){var e=this;!e._initing&&e._dropDown&&(e._dropDown.cancel(),this.vectorInfo.editing=!1,delete e._dropDown,delete e._dropDownView,this.data.iv()),hr(this)}},{key:"handleDropDownValueChange",value:function(e){this.value=e.value}},{key:"open",value:function(){var e;!this.isOpened()&&(this.init(),this.vectorInfo.editing=!0,this.data.iv(),e=this.data.a("ht.onOpen"))&&e(this.data,this.graph),ur(this)}},{key:"isOpened",value:function(){return!!this._dropDown}},{key:"handleDropDownChange",value:function(e){this.data;var t=this,o=t._dropDown,a=t._dropDownView;o&&(o.beforeClose(),"stop"===e.kind&&void 0!==(e=o.getDropDownValue())&&(this.value=e),t._clearDropDown(),ht.Default.removeHTML(a.getView()),o.removeValueChangeListener(t.handleDropDownValueChange,t),this.unregisterCloseEvent(this._documentClickHandler),o.afterClose())}},{key:"value",get:function(){var e=this.data,t=je(this.valueType.split("@"),2),o=t[0],t=t[1];if("a"===o)return e.a(t);if("s"===o)return e.s(t);if("p"===o){o=ht.Default.getter(t);if(e[o])return e[o]()}return null},set:function(e){var t=this.data,o=this.valueType,a=this.graph,o=je(o.split("@"),2),i=o[0],o=o[1],n=this.vectorInfo.onChange,r=this.value;"a"===i?t.a(o,e):"s"===i?t.s(o,e):"p"===i&&t[i=ht.Default.setter(o)]&&t[i](e),n&&n(r,e,t,a)}}]),i}(),Fr=function(){d(n,Wr);var i=g(n);function n(e,t,o,a){return c(this,n),(e=i.call(this,e,t,o,a)).dropDownClazz=ht.ui.ColorDropDown,e}return s(n)}(),Nr=function(){d(n,Wr);var i=g(n);function n(e,t,o,a){return c(this,n),(e=i.call(this,e,t,o,a)).dropDownClazz=ht.ui.DateTimeDropDown,e}return s(n,[{key:"onInit",value:function(e,t){var o=this.data,a=o.a(Gi.DATE_TYPE),i=o.a("ht.selectableFunc"),n=o.a("ht.dropDownProperty");if(e.setPropertyValue("dateTimePane.type",a,!0),e.setPropertyValue("dateTimePane.selectableFunc",i,!0),n)for(var r in n)e.setPropertyValue(r,n[r],!0)}},{key:"handleDropDownChange",value:function(e){this.data;var t=this,o=t._dropDown,a=t._dropDownView;o&&(o.beforeClose(),"stop"===e.kind&&void 0!==(e=o.getDropDownValue())&&(this.value=isNaN(new Date(e).getTime())?e:ht.Default.formatDate(new Date(e),this.data.getFormat())),t._clearDropDown(),ht.Default.removeHTML(a.getView()),o.removeValueChangeListener(t.handleDropDownValueChange,t),this.unregisterCloseEvent(this._documentClickHandler),o.afterClose())}},{key:"initDate",value:function(e){return e?new Date(e):null}}]),n}(),jr=(window.easepick&&(Br=easepick.create.prototype.updateValues,easepick.create.prototype.updateValues=function(){var t=this;Br.apply(this),null!==this.timer&&clearTimeout(this.timer),this.timer=Wa(function(){var e=t.getDate();t.oldDate&&(e=new Date(br(e,"YYYY-MM-DD ")+br(t.oldDate,"HH:mm:ss"))),t.onValueChange&&t.onValueChange(e)},10)},Rr=easepick.create.prototype.setDate,easepick.create.prototype.setDate=function(e){this.oldDate=this.getDate(),Rr.apply(this,arguments)},easepick.create.prototype.toogle=function(){this.isShown()?this.hide():this.show()},Pr=easepick.create.prototype.hide,easepick.create.prototype.hide=function(){this.onHidden&&this.onHidden(),Pr.apply(this)},Ar=easepick.create.prototype.show,easepick.create.prototype.show=function(e){this.onPreShow&&this.onPreShow(),Ar.apply(this,arguments),this.onShown&&this.onShown()},_r=easepick.RangePlugin.prototype.setDateRange,easepick.RangePlugin.prototype.setDateRange=function(e,t){this.picker.oldDate=[this.getStartDate(),this.getEndDate()],_r.apply(this,arguments)},Mr=easepick.RangePlugin.prototype.updateValues,easepick.RangePlugin.prototype.updateValues=function(){var e=this,t=(Mr.apply(this),ht.Default.clone([this.getStartDate(),this.getEndDate()])),o=this.picker.PluginManager;o&&o.instances&&o.instances.TimePlugin&&((o=o.instances.TimePlugin.timePicked).start&&(t[0]=new Date(br(t[0],"YYYY-MM-DD ")+br(o.start,"HH:mm:ss"))),o.end)&&(t[1]=new Date(br(t[1],"YYYY-MM-DD ")+br(o.end,"HH:mm:ss"))),null!==this.timer&&clearTimeout(this.timer),this.timer=Wa(function(){e.picker.onValueChange&&e.picker.onValueChange(t)},10)}),'*{box-sizing:border-box}.container{border-radius:var(--box-border-radius);color:var(--color-fg-default);cursor:default;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.8em;height:0;overflow:hidden;pointer-events:all;position:absolute;transform:scale(0);transform-origin:top left;transition:transform .3s ease-out}.container.calc{height:auto;transform:none;transition:none;visibility:hidden}.container.show{box-shadow:0 0 25px rgba(0,0,0,.3);height:auto;transform:scale(1)}.container.inline{box-shadow:0 7px 14px 0 rgba(65,69,88,.1),0 3px 6px 0 rgba(0,0,0,.07);height:auto;left:0;position:relative;top:0;transform:scaleY(1)}.container>main{background-color:var(--color-bg-default)}.container>footer,.container>header{background-color:var(--color-bg-secondary);padding:10px}.container>footer .footer-buttons{-moz-column-gap:var(--button-gap);column-gap:var(--button-gap);display:flex;justify-content:var(--button-align)}.container>footer .footer-buttons>button{background-color:transparent;border:1px solid transparent;border-radius:var(--border-radius);cursor:pointer;padding:5px 10px}.container>footer .footer-buttons>button.apply-button{background-color:var(--color-btn-primary-bg);border-color:var(--color-btn-primary-border);color:var(--color-btn-primary-fg)}.container>footer .footer-buttons>button.apply-button:hover{background-color:var(--color-btn-primary-hover-bg);border-color:var(--color-btn-primary-hover-border);color:var(--color-btn-primary-hover-fg)}.container>footer .footer-buttons>button.apply-button:disabled{background-color:var(--color-btn-primary-disabled-bg);border-color:var(--color-btn-primary-disabled-border);color:var(--color-btn-primary-disabled-fg);cursor:default}.container>footer .footer-buttons>button.cancel-button{background-color:var(--color-btn-secondary-bg);border-color:var(--color-btn-secondary-border);color:var(--color-btn-secondary-fg)}.container>footer .footer-buttons>button.cancel-button:hover{background-color:var(--color-btn-secondary-hover-bg);border-color:var(--color-btn-secondary-hover-border);color:var(--color-btn-secondary-hover-fg)}.container>footer .footer-buttons>button.cancel-button:disabled{background-color:var(--color-btn-secondary-disabled-bg);border-color:var(--color-btn-secondary-disabled-border);color:var(--color-btn-secondary-disabled-fg);cursor:default}.grid-1{grid-template-columns:repeat(1,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-5{grid-template-columns:repeat(5,1fr)}.grid-6{grid-template-columns:repeat(6,1fr)}.grid-7{grid-template-columns:repeat(7,1fr)}.grid-8{grid-template-columns:repeat(8,1fr)}.grid-9{grid-template-columns:repeat(9,1fr)}.grid-10{grid-template-columns:repeat(10,1fr)}.grid-11{grid-template-columns:repeat(11,1fr)}.grid-12{grid-template-columns:repeat(12,1fr)}.calendars{display:grid}.calendars:not(.grid-1) .calendar>.header .month-name{order:2;text-align:center}.calendars:not(.grid-1) .calendar>.header .previous-button{order:1;visibility:hidden}.calendars:not(.grid-1) .calendar>.header .next-button{order:3;visibility:hidden}.calendars:not(.grid-1) .calendar:first-child>.header .previous-button,.calendars:not(.grid-1) .calendar:last-child>.header .next-button{visibility:visible}.calendar{padding:10px}.calendar>.header{align-items:center;-moz-column-gap:5px;column-gap:5px;display:flex;justify-content:space-between;padding:10px}.calendar>.header .month-name{flex:1;font-size:15px;font-weight:500}.calendar>.header .month-name>span{font-weight:700}.calendar>.header button{align-items:center;background-color:transparent;border:1px solid transparent;border-radius:2px;color:var(--color-btn-secondary-fg);cursor:pointer;display:flex;justify-content:center;padding:4px 7px}.calendar>.header button:hover{background-color:var(--color-bg-secondary)}.calendar>.header button:hover>img,.calendar>.header button:hover>svg{fill:var(--color-fg-primary);color:var(--color-fg-primary)}.calendar>.header button>img,.calendar>.header button>svg{fill:var(--color-btn-secondary-fg);color:var(--color-btn-secondary-fg);pointer-events:none;transform:scale(.7)}.calendar>.daynames-row,.calendar>.days-grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px}.calendar>.daynames-row>.day,.calendar>.daynames-row>.dayname,.calendar>.days-grid>.day,.calendar>.days-grid>.dayname{align-items:center;cursor:default;display:flex;flex-direction:column;font-size:var(--day-fg-szie);font-family:var(--day-fg-family);justify-content:center}.calendar>.daynames-row>.dayname{color:var(--color-fg-muted);font-size:var(--week-fg-size);font-family:var(--week-fg-family);padding:5px 0}.calendar>.days-grid>.day{border:1px solid transparent;border-radius:2px;height:var(--day-height);max-height:var(--day-height);max-width:var(--day-width);min-height:var(--day-height);min-width:var(--day-width);padding:10px 0;width:var(--day-width)}.calendar>.days-grid>.day:hover{border:1px solid var(--color-fg-primary);color:var(--color-fg-primary)}.calendar>.days-grid>.day.today{color:var(--color-fg-accent)}.calendar>.days-grid>.day.selected{background-color:var(--color-fg-primary);color:var(--color-fg-selected)}@media (max-width:480px){.container:not(.inline){transform:scaleY(0)!important;transform-origin:bottom center!important}.container:not(.inline).show{bottom:0!important;left:0!important;position:fixed!important;right:0!important;top:auto!important;transform:scaleY(1)!important}.container{width:100%}.calendars{grid-template-columns:repeat(1,1fr)}.calendars .calendar{box-sizing:border-box;width:100%}.calendars .calendar:nth-child(n+2){display:none}.calendars .calendar>.days-grid>.day{height:auto;max-height:unset;max-width:unset;min-height:unset;min-width:unset;width:auto}.calendars .calendar>.header:not(.no-next-month) .next-button{visibility:visible}}.container.lock-plugin .calendars .calendar:first-child>.header.no-previous-month .previous-button,.container.lock-plugin .calendars .calendar:last-child>.header.no-next-month .next-button{visibility:hidden}.container.lock-plugin .calendar>.days-grid>.day.not-available{background-color:var(--color-bg-unavailable);color:var(--color-fg-locked);font-style:italic;pointer-events:none}.container.lock-plugin .calendar>.days-grid>.day.locked{background-color:transparent;border:1px solid var(--color-border-locked);color:var(--color-fg-locked);pointer-events:none}.container.lock-plugin .calendar>.days-grid>.day.locked:not(.start):not(.end){background-image:var(--color-bg-locked);font-style:var(--fg-style-locked)}.container.lock-plugin .preset-plugin-container>button:disabled{color:var(--color-fg-locked);pointer-events:none}.container.preset-plugin>main{display:flex}.container.preset-plugin>main.preset-left{flex-direction:row-reverse}.container.preset-plugin>main.preset-right{flex-direction:row}.container.preset-plugin>main.preset-left .preset-plugin-container,.container.preset-plugin>main.preset-right .preset-plugin-container{flex-direction:column;width:130px}.container.preset-plugin>main.preset-top{flex-direction:column-reverse}.container.preset-plugin>main.preset-bottom{flex-direction:column}.container.preset-plugin>main.preset-bottom .preset-plugin-container,.container.preset-plugin>main.preset-top .preset-plugin-container{flex-direction:row}.preset-plugin-container{background-color:var(--color-bg-secondary);display:flex;justify-content:space-between;padding:10px}.preset-plugin-container>button{background-color:var(--color-bg-default);border:1px solid transparent;border-radius:4px;color:var(--color-fg-default);padding:5px}.preset-plugin-container>button:hover{border:1px solid var(--color-fg-primary);color:var(--color-fg-primary);cursor:pointer}.range-plugin-tooltip{background-color:var(--color-bg-tooltip);border-radius:var(--border-radius);box-shadow:0 1px 3px rgba(0,0,0,.25);color:var(--color-fg-tooltip);font-size:12px;margin-top:-4px;padding:4px 8px;pointer-events:none;position:absolute;visibility:hidden;white-space:nowrap;z-index:1}.range-plugin-tooltip:before{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(0,0,0,.12);bottom:-5px;content:"";left:calc(50% - 5px);position:absolute}.range-plugin-tooltip:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid var(--color-bg-tooltip);bottom:-4px;content:"";left:calc(50% - 4px);position:absolute}.container.range-plugin .calendar>.days-grid>.day{position:relative}.container.range-plugin .calendar>.days-grid>.day.in-range:last-of-type{border-bottom-right-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>.day.in-range{background-color:var(--color-bg-inrange);border-radius:0}.container.range-plugin .calendar>.days-grid>.day.end,.container.range-plugin .calendar>.days-grid>.day.start{background-color:var(--color-fg-primary);color:var(--color-fg-selected)}.container.range-plugin .calendar>.days-grid>.day.start{border-bottom-right-radius:0;border-top-right-radius:0}.container.range-plugin .calendar>.days-grid>.day.start:after{border:8px solid transparent;border-left:8px solid var(--color-fg-primary);content:"";pointer-events:none;position:absolute;right:-14px;z-index:1}.container.range-plugin .calendar>.days-grid>.day.start.flipped{border-bottom-left-radius:0;border-bottom-right-radius:var(--border-radius);border-top-left-radius:0;border-top-right-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>.day.start.flipped:after{border-left-color:transparent;border-right-color:var(--color-fg-primary);left:-14px;right:auto}.container.range-plugin .calendar>.days-grid>.day.end{border-bottom-left-radius:0;border-top-left-radius:0}.container.range-plugin .calendar>.days-grid>.day.end:after{border:8px solid transparent;border-right:8px solid var(--color-fg-primary);content:"";left:-14px;pointer-events:none;position:absolute;z-index:1}.container.range-plugin .calendar>.days-grid>.day.end.flipped{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:0;border-top-left-radius:var(--border-radius);border-top-right-radius:0}.container.range-plugin .calendar>.days-grid>.day.end.flipped:after{border-left-color:var(--color-fg-primary);border-right-color:transparent;left:auto;right:-14px}.container.range-plugin .calendar>.days-grid>.day.start.end{border-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>.day.start.end:after{content:none}.container.range-plugin .calendar>.days-grid>div:not(.day)+.day.in-range{border-bottom-left-radius:var(--border-radius);border-top-left-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>div:nth-child(7n).in-range{border-bottom-right-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>div:nth-child(7n+1).in-range{border-bottom-left-radius:var(--border-radius);border-top-left-radius:var(--border-radius)}.container.preset-plugin main{display:grid}.container.preset-plugin main.preset-left>.calendars,.container.preset-plugin main.preset-top>.calendars{order:2}.container.preset-plugin main.preset-left>.preset-plugin-container,.container.preset-plugin main.preset-top>.preset-plugin-container{order:1}.container.preset-plugin main.preset-left,.container.preset-plugin main.preset-right{grid-template-columns:auto auto}.container.preset-plugin main.preset-left .preset-plugin-container,.container.preset-plugin main.preset-right .preset-plugin-container{grid-row:span 2;width:130px}.container.preset-plugin main.preset-bottom>.preset-plugin-container{order:4}.container.preset-plugin main.preset-bottom,.container.preset-plugin main.preset-top{grid-template-columns:auto}.container.preset-plugin main>.time-plugin-container{order:3}.container>main:not([class*=preset-]){flex-direction:column}.time-plugin-container{background-color:var(--color-bg-secondary);border-bottom:1px solid var(--color-border-default);display:flex;justify-content:space-around;padding:10px}.time-plugin-container input[type=time]{font-size:18px}.time-plugin-container input[type=time],.time-plugin-container select{background-color:var(--color-bg-default);border:1px solid transparent;border-radius:4px;color:var(--color-fg-default)}.time-plugin-container select{margin:0 3px}.time-plugin-container select::-webkit-scrollbar{width: 0px}.time-plugin-container select::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);border-radius: 0;background: rgba(0,0,0,0.1);}.time-plugin-container select::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);border-radius: 0;background: rgba(0,0,0,0.1);}.container.amp-plugin .calendars .calendar>.header .month-name{align-items:center;-moz-column-gap:5px;column-gap:5px;display:flex;justify-content:center}.container.amp-plugin .calendars .calendar>.header .month-name select{border:none;font-size:14px;padding:3px}.container.amp-plugin .calendars .calendar>.header .month-name select.month-name--dropdown{font-weight:700}.container.amp-plugin .calendars .calendar>.header .reset-button{order:4}.container.amp-plugin .calendars.calendars:not(.grid-1) .calendar>.header .reset-button{visibility:hidden}.container.amp-plugin .calendars.calendars:not(.grid-1) .calendar:last-child>.header .reset-button{visibility:visible}.container.amp-plugin.week-numbers .calendar>.daynames-row,.container.amp-plugin.week-numbers .calendar>.days-grid{grid-template-columns:30px repeat(7,1fr)}.container.amp-plugin.week-numbers .calendar>.daynames-row .wnum-header,.container.amp-plugin.week-numbers .calendar>.daynames-row .wnum-item,.container.amp-plugin.week-numbers .calendar>.days-grid .wnum-header,.container.amp-plugin.week-numbers .calendar>.days-grid .wnum-item{align-items:center;color:var(--color-fg-muted);display:flex;font-size:12px;justify-content:center}.container[data-theme=dark]{--color-bg-default:#22272e;--color-bg-secondary:#2d333b;--color-bg-inrange:#2c542e;--color-bg-locked:#ec775c;--color-bg-unavailable:#545d68;--color-bg-tooltip:#9e9e9e;--color-fg-default:#adbac7;--color-fg-primary:#46954a;--color-fg-secondary:#202122;--color-fg-muted:#9e9e9e;--color-fg-accent:#ec775c;--color-fg-locked:#9e9e9e;--color-btn-primary-bg:#2d333b;--color-btn-primary-fg:#46954a;--color-btn-primary-border:#46954a;--color-btn-primary-hover-bg:#46954a;--color-btn-primary-hover-fg:#fff;--color-btn-primary-hover-border:#46954a;--color-btn-secondary-bg:#2d333b;--color-btn-secondary-fg:#adbac7;--color-btn-secondary-border:#adbac7;--color-btn-secondary-hover-bg:#adbac7;--color-btn-secondary-hover-fg:#202122;--color-btn-secondary-hover-border:#adbac7;--color-border-default:#373e47;--color-border-locked:#2d333b} .container.preset-plugin main{display:grid}.container.preset-plugin main.preset-left>.calendars,.container.preset-plugin main.preset-top>.calendars{order:2}.container.preset-plugin main.preset-left>.preset-plugin-container,.container.preset-plugin main.preset-top>.preset-plugin-container{order:1}.container.preset-plugin main.preset-left,.container.preset-plugin main.preset-right{grid-template-columns:auto auto}.container.preset-plugin main.preset-left .preset-plugin-container,.container.preset-plugin main.preset-right .preset-plugin-container{grid-row:span 2;width:130px}.container.preset-plugin main.preset-bottom>.preset-plugin-container{order:4}.container.preset-plugin main.preset-bottom,.container.preset-plugin main.preset-top{grid-template-columns:auto}.container.preset-plugin main>.time-plugin-container{order:3}.container>main:not([class*=preset-]){flex-direction:column}.time-plugin-container{background-color:var(--color-bg-secondary);border-bottom:1px solid var(--color-border-default);display:flex;justify-content:space-around;padding:10px}.time-plugin-container input[type=time]{font-size:18px}.time-plugin-container input[type=time],.time-plugin-container select{background-color:var(--color-bg-default);border:1px solid transparent;border-radius:4px;color:var(--color-fg-default)}.time-plugin-container select{margin:0 3px}.calendar>.days-grid>.weekend{font-size:var(--weekend-fg-size);font-family:var(--weekend-fg-family);color:var(--weekend-fg-color);background:var(---weekend-bg)}'),zr="--color-bg-default:#fff;--color-bg-secondary:#f9f9f9;--color-fg-default:#333;--color-fg-primary:#6b82ff;--color-fg-secondary:#748194;--color-fg-selected:#fff;--color-fg-muted:#9e9e9e;--color-fg-accent:#e63757;--color-btn-primary-bg:#fff;--color-btn-primary-fg:#6b82ff;--color-btn-primary-border:#6b82ff;--color-btn-primary-hover-bg:#6b82ff;--color-btn-primary-hover-fg:#fff;--color-btn-primary-hover-border:#6b82ff;--color-btn-primary-disabled-bg:#a2b0ff;--color-btn-primary-disabled-fg:#fff;--color-btn-primary-disabled-border:#a2b0ff;--color-btn-secondary-bg:#fff;--color-btn-secondary-fg:#748194;--color-btn-secondary-border:#748194;--color-btn-secondary-hover-bg:#748194;--color-btn-secondary-hover-fg:#fff;--color-btn-secondary-hover-border:#748194;--color-btn-secondary-disabled-bg:#b5bbc4;--color-btn-secondary-disabled-fg:#fff;--color-btn-secondary-disabled-border:#b5bbc4;--color-border-default:#6b82ff;--color-border-locked:#6b82ff;--day-width:42px;--day-height:37px;--border-radius:2px;--box-border-radius:4px;--primary-color:#6b82ff;--secondary-color:#748194;--white-color:#fff;--black-color:#333;--lightgray-color:#f9f9f9;--gray-color:#9e9e9e;--red-color:#e63757;--color-bg-inrange:#d5dbff;--color-bg-tooltip:#fff;--color-fg-tooltip:#333;--day-fg-szie:13px;--day-fg-family:none;--week-fg-size:12px;--week-fg-family:none;--button-align:flex-end;--button-gap:5px;--color-fg-locked:#9e9e9e;--color-bg-locked:repeating-linear-gradient(135deg,transparent,#ffab91 2px,transparent 2px,transparent 4px);--color-bg-unavailable:#f9f9f9;--fg-style-locked:italic;--weekend-fg-family:var(--day-fg-family);--weekend-fg-color:var(--color-fg-default);---weekend-bg:inherit;--weekend-fg-size:var(--day-fg-szie);",Gr={bgDefault:"--color-bg-default",bgSecondary:"--color-bg-secondary",fgDefault:"--color-fg-default",fgPrimary:"--color-fg-primary",fgSecondary:"--color-fg-secondary",fgSelected:"--color-fg-selected",fgMuted:"--color-fg-muted",fgAccent:"--color-fg-accent",btnPrimaryBg:"--color-btn-primary-bg",btnPrimaryFg:"--color-btn-primary-fg",btnPrimaryBorderColor:"--color-btn-primary-border",btnPrimaryHoverBg:"--color-btn-primary-hover-bg",btnPrimaryHoverFg:"--color-btn-primary-hover-fg",btnPrimaryHoverBorder:"--color-btn-primary-hover-border",btnPrimaryDisabledBg:"--color-btn-primary-disabled-bg",btnPrimaryDisabledFg:"--color-btn-primary-disabled-fg",btnPrimaryDisabledBorder:"--color-btn-primary-disabled-border",btnSecondaryBg:"--color-btn-secondary-bg",btnSecondaryFg:"--color-btn-secondary-fg",btnSecondaryBorder:"--color-btn-secondary-border",btnSecondaryHoverBg:"--color-btn-secondary-hover-bg",btnSecondaryHoverFg:"--color-btn-secondary-hover-fg",btnSecondaryHoverBorder:"--color-btn-secondary-hover-border",btnSecondaryDisabledBg:"--color-btn-secondary-disabled-bg",btnSecondaryDisabledFg:"--color-btn-secondary-disabled-fg",btnSecondaryDisabledBorder:"--color-btn-secondary-disabled-border",colorBorderDefault:"--color-border-default",colorBorderLocked:"--color-border-locked",dayWidth:"--day-width",dayHeight:"--day-height",borderRadius:"--border-radius",boxBorderRadius:"--box-border-radius",primaryColor:"--primary-color",secondaryColor:"--secondary-color",whiteColor:"--white-color",blackColor:"--black-color",lightgrayColor:"--lightgray-color",grayColor:"--gray-color",redColor:"--red-color",bgInrange:"--color-bg-inrange",bgTooltip:"--color-bg-tooltip",fgTooltip:"--color-fg-tooltip",dayFgSzie:"--day-fg-szie",dayFgFamily:"--day-fg-family",weekFgSize:"--week-fg-size",weekFgFamily:"--week-fg-family",fgLocked:"--color-fg-locked",bgLocked:"--color-bg-locked",bgUnavailable:"--color-bg-unavailable",fgStyleLocked:"--fg-style-locked",weekendFgFamily:"--weekend-fg-family",weekendFgColor:"--weekend-fg-color",weekendBg:"---weekend-bg",weekendFgSize:"--weekend-fg-size",buttonAlign:"--button-align",buttonGap:"--button-gap"},Ur=function(){d(n,Wr);var i=g(n);function n(e,t,o,a){return c(this,n),(e=i.call(this,e,t,o,a)).graph=t,e.vectorInfo=o,e.dropDownClazz=easepick.create,e.defaultHostCss=zr,e}return s(n,[{key:"init",value:function(){var e=this.graph,t=this.vectorInfo,o=t.dropDownStyle,a=t.langue,i=t.autoApply,n=t.format,r=t.applyText,l=t.cancelText,s=t.dateType,u=t.selectableFunc,h=t.dropDownSyncZoom,t=t.seconds,c=(this.timePickerDOM||((c=this.timePickerDOM=document.createElement("div")).style.position="absolute",c.style.background="red",c.style.opacity="0",c.style.pointerEvents="none",this.setPosition(c),e.getView().appendChild(c)),this.replaceStr(o),this.dropDown||(this.dropDown=new this.dropDownClazz({element:this.timePickerDOM,css:":host{"+this.defaultHostCss+"}"+jr,setup:function(e){e.on("change",function(e){e=e.detail;e.view,e.date,e.target})},zIndex:10,firstDay:0,lang:a,autoApply:i,plugins:this.getPlugins(s),format:n,locale:{cancel:l,apply:r},TimePlugin:{seconds:t},LockPlugin:{filter:function(e,t){if(u)return u(e)}}})),this.dropDown);function d(e){e.stopPropagation()}c.ui.container.addEventListener("mousedown",d),c.ui.container.addEventListener("mouseup",d),c.ui.container.addEventListener("mousewheel",d),c.ui.container.addEventListener("mousemove",d),c.ui.container.addEventListener("touchstart",d),c.ui.container.addEventListener("touchend",d),h&&e instanceof ht.graph.GraphView?c.ui.container.style.transform="scale("+e.getZoom()+")":c.ui.container.style.transform=null}},{key:"onInit",value:function(t,o){var a=this,i=a.data,n=a.graph,r=(a.setPosition(a.timePickerDOM),ht.Default.callLater(function(){a.value&&(o._setDefaultValue=!0,o.setDate(a.value),o.setTime)&&o.setTime(br(new Date(a.value),"HH:mm:ss")),o.show()},a,null,10),o.onValueChange=function(e){o._setDefaultValue?delete o._setDefaultValue:(a.value=e&&br(e,t.format||""),t.onChange&&t.onChange(this.oldDate,e,i,n))},o.onHidden=function(){o.destroy(),a.timePickerDOM&&a.timePickerDOM.remove(),delete t.dropDown,hr(a)},{lang:"lang",format:"format",autoApply:"autoApply",apply:"applyText",cancel:"cancelText"});o.onPreShow=function(){for(var e in r)o.options[e]!==t[r[e]]&&(o.options[e]=t[r[e]],o.renderAll())},o.onShown=function(){ur(a)}}},{key:"setPosition",value:function(e){var t=this.data.getRect(),o=this.vectorInfo.comp.rect,a=o[0],i=o[1],n=o[2],o=o[3],r=this.graph.getScreenPoint(t.x+a,t.y+i),a=this.graph.getScreenPoint(t.x+a+n,t.y+i+o),n=sr(this.graph.getView());e.style.left=r.x-n.x+"px",e.style.top=r.y-n.y+"px",e.style.width=a.x-r.x+"px",e.style.height=a.y-r.y+"px"}},{key:"open",value:function(){this.dropDown||(this.init(),this.vectorInfo.editing=!0),this.onInit(this.vectorInfo,this.dropDown),this.data.iv(),ur(this)}},{key:"close",value:function(){this.dropDown.hide(),hr(this)}},{key:"replaceStr",value:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this.defaultHostCss.split(";"),o=0;o<t.length;o++){var a,i=t[o];for(a in e)-1<Oe(i).call(i,Gr[a])&&(t[o]=i.substring(0,Oe(i).call(i,":")+1)+e[a])}return this.defaultHostCss=t.join(";"),this.defaultHostCss}},{key:"getPlugins",value:function(e){return"datetime"===e?["LockPlugin","TimePlugin"]:["LockPlugin"]}}]),n}(),Yr=function(){d(r,Wr);var n=g(r);function r(e,t,a,o){var i;return c(this,r),(i=n.call(this,e,t,a,o)).vectorInfo=a,e.getDropDownConfig=function(){var e=a.dropDownProperty||{},t=a.dateType,o=a.selectableFunc;return t&&(e["dateRangePane.type"]=t,e["dateRangePane.selectableFunc"]=o),e},e.getCurrentDropDownConfig=function(){var e=a.dropDownProperty||{},t=a.dateType,o=a.selectableFunc;return t&&(e["dateRangePane.type"]=t),o&&(e["dateRangePane.selectableFunc"]=o),e},e.getDateType=function(){return a.dateType},e.getDateValue=function(){var e=a.formatSeparator;return i.value&&(e=i.value.split(" "+e+" "),[new Date(e[0]),new Date(e[1])])},i.dropDownClazz=ht.ui.DateRangeDropDown,i}return s(r,[{key:"onInit",value:function(e,t){this.data,this.graph;var o=this.vectorInfo,a=o.dateType,i=o.selectableFunc,n=o.dropDownProperty,r=o.dropDownBackground,l=o.dropDownBorderWidth||0,s=o.dropDownBorderColor||null,u=o.dropDownBorderType||null,h=o.dropDownBorderRadius||0,c=o.okButtonTextFont,d=o.okButtonTextColor,g=o.okButtonBackground,f=o.cancelButtonTextFont,p=o.cancelButtonTextColor,v=o.cancelButtonBackground,y=o.timeButtonTextFont,x=o.timeButtonTextColor,m=o.dateRangePaneLabelFont,b=o.dateRangePaneLabelColor,w=o.shortcutListLabelFont,o=o.shortcutListLabelColor;if(n)for(var k in n)e.setPropertyValue(k,n[k],!0);e.setPropertyValue("dateRangePane.type",a,!0),e.setPropertyValue("dateRangePane.selectableFunc",i,!0),t.setBackground(r||null),t.setBorder(new ht.ui.border.CSSBorder([l,l,l,l],s,u)),t.setBorderRadius(h),c&&e.setPropertyValue("okButton.textFont",c,!0),d&&e.setPropertyValue("okButton.textColor",d,!0),g&&e.setPropertyValue("okButton.background",g,!0),f&&e.setPropertyValue("cancelButton.textFont",f,!0),p&&e.setPropertyValue("cancelButton.textColor",p,!0),v&&e.setPropertyValue("cancelButton.background",v,!0),y&&e.setPropertyValue("timeButton.textFont",y,!0),x&&e.setPropertyValue("timeButton.textColor",x,!0),m&&e.setPropertyValue("dateRangePane.labelFont",m,!0),b&&e.setPropertyValue("dateRangePane.gridColor",b,!0),w&&e.setPropertyValue("shortcutList.labelFont",w,!0),o&&e.setPropertyValue("shortcutList.labelColor",o,!0)}},{key:"handleDropDownChange",value:function(e){this.data;var t=this.vectorInfo,o=this,a=o._dropDown,i=o._dropDownView;a&&(a.beforeClose(),"stop"===e.kind&&(e=a.getDropDownValue(),t=t.formatSeparator,e)&&(e instanceof Array&&(e=e[0]&&e[1]?ht.Default.formatDate(e[0],this.data.getFormat())+" "+t+" "+ht.Default.formatDate(e[1],this.data.getFormat()):null),(e=!a._dateRangePane1.getDateRange()[1]&&a._dateRangePane1.getDateRange()[0]?ht.Default.formatDate(a._dateRangePane1.getDateRange()[0],this.data.getFormat())+" "+t+" "+ht.Default.formatDate(a._dateRangePane1.getDateRange()[0],this.data.getFormat()):e)instanceof String&&(e=e.replace(" ~ "," "+t+" ")),this.value=e),o._clearDropDown(),ht.Default.removeHTML(i.getView()),a.removeValueChangeListener(o.handleDropDownValueChange,o),this.unregisterCloseEvent(this._documentClickHandler),a.afterClose())}},{key:"formatRangeDate",value:function(e){var t;return e?(t=this.vectorInfo,e.replace(" "+t.formatSeparator+" "," ~ ")):null}}]),r}(),Xr=function(){d(n,Wr);var i=g(n);function n(e,t,o,a){return c(this,n),(e=i.call(this,e,t,o,a)).graph=t,e.vectorInfo=o,e.dropDownClazz=easepick.create,e.defaultHostCss=zr,e}return s(n,[{key:"init",value:function(){var e=this.graph,t=this.vectorInfo,o=t.dropDownStyle,a=t.langue,i=t.autoApply,n=t.format,r=t.applyText,l=t.cancelText,s=t.dateType,u=t.selectableFunc,h=t.delimiter,c=t.dropDownSyncZoom,t=t.seconds,d=(this.timePickerDOM||((d=this.timePickerDOM=document.createElement("div")).style.position="absolute",d.style.background="red",d.style.opacity="0",d.style.pointerEvents="none",this.setPosition(d),e.getView().appendChild(this.timePickerDOM)),this.replaceStr(o),this.dropDown||(this.dropDown=new this.dropDownClazz({element:this.timePickerDOM,css:":host{"+this.defaultHostCss+"}"+jr,setup:function(e){e.on("change",function(e){e=e.detail;e.view,e.date,e.target})},zIndex:10,firstDay:0,lang:a,autoApply:i,plugins:this.getPlugins(s),format:n,locale:{cancel:l,apply:r},calendars:2,grid:2,TimePlugin:{seconds:t},LockPlugin:{filter:function(e,t){if(u)return u(e)}},RangePlugin:{delimiter:h}})),this.dropDown);function g(e){e.stopPropagation()}d.ui.container.addEventListener("mousedown",g),d.ui.container.addEventListener("mouseup",g),d.ui.container.addEventListener("mousewheel",g),d.ui.container.addEventListener("mousemove",g),d.ui.container.addEventListener("touchstart",g),d.ui.container.addEventListener("touchend",g),c&&e instanceof ht.graph.GraphView?d.ui.container.style.transform="scale("+e.getZoom()+")":d.ui.container.style.transform=null}},{key:"onInit",value:function(t,o){var a=this,i=a.data,n=a.graph,r=(a.setPosition(a.timePickerDOM),ht.Default.callLater(function(){var e;a.value&&(e=a.value.split(t.delimiter),o._setDefaultValue=!0,o.setDateRange(new Date(e[0]),new Date(e[1])),o.setStartTime)&&(o.setStartTime(br(new Date(e[0]),"HH:mm:ss")),o.setEndTime(br(new Date(e[1]),"HH:mm:ss"))),o.show()},a,null,10),o.onValueChange=function(e){o._setDefaultValue?delete o._setDefaultValue:(a.value=e?br(new Date(e[0]),t.format||"")+" "+t.delimiter+" "+br(new Date(e[1]),t.format||""):null,t.onChange&&t.onChange(this.oldDate,e,i,n))},o.onHidden=function(){o.destroy(),a.timePickerDOM&&a.timePickerDOM.remove(),delete t.dropDown,hr(a)},{lang:"lang",format:"format",autoApply:"autoApply",apply:"applyText",cancel:"cancelText"});o.onPreShow=function(){for(var e in r)o.options[e]!==t[r[e]]&&(o.options[e]=t[r[e]],o.renderAll())},o.onShown=function(){ur(a)}}},{key:"setPosition",value:function(e){var t=this.data.getRect(),o=this.vectorInfo.comp.rect,a=o[0],i=o[1],n=o[2],o=o[3],r=this.graph.getScreenPoint(t.x+a,t.y+i),a=this.graph.getScreenPoint(t.x+a+n,t.y+i+o),n=sr(this.graph.getView());e.style.left=r.x-n.x+"px",e.style.top=r.y-n.y+"px",e.style.width=a.x-r.x+"px",e.style.height=a.y-r.y+"px"}},{key:"open",value:function(){this.dropDown||(this.init(),this.vectorInfo.editing=!0),this.onInit(this.vectorInfo,this.dropDown),this.data.iv(),ur(this)}},{key:"close",value:function(){this.dropDown.hide(),hr(this)}},{key:"replaceStr",value:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this.defaultHostCss.split(";"),o=0;o<t.length;o++){var a,i=t[o];for(a in e)-1<Oe(i).call(i,Gr[a])&&(t[o]=i.substring(0,Oe(i).call(i,":")+1)+e[a])}return this.defaultHostCss=t.join(";"),this.defaultHostCss}},{key:"getPlugins",value:function(e){return"datetime"===e?["LockPlugin","RangePlugin","TimePlugin"]:["LockPlugin","RangePlugin"]}}]),n}(),Zr="0.2.8-dev31",La=(n=".ht-vector-tooltip{\r\n box-sizing: border-box;\r\n padding: 5px 12px;\r\n margin: 0;\r\n position: absolute;\r\n background-color: rgba(0, 0, 0, 0.5);\r\n color: rgb(247, 247, 247);\r\n border-radius: 5px;\r\n /* -webkit-transition: all 0.5s;\r\n transition: all 0.5s; */\r\n}\r\n.ht-vector-search-input{\r\n display: block; \r\n position: absolute; \r\n z-index: 10000; \r\n box-sizing: border-box; \r\n outline: none; \r\n padding: 0; \r\n border-width: 1px; \r\n border-radius: 2px;\r\n}\r\n",o=(o=void 0===(o={})?{}:o).insertAt,n&&"undefined"!=typeof document&&(t=document.head||document.getElementsByTagName("head")[0],(me=document.createElement("style")).type="text/css","top"===o&&t.firstChild?t.insertBefore(me,t.firstChild):t.appendChild(me),me.styleSheet?me.styleSheet.cssText=n:me.appendChild(document.createTextNode(n))),ht.Default),qr=La.drawText,Kr=La.drawStretchImage,Jr=La.getImage,$r=[2,8];var Da=ht.Default,Qr=Da.drawText,el=Da.drawStretchImage,tl=Da.getImage;Da.darker;var ol=ht.Default.drawText;var o=ht.Default,al=o.drawText,il=o.drawStretchImage,nl=o.getImage,rl="#ffffff",ll="#cccccc",sl=new Yi;var t=ht.Default,ul=t.drawText,hl=t.drawStretchImage,cl=t.getImage;var n=ht.Default,dl=n.drawText,gl=n.drawStretchImage,fl=n.getImage;function pl(e,t){return e<=1?t*e:e}function vl(e,t){return t?(e-kl)/yl*xl+ml:bl-(e-kl)/yl*xl}var yl,xl,ml,bl,wl,kl;var Cl=k.every,La=Ie("every");v({target:"Array",proto:!0,forced:!La},{every:function(e){return Cl(this,e,1<arguments.length?arguments[1]:void 0)}});function Tl(e,t){return e<1?t*e:e}var Vl=e("Array").every,Dl=Array.prototype,Il=function(e){var t=e.every;return e===Dl||ve(Dl,e)&&t===Dl.every?Vl:t},Sl=ht.Default.drawText;var Ll=Math.max,Bl=Math.min,Rl=ht.Default.containsPoint;function Pl(e,t,o,a,i,n){var r,l,s,u,i=4<arguments.length&&void 0!==i?i:{},n=5<arguments.length?n:void 0,h=t.x,c=t.y,d=t.width,t=t.height,g=o.width,o=o.height,f=a.x,a=a.y,p=null,v=null,y=i.color,y=void 0===y?"red":y,x=i.barWidth,x=void 0===x?8:x,m=i.gap,m=void 0===m?2:m,b=i.visible,w=i.XscrollBarMinWidth,w=void 0===w?4:w,k=i.YscrollBarMinHeight,k=void 0===k?4:k,C=i.YscrollBarVisible,C=void 0===C||C,i=i.XscrollBarVisible,i=void 0===i||i;e.save(),t<o&&(v=[h+d-x-m,c+a/(r=t-o)*(t-(a=t*(l=Ll(k/t,l=t/o)))),x,a],b)&&C&&(e.beginPath(),xe.apply(void 0,Ee(k=[e]).call(k,Ze(v),[Math.min(x,a)/2])),e.fillStyle=y,Ue(e).call(e)),d<g-2&&(p=[h+f/(s=d-g)*(d-(o=d*(u=Ll(w/d,u=d/g)))),c+t-x-m,o,x],b)&&i&&(e.beginPath(),xe.apply(void 0,Ee(C=[e]).call(C,Ze(p),[Math.min(x,o)/2])),e.fillStyle=y,Ue(e).call(e)),n.scrollInfo={scrollBarX:p,scrollBarY:v,scaleX:u,scaleY:l,minX:s,minY:r},e.restore()}function Al(e,t,o,a,i,n,r,l){var s,u,h,c,d,g,f,p=X(e,"translateY",t),v=X(e,"translateX",t),l=Wn(o,t,e,l),o=Ye(o,t,e),e=o.scrollBarInteractiveSize||ht.Default.scrollBarInteractiveSize,y=o.scrollInfo;if(y)return s=y.minX,u=y.minY,d=y.scrollBarX,g=y.scrollBarY,h=y.scaleX,y=y.scaleY,l={x:a.x+l.rect.x,y:a.y+l.rect.y},d&&(f=(d=Hn(d)).height,d.y-=(e-f)/2,d.height=e),g&&(f=(g=Hn(g)).width,g.x-=(e-f)/2,g.width=e),d&&v&&Rl(d,l)?c={downPoint:a,startX:t.a(v)||0,scaleX:h,minX:s,axis:Ji}:g&&p&&Rl(g,l)?c={downPoint:a,startY:t.a(p)||0,scaleY:y,minY:u,axis:he}:(f=o.headHeight,!r&&o.pannable&&Rl({x:0,y:f,width:i,height:n-f},a)&&(d||g)&&(c={downPoint:a,scaleX:h,minX:s,scaleY:y,minY:u,isPan:!0},d&&v&&(c.startX=t.a(v)||0,c.scaleX=h,c.minX=s),g)&&p&&(c.startY=t.a(p)||0,c.scaleY=y,c.minY=u)),c}function _l(e,t,o,a,i,n){var r=Ye(o,t,this),t=Al(this,t,o,a,i,n,!1,e);r._scrollDragInfo=t,r.scrollBarVisible=!!t}function Ml(e,u,t,h,c,o){var d=Ye(t,u,this),g=d._scrollDragInfo,f=X(this,"translateY",u),p=X(this,"translateX",u);d._dragTimer||(d._dragTimer=Wa(function(){var e,t,o,a,i,n,r,l,s;g&&(r=g.axis,e=g.minX,t=g.minY,o=g.downPoint,a=g.startX,i=g.startY,l=g.scaleX,s=g.scaleY,n=g.isPan,r===Ji?(l=a+(o.x-h.x)/(c-c*l)*-e,l=Bl(0,l),l=Ll(e,l),p&&u.a(p,l)):r===he?(l=d.scrollInfo.scrollBarY[3]/s,r=i+(o.y-h.y)/(l-l*s)*-t,r=Bl(0,r),r=Ll(t,r),f&&u.a(f,r)):n&&(void 0!==a&&(l=a+(h.x-o.x),l=Bl(0,l),l=Ll(e,l),p)&&u.a(p,l),void 0!==i)&&(s=i+(h.y-o.y),s=Bl(0,s),s=Ll(t,s),f)&&u.a(f,s)),delete d._dragTimer},1))}function Ol(e,t,o,a,i,n){var r,l,s,o=Ye(o,t,this);o._scrollDragInfo&&(r=(l=o.scrollInfo).scrollBarX,l=l.scrollBarY,s=o.autoHideScrollBar,(r||l)&&s&&(o.scrollBarVisible=!0,Hl(t,o)),delete o._scrollDragInfo)}function El(e,t,o,a,i,n){var r,l,s,u,h,c=Ye(o,t,this),d=c.scrollInfo,g=c.scrollSpeed||1,f=c.onScrollToBottom,p=X(this,"translateY",t),v=X(this,"translateX",t);d&&(r=d.scrollBarX,l=d.scrollBarY,s=d.minX,h=d.minY,d.scaleX,d.scaleY,d=(e.wheelDeltaX||-e.deltaX||0)/40*5*g,e=(e.wheelDeltaY||-e.deltaY||0)/40*5*g,g=!1,l&&p&&e&&(u=(t.a(p)||0)+e,u=Bl(0,u),u=Ll(h,u),t.a(p,u),g=!0,f)&&u<=h&&f(t,o),r&&v&&d&&(p=(t.a(v)||0)+d,p=Bl(0,p),p=Ll(s,p),t.a(v,p),g=!0),!g&&r&&!l&&v&&e&&(u=(t.a(v)||0)+e,u=Bl(0,u),u=Ll(s,u),t.a(v,u)),h=c.autoHideScrollBar,r||l)&&h&&(c.scrollBarVisible=!0,Hl(t,c))}function Hl(e,t){e._hideBarTimer&&(clearTimeout(e._hideBarTimer),e._hideBarTimer=null),e._hideBarTimer=Wa(function(){t._scrollDragInfo||(t.scrollBarVisible=!1,e.iv())},1e3)}var Da=ht.Default,Wl=Da.drawText,Fl=Da.drawStretchImage,Nl=Da.getImage,jl=Da.drawBorder,zl=Da.intersectsRect,Gl=/\n/g;var Ul=ht.Default.drawText;var Yl=ht.Default.drawImage;var Xl=ht.Default.drawImage;var o=ht.Default,Zl=o.drawText,ql=o.createGradient;function Kl(e,t){this.stopped=e,this.result=t}function Jl(e,t){var o,a=ve(zs,this);return zo?o=zo(Ns(),a?bo(this):zs):(o=a?this:mo(zs),Tt(o,Fs,"Error")),void 0!==t&&Tt(o,"message",Ws(t)),Es(o,Jl,o.stack,1),2<arguments.length&&Os(o,arguments[2]),Hs(e,js,{that:a=[]}),Tt(o,"errors",a),o}function $l(e){return function(){au(e)}}function Ql(e){au(e.data)}function es(e){p.postMessage(Qs(e),is.protocol+"//"+is.host)}function ts(){this.head=null,this.tail=null}function os(e){var o,a;this.promise=new e(function(e,t){if(void 0!==o||void 0!==a)throw vu("Bad Promise constructor");o=e,a=t}),this.resolve=Ce(o),this.reject=Ce(a)}function as(e,t){var o,a,i,n,r=t.value,l=t.state==Hu,s=l?e.ok:e.fail,u=e.resolve,h=e.reject,c=e.domain;try{s?(l||(t.rejection===Nu&&(n=t,Te(Cu,p,function(){var e=n.facade;Li?Pu.emit("rejectionHandled",e):Gu(Eu,e,n.value)})),t.rejection=Fu),!0===s?o=r:(c&&c.enter(),o=s(r),c&&(c.exit(),i=!0)),o===e.promise?h(Bu("Promise-chain cycle")):(a=ju(o))?Te(a,o,u,h):u(o)):h(r)}catch(e){c&&!i&&c.exit(),h(e)}}var is,ns,rs,ls,ss,us,hs,cs,ds,gs,fs=ro.concat("length","prototype"),t=Object.getOwnPropertyNames||function(e){return no(e,fs)},n=Object.getOwnPropertySymbols,ps={f:t},vs={f:n},ys=a([].concat),xs=pe("Reflect","ownKeys")||function(e){var t=ps.f(gt(e)),o=vs.f;return o?ys(t,o(e)):t},ms=Error,bs=a("".replace),k=String(ms("zxcasd").stack),ws=/\n\s*at [^:]*:[^\n]*/,ks=ws.test(k),La=!b(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",kt(1,7)),7!==e.stack)}),Cs=function(e,t){if(ks&&"string"==typeof e&&!ms.prepareStackTrace)for(;t--;)e=bs(e,ws,"");return e},Ts=La,Vs=Error.captureStackTrace,Ds=se("iterator"),Is=Array.prototype,Ss=se("iterator"),Ls=function(e){if(!L(e))return rt(e,Ss)||rt(e,"@@iterator")||Oo[Ro(e)]},Bs=TypeError,Rs=function(e){return void 0!==e&&(Oo.Array===e||Is[Ds]===e)},Ps=function(e,t){t=arguments.length<2?Ls(e):t;if(Ce(t))return gt(Te(t,e));throw Bs(we(e)+" is not iterable")},As=function(e,t,o){var a,i;gt(e);try{if(!(a=rt(e,"return"))){if("throw"===t)throw o;return o}a=Te(a,e)}catch(e){i=!0,a=e}if("throw"===t)throw o;if(i)throw a;return gt(a),o},_s=TypeError,Ms=Kl.prototype,Da=function(e,t,o){for(var a=xs(t),i=wt.f,n=zt.f,r=0;r<a.length;r++){var l=a[r];et(e,l)||o&&et(o,l)||i(e,l,n(t,l))}},Os=function(e,t){ee(t)&&"cause"in t&&Tt(e,"cause",t.cause)},Es=function(e,t,o,a){Ts&&(Vs?Vs(e,t):Tt(e,"stack",Cs(o,a)))},Hs=function(e,t,o){function a(e){return n&&As(n,"normal",e),new Kl(!0,e)}function i(e){return d?(gt(e),p?v(e[0],e[1],a):v(e[0],e[1])):p?v(e,a):v(e)}var n,r,l,s,u,h,c=o&&o.that,d=!(!o||!o.AS_ENTRIES),g=!(!o||!o.IS_RECORD),f=!(!o||!o.IS_ITERATOR),p=!(!o||!o.INTERRUPTED),v=Ut(t,c);if(g)n=e.iterator;else if(f)n=e;else{if(!(o=Ls(e)))throw _s(we(e)+" is not iterable");if(Rs(o)){for(r=0,l=oo(e);r<l;r++)if((s=i(e[r]))&&ve(Ms,s))return s;return new Kl(!1)}n=Ps(e,o)}for(u=(g?e:n).next;!(h=Te(u,n)).done;){try{s=i(h.value)}catch(e){As(n,"throw",e)}if("object"==typeof s&&s&&ve(Ms,s))return s}return new Kl(!1)},Ws=function(e,t){return void 0===e?arguments.length<2?"":t:ka(e)},Fs=se("toStringTag"),Ns=Error,js=[].push,zs=(zo?zo(Jl,Ns):Da(Jl,Ns,{name:!0}),Jl.prototype=mo(Ns.prototype,{constructor:kt(1,Jl),message:kt(1,""),name:kt(1,"AggregateError")})),Gs=(v({global:!0,constructor:!0,arity:2},{AggregateError:Jl}),function(e,t,o){return wt.f(e,t,o)}),Us=se("species"),Ys=TypeError,Xs=TypeError,Zs=function(e){if(ca(e))return e;throw Xs(we(e)+" is not a constructor")},qs=se("species"),o=/(?:ipad|iphone|ipod).*applewebkit/i.test(ce),t=p.setImmediate,n=p.clearImmediate,Ks=p.process,Js=p.Dispatch,$s=p.Function,k=p.MessageChannel,Qs=p.String,eu=0,tu={},ou="onreadystatechange",au=(b(function(){is=p.location}),function(e){var t;et(tu,e)&&(t=tu[e],delete tu[e],t())}),k=(t&&n||(t=function(e){Oa(arguments.length,1);var t=K(e)?e:$s(e),o=Ma(arguments,1);return tu[++eu]=function(){jt(t,void 0,o)},ns(eu),eu},n=function(e){delete tu[e]},Li?ns=function(e){Ks.nextTick($l(e))}:Js&&Js.now?ns=function(e){Js.now($l(e))}:k&&!o?(Da=(La=new k).port2,La.port1.onmessage=Ql,ns=Ut(Da.postMessage,Da)):p.addEventListener&&K(p.postMessage)&&!p.importScripts&&is&&"file:"!==is.protocol&&!b(es)?(ns=es,p.addEventListener("message",Ql,!1)):ns=ou in ie("script")?function(e){uo.appendChild(ie("script"))[ou]=function(){uo.removeChild(this),au(e)}}:function(e){setTimeout($l(e),0)}),{set:t,clear:n}),La=(ts.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},ts),Da=/ipad|iphone|ipod/i.test(ce)&&"undefined"!=typeof Pebble,t=/web0s(?!.*chrome)/i.test(ce),n=k,iu=La,k=Da,La=t,Da=zt.f,nu=n.set,t=p.MutationObserver||p.WebKitMutationObserver,ru=p.document,lu=p.process,su=p.Promise,Da=Da(p,"queueMicrotask"),Da=Da&&Da.value,La=(Da||(us=new iu,hs=function(){var e,t;for(Li&&(e=lu.domain)&&e.exit();t=us.get();)try{t()}catch(e){throw us.head&&cs(),e}e&&e.enter()},cs=o||Li||La||!t||!ru?!k&&su&&su.resolve?((o=su.resolve(void 0)).constructor=su,ss=Ut(o.then,o),function(){ss(hs)}):Li?function(){lu.nextTick(hs)}:(nu=Ut(nu,p),function(){nu(hs)}):(rs=!0,ls=ru.createTextNode(""),new t(hs).observe(ls,{characterData:!0}),function(){ls.data=rs=!rs}),Da=function(e){us.head||cs(),us.add(e)}),Da),k=p.Promise,uu="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,su=!uu&&!Li&&"object"==typeof window&&"object"==typeof document,hu=k,cu=su,du=hu&&hu.prototype,gu=se("species"),fu=!1,pu=K(p.PromiseRejectionEvent),o=Gt("Promise",function(){var e=oa(hu),t=e!==String(hu);if(!t&&66===ge)return!0;if(!du.catch||!du.finally)return!0;if(!ge||ge<51||!/native code/.test(e)){var e=new hu(function(e){e(1)}),o=function(e){e(function(){},function(){})};if((e.constructor={})[gu]=o,!(fu=e.then(function(){})instanceof o))return!0}return!t&&(cu||uu)&&!pu}),vu=TypeError,ru=function(e){e=pe(e);ae&&e&&!e[Us]&&Gs(e,Us,{configurable:!0,get:function(){return this}})},yu=function(e,t){if(ve(t,e))return e;throw Ys("Incorrect invocation")},xu=function(e,t){var e=gt(e).constructor;return void 0===e||L(e=gt(e)[qs])?t:Zs(e)},mu=La,bu=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},wu=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},t={CONSTRUCTOR:o,REJECTION_EVENT:pu,SUBCLASSING:fu},ku={f:function(e){return new os(e)}},Cu=n.set,Tu="Promise",Da=t.CONSTRUCTOR,Vu=t.REJECTION_EVENT,Du=de.getterFor(Tu),Iu=de.set,k=hu&&hu.prototype,Su=hu,Lu=k,Bu=p.TypeError,Ru=p.document,Pu=p.process,Au=ku.f,_u=Au,Mu=!!(Ru&&Ru.createEvent&&p.dispatchEvent),Ou="unhandledrejection",Eu="rejectionhandled",Hu=1,Wu=2,Fu=1,Nu=2,ju=function(e){var t;return!(!ee(e)||!K(t=e.then))&&t},zu=function(o,i){o.notified||(o.notified=!0,mu(function(){for(var e,a,t=o.reactions;e=t.get();)as(e,o);o.notified=!1,i&&!o.rejection&&(a=o,Te(Cu,p,function(){var e=a.facade,t=a.value,o=Uu(a);if(o&&(o=wu(function(){Li?Pu.emit("unhandledRejection",t,e):Gu(Ou,e,t)}),a.rejection=Li||Uu(a)?Nu:Fu,o.error))throw o.value}))}))},Gu=function(e,t,o){var a;Mu?((a=Ru.createEvent("Event")).promise=t,a.reason=o,a.initEvent(e,!1,!0),p.dispatchEvent(a)):a={promise:t,reason:o},!Vu&&(t=p["on"+e])?t(a):e===Ou&&bu("Unhandled promise rejection",o)},Uu=function(e){return e.rejection!==Fu&&!e.parent},Yu=function(t,o,a){return function(e){t(o,e,a)}},Xu=function(e,t,o){e.done||(e.done=!0,(e=o?o:e).value=t,e.state=Wu,zu(e,!0))},Zu=function(o,e,t){if(!o.done){o.done=!0,t&&(o=t);try{if(o.facade===e)throw Bu("Promise can't be resolved itself");var a=ju(e);a?mu(function(){var t={done:!1};try{Te(a,e,Yu(Zu,t,o),Yu(Xu,t,o))}catch(e){Xu(t,e,o)}}):(o.value=e,o.state=Hu,zu(o,!1))}catch(e){Xu({done:!1},e,o)}}},qu=(Da&&(Lu=(Su=function(e){yu(this,Lu),Ce(e),Te(ds,this);var t=Du(this);try{e(Yu(Zu,t),Yu(Xu,t))}catch(e){Xu(t,e)}}).prototype,(ds=function(e){Iu(this,{type:Tu,done:!1,notified:!1,parent:!1,reactions:new iu,rejection:!1,state:0,value:void 0})}).prototype=wo(Lu,"then",function(e,t){var o=Du(this),a=Au(xu(this,Su));return o.parent=!0,a.ok=!K(e)||e,a.fail=K(t)&&t,a.domain=Li?Pu.domain:void 0,0==o.state?o.reactions.add(a):mu(function(){as(a,o)}),a.promise}),gs=function(){var e=new ds,t=Du(e);this.promise=e,this.resolve=Yu(Zu,t),this.reject=Yu(Xu,t)},ku.f=Au=function(e){return e===Su||void 0===e?new gs:_u(e)}),v({global:!0,constructor:!0,wrap:!0,forced:Da},{Promise:Su}),Mo(Su,Tu,!1,!0),ru(Tu),se("iterator")),Ku=!1;try{var Ju=0,$u={next:function(){return{done:!!Ju++}},return:function(){Ku=!0}};$u[qu]=function(){return this},Array.from($u,function(){throw 2})}catch(e){}function Qu(i){return function(e,t){var o,e=ka(A(e)),t=Kt(t),a=e.length;return t<0||a<=t?i?"":void 0:(o=rh(e,t))<55296||56319<o||t+1===a||(a=rh(e,t+1))<56320||57343<a?i?nh(e,t):o:i?lh(e,t,t+2):a-56320+(o-55296<<10)+65536}}var su=function(e,t){if(!t&&!Ku)return!1;var o=!1;try{var a={};a[qu]=function(){return{next:function(){return{done:o=!0}}}},e(a)}catch(e){}return o},La=t.CONSTRUCTOR||!su(function(e){hu.all(e).then(void 0,function(){})}),o=(v({target:"Promise",stat:!0,forced:La},{all:function(e){var l=this,t=ku.f(l),s=t.resolve,u=t.reject,o=wu(function(){var a=Ce(l.resolve),i=[],n=0,r=1;Hs(e,function(e){var t=n++,o=!1;r++,Te(a,l,e).then(function(e){o||(o=!0,i[t]=e,--r)||s(i)},u)}),--r||s(i)});return o.error&&u(o.value),t.promise}}),t.CONSTRUCTOR),n=(hu&&hu.prototype,v({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),v({target:"Promise",stat:!0,forced:La},{race:function(e){var o=this,a=ku.f(o),i=a.reject,t=wu(function(){var t=Ce(o.resolve);Hs(e,function(e){Te(t,o,e).then(a.resolve,i)})});return t.error&&i(t.value),a.promise}}),t.CONSTRUCTOR),eh=(v({target:"Promise",stat:!0,forced:n},{reject:function(e){var t=ku.f(this);return Te(t.reject,void 0,e),t.promise}}),function(e,t){return gt(e),ee(t)&&t.constructor===e?t:((0,(e=ku.f(e)).resolve)(t),e.promise)}),k=t.CONSTRUCTOR,th=pe("Promise"),oh=!k,ah=(v({target:"Promise",stat:!0,forced:!0},{resolve:function(e){return eh(oh&&this===th?hu:this,e)}}),v({target:"Promise",stat:!0,forced:La},{allSettled:function(e){var l=this,t=ku.f(l),s=t.resolve,o=t.reject,a=wu(function(){var a=Ce(l.resolve),i=[],n=0,r=1;Hs(e,function(e){var t=n++,o=!1;r++,Te(a,l,e).then(function(e){o||(o=!0,i[t]={status:"fulfilled",value:e},--r)||s(i)},function(e){o||(o=!0,i[t]={status:"rejected",reason:e},--r)||s(i)})}),--r||s(i)});return a.error&&o(a.value),t.promise}}),"No one promise resolved"),ih=(v({target:"Promise",stat:!0,forced:La},{any:function(e){var s=this,u=pe("AggregateError"),t=ku.f(s),h=t.resolve,c=t.reject,o=wu(function(){var a=Ce(s.resolve),i=[],n=0,r=1,l=!1;Hs(e,function(e){var t=n++,o=!1;r++,Te(a,s,e).then(function(e){o||l||(l=!0,h(e))},function(e){o||l||(o=!0,i[t]=e,--r)||c(new u(i,ah))})}),--r||c(new u(i,ah))});return o.error&&c(o.value),t.promise}}),hu&&hu.prototype),Da=!!hu&&b(function(){ih.finally.call({then:function(){}},function(){})}),nh=(v({target:"Promise",proto:!0,real:!0,forced:Da},{finally:function(t){var o=xu(this,pe("Promise")),e=K(t);return this.then(e?function(e){return eh(o,t()).then(function(){return e})}:t,e?function(e){return eh(o,t()).then(function(){throw e})}:t)}}),a("".charAt)),rh=a("".charCodeAt),lh=a("".slice),ru={codeAt:Qu(!1),charAt:Qu(!0)},sh=ru.charAt,uh="String Iterator",hh=de.set,ch=de.getterFor(uh);$(String,"String",function(e){hh(this,{type:uh,string:ka(e),index:0})},function(){var e=ch(this),t=e.string,o=e.index;return o>=t.length?qo(void 0,!0):(t=sh(t,o),e.index+=t.length,qo(t,!1))});function dh(e,t){var o=e.children;if(o)for(var a=0,i=o.length;a<i;a++){if(t(o[a]))return!0;if(dh(o[a],t))return!0}return!1}var gh=ue.Promise,$u=ht.Default,fh=$u.drawStretchImage,ph=$u.getImage,vh=$u.isObject,yh={_uuid:!0,text:!0,icon:!0,children:!0,badges:!0,drawCell:!0,expanded:!0,selected:!0,disabled:!0,checked:!0,isLeaf:!0},xh=function(){d(a,ht.Data);var o=g(a);function a(e){var t;return c(this,a),(t=o.call(this))._attrObject={},t.init(e),t}return s(a,[{key:"getAttrObject",value:function(){return this._attrObject}},{key:"a",value:function(e,t){if(2===arguments.length)this.setAttr(e,t);else{if(!vh(e))return this.getAttr(e);for(var o in e)this.setAttr(o,e[o])}return this}},{key:"setAttr",value:function(e,t){var o;void 0===t?delete this._attrObject[e]:this._attrObject[e]=t,yh[e]&&(o=this.a("dataInfo"))&&(o[e]=t)}},{key:"getAttr",value:function(e){return this._attrObject[e]}},{key:"init",value:function(e){var t=e._uuid,o=e.text,a=e.icon,i=e.badges,n=e.expanded,r=e.selected,l=e.disabled,s=e.checked,s=void 0!==s&&s,u=e.isLeaf,h=e.children,e=e.drawCell;if(this.a({text:void 0===o?"Tree":o,icon:void 0===a?null:a,badges:void 0===i?[]:i,expanded:void 0!==n&&n,selected:void 0!==r&&r,disabled:void 0!==l&&l,checked:s,isLeaf:void 0!==u&&u,children:void 0===h?[]:h,drawCell:e}),void 0===this.a("_uuid"))this.a({_uuid:t,_isHovering:!1,_isLoading:!1});else if(!1===s&&"check"===this.a("_checkStatus")&&(this.checkAfter(),this.checkBefore()),0===this.a("children").length&&0<this.getChildren().size())for(var c=this.getChildren().toArray(),d=this.getDataModel(),g=c.length-1;0<=g;g--)d.remove(c[g])}},{key:"initNodeRect",value:function(e,t,o){var a=this.getDataModel();this.setRowRect(a,e,t,o),this.setTreeContentRect(a),this.setCellsRect(a),this.setToggleRect(a,t,o),this.setCheckRect(a),this.setIconRect(a),this.setTreeTextRect(a,t,o)}},{key:"setRowRect",value:function(e,t,o,a){var e=e.getAttrObject(),i=e.translateX,n=e.translateY,r=e.showHead,l=e.thHeight,s=e.tdHeight,u=e.borderWidth,h=e.rowLineWidth,c=e.rect,e=e.getItemHeight,d=c.x,g=c.y,c=c.width;e&&(s=e.call(this,this.a("dataInfo"),o,a)),this.a("rowRect",{x:d+i+u,y:t?t.a("rowRect").y+t.a("rowRect").height+h:(r?l:0)+g+n+u,width:c-2*u,height:s})}},{key:"setTreeContentRect",value:function(e){for(var e=e.getAttrObject(),t=e.treeColumnIndex,o=e.colWidths,a=e.columnLineWidth,i=0,n=0;n<t;n++)i+=o[n]+a;var e=e.indent,r=this.a("rowRect"),l=r.x,s=r.y,u=r.width,r=r.height,h=this.getDeep();this.a("treeContentRect",{x:l+h*e+i,y:s,width:u,height:r})}},{key:"setCellsRect",value:function(e){var e=e.getAttrObject(),t=e.columnLineWidth,o=e.colWidths,a=e.cellPadding,i=e.treeColumnIndex,e=this.a("rowRect"),n=e.x,r=e.y,l=e.height,s=[],u=n;if(o)for(var h=0,c=o.length;h<c;h++){0!==h&&(u+=o[h-1]+t);var d=o[h]-(h===i?0:2*a);s.push({x:u+(h===i?0:a),y:r,width:d<0?0:d,height:l})}this.a("cellsRect",s)}},{key:"setToggleRect",value:function(e,t,o){var a,i=this.a("treeContentRect").x,n=this.a("treeTextWH").textWidth,r=this.a("rowRect"),l=r.x,s=r.y,u=r.width,r=r.height,e=e.getAttrObject(),h=e.space,c=e.expandIconSize,d=e.expandMode,g=e.expandIconPos,f=e.showCheckbox,p=e.checkIconSize,v=e.showIcon,y=e.iconSize,e=e.iconVisibleFunc;"left"===g&&(a=i),"fixRight"===g&&(a=l+u-c-2*h),"right"===g&&(a=i+h+(f?p+h:0),v&&e(this.a("dataInfo"),t,o)&&(a+=y+h),a+=n),"icon"===d?this.a("toggleRect",{x:a,y:s,width:c+2*h,height:r}):this.a("toggleRect",{x:l,y:s,width:u,height:r}),this.a("toggleIconRect",{x:a,y:s+(r-c)/2,width:c,height:c})}},{key:"setCheckRect",value:function(e){var t,o,e=e.getAttrObject(),a=e.showCheckbox,i=e.space,n=e.expandIconSize,r=e.checkIconSize,e=e.expandIconPos;a&&(t=(a=this.a("treeContentRect")).x,o=a.y,a=a.height,this.a("checkRect",{x:t+("left"===e?n+i:0),y:o+(a-r)/2,width:r,height:r}))}},{key:"setIconRect",value:function(e){var t,o,e=e.getAttrObject(),a=e.showIcon,i=e.space,n=e.expandIconSize,r=e.checkIconSize,l=e.showCheckbox,s=e.iconSize,e=e.expandIconPos;a&&(t=(a=this.a("treeContentRect")).x,o=a.y,a=a.height,this.a("iconRect",{x:t+("left"===e?n+i:0)+(l?r+i:0),y:o+(a-s)/2,width:s,height:s}))}},{key:"setTreeTextRect",value:function(e,t,o){var e=e.getAttrObject(),a=e.space,i=e.expandIconSize,n=e.checkIconSize,r=e.iconSize,l=e.showCheckbox,s=e.showIcon,u=e.expandIconPos,e=e.iconVisibleFunc,h=this.a("treeContentRect"),c=h.x,d=h.y,h=h.height,g=this.a("treeTextWH"),c={x:c+("left"===u?i+a:0)+(l?n+a:0)+(s?r+a:0),y:d+h/2,width:g.textWidth,height:g.textHeight};s&&!e(this.a("dataInfo"),t,o)&&(c.x=c.x-(r+a)),this.a("treeTextRect",c)}},{key:"drawTreeBadge",value:function(e,t,o,a,i){var n=this.a("badges");if(0!==n.length){var r=this.getDataModel().getAttrObject(),l=r.badgesVisibleFunc,s=r.expandIconPos,u=r.space,r=r.expandIconSize,h=this.getAttrObject(),c=h.rowRect,d=h.dataInfo,h=h.isLeaf,g=a.badgeFont,f=a.badgeHeight,p=a.badgeSpace,v=a.badgeRadius,a=c.x,y=c.y,x=c.width,m=c.height,b=a+x;!1===h&&"fixRight"===s&&(b-=u+r+u),e.save(),e.font=g,e.fillStyle="#777777",e.strokeStyle="white",e.lineWidth=1,e.setLineDash([]);for(var w=0,k=n.length;w<k;w++){var C=n[w],T=C.text,V=C.textColor,D=C.backColor,I=C.visible,S=C.draw,L=He(g,T),B=L.width,L=(L.height,void 0!==C.badgeWidth?C.badgeWidth:B+2*v),B=void 0!==C.badgeHeight?C.badgeHeight:f,R=y+(m-B)/2;l&&!l(d,C,t,o)||!1===I||(b-=L+p,S?S(e,{x:b,y:R,width:L,height:B},t,o):(D&&(e.fillStyle=D),e.beginPath(),xe(e,b,R,L,B,v),e.closePath(),Ue(e).call(e),V&&(e.fillStyle=V),ht.Default.drawText(e,T,g,V,b,R,L,B,"center","middle")),i.badgesRect.push({node:this,info:C,badgeRect:{x:b,y:R,width:L,height:B}}))}e.restore()}}},{key:"drawTreeToggleIcon",value:function(e,t,o,a,i){var n,r,l,s,u,h,c,d,g,f,p,v,y,x,m;this.a("isLeaf")||(n=a.loading,r=a.close,a=a.open,l=(h=this.getAttrObject()).toggleRect,f=h.toggleIconRect,s=h.expanded,u=h._isLoading,h=h.dataInfo,c=f.x,d=f.y,g=f.width,f=f.height,y=(m=this.getDataModel().getAttrObject()).getOpenIconColor,x=m.getCloseIconColor,m=m.getLoadingIconColor,u?(p=n.image,v=n.color,m&&(v=m(h,t,o))):s?(p=r.image,v=r.color,x&&(v=x(h,t,o))):(p=a.image,v=a.color,y&&(v=y(h,t,o))),fh(e,p,"fill",c,d,g,f,t,o,v),i.togglesRect.push({node:this,toggleRect:l}))}},{key:"drawTreeCheckIcon",value:function(e,t,o,a,i){var n,r,l=a.check,s=a.unCheck,a=a.unCheckAll,u=this.getAttrObject(),h=u.checkRect,c=u._checkStatus,u=u.dataInfo,d=h.x,g=h.y,f=h.width,p=h.height,v=this.getDataModel().getAttrObject(),y=v.getCheckIconColor,x=v.getUnCheckIconColor,v=v.getUnCheckAllIconColor;"check"===c?(n=l.image,r=l.color,y&&(r=y(u,t,o))):"unCheckAll"===c?(n=a.image,r=a.color,v&&(r=v(u,t,o))):(n=s.image,r=s.color,x&&(r=x(u,t,o))),fh(e,n,"fill",d,g,f,p,t,o,r),i.checksRect.push({node:this,checkRect:h})}},{key:"drawTreeIcon",value:function(e,t,o,a){var i,n,a=a.def,r=this.getAttrObject(),l=r.icon,s=r.iconRect,r=r.dataInfo,u=this.getDataModel().a("iconVisibleFunc"),h=s.x,c=s.y,d=s.width,s=s.height,g=this.getDataModel().getAttrObject().getDefaultIconColor;l?i=ph(l):(i=a.image,n=a.color),g&&(n=g(r,t,o)),u(r,t,o)&&fh(e,i,"fill",h,c,d,s,t,o,n)}},{key:"drawTreeText",value:function(e,t,o,a){function i(){e.save(),e.textBaseline="middle",r!==a.textColor&&(e.fillStyle=r),e.fillText(s,d,g),e.restore()}var n=this.getDataModel(),r=this.getTextColor(a),l=this.getAttrObject(),s=l.text,u=l.treeTextRect,h=l.dataInfo,l=l.rowRect,c=n.getAttrObject().tdFont,d=u.x,g=u.y,u=u.width,f=this.a("drawCell");(f=f||n.a("drawCell"))?f(e,{x:d,y:l.y,width:u,height:l.height},h,{textFont:c,textColor:r,defaultDraw:i,data:t,view:o}):i()}},{key:"drawRowLine",value:function(e,t,o){var a,i,n;t.rowLineWidth&&(a=t.rowLineColor,t=t.rowLineWidth,i=o.x,n=o.y,o=o.width,e.save(),e.beginPath(),e.fillStyle=a,e.fillRect(i,n-t,o,t),e.restore())}},{key:"drawTableCell",value:function(n,e){function t(){var e=l.x,t=l.y,o=l.width,a=l.height,i=n.measureText(m).width+2;"center"===f&&(e+=(o-i)/2),"right"===f&&(e+=o-i),"middle"===p&&(t+=(a-h)/2),"bottom"===p&&(t+=a-h),"function"==typeof d&&(m=d.call(r,m,x)),n.fillText(m,e,t)}var r=e.comp,o=e.data,a=e.column,l=e.cellRect,i=e.tdFont,s=e.tdColor,u=e.colIndex,h=e.textHeight,e=e.visibleRowIndex,c=a.key,d=a.format,g=a.align,f=void 0===g?"left":g,g=a.vAlign,p=void 0===g?"middle":g,g=a.drawCell,v=a.isIndex,y=this.a("dataInfo").tableDataSource,x=void 0===y?{}:y,m=x[c]||"";v&&(m=e),g?g.call(r,n,m,l,{font:i,color:s,column:a,colIndex:u,row:x,rowIndex:this.a("rowIndex"),defaultDraw:t,data:o}):t()}},{key:"drawTableRow",value:function(e,t){var o=t.comp,a=t.visibleRowRect,i=t.tdBackground,t=t.drawRow,n=a.x,r=a.y,l=a.width,s=a.height;i&&(e.save(),e.fillStyle=i,e.fillRect(n,r,l,s),e.restore()),t&&(e.save(),t.call(o,e,this,a),e.restore())}},{key:"getTextColor",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=t.bodyColor,t=t.color,a=e.textColor,i=e.hoverTextColor,e=e.selectTextColor,n=this.a("_isHovering");return this.a("selected")&&e?e:n&&i?i:o||t||a}},{key:"getDeep",value:function(){for(var e=1,t=this;t=t.getParent();)e++;return e}},{key:"getPreSibling",value:function(){var e=this.getDataModel().getSiblings(this).toArray(),t=Oe(e).call(e,this)-1;return t<0?null:e[t]}},{key:"getPreVisibleSibling",value:function(e){for(var t=this.getPreSibling();t&&!e(t.a("dataInfo"));)t=t.getPreSibling();return t&&e(t.a("dataInfo"))?t:null}},{key:"checkAfter",value:function(){var o=this,e=this.a("dataInfo"),a=this.a("checked"),t=(this.a("_checkStatus",a?"check":"unCheck"),this.getDataModel().a("checkAll"));e.children&&t&&ze(t=e.children).call(t,function(e){var t=o.getDataModel().getDataByTag(e._uuid);t?(t.a("checked",a),t.checkAfter()):o.loopChildInfo(e,function(e){e.checked=a})})}},{key:"loopChildInfo",value:function(e,t){var o=this;t(e),e.children&&ze(e=e.children).call(e,function(e){return o.loopChildInfo(e,t)})}},{key:"checkBefore",value:function(){var e=this.getParent(),t=this.getDataModel().a("checkAll");if(e&&t){for(var o=e.getChildren().toArray(),a=0,i=!1,n=0;n<o.length;n++)o[n].a("checked")&&a++,"unCheckAll"===o[n].a("_checkStatus")&&(i=!0);a===o.length?(e.a("checked",!0),e.a("_checkStatus","check")):0!==a||i?(e.a("checked",!1),e.a("_checkStatus","unCheckAll")):(e.a("checked",!1),e.a("_checkStatus","unCheck")),e.checkBefore()}}}]),a}(),su=ht.Default,mh=su.getImage,bh=(su.drawBorder,su.containsPoint),wh=su.isObject,kh=function(){d(o,ht.DataModel);var t=g(o);function o(){var e;return c(this,o),(e=t.call(this))._attrObject={},e}return s(o,[{key:"getAttrObject",value:function(){return this._attrObject}},{key:"a",value:function(e,t){if(2===arguments.length)this.setAttr(e,t);else{if(!wh(e))return this.getAttr(e);for(var o in e)this.setAttr(o,e[o])}return this}},{key:"setAttr",value:function(e,t){void 0===t?delete this._attrObject[e]:this._attrObject[e]=t}},{key:"getAttr",value:function(e){return this._attrObject[e]}},{key:"init",value:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,o=0,a=e.length;o<a;o++){var i=e[o];if(i){var n=i._uuid,r=(i.expanded,i.children),l=(this.tagMap[n]&&(n=tr()),this.getDataByTag(n)),s=(l?l.init(i):(i._uuid=n=void 0===n?tr():n,(l=new xh(i)).setTag(n),this.add(l)),l.getParent()===t);if(t&&l.setParent(t),l.a("childIndex")===o&&s&&!this.hierarchyChanged||(this.moveTo(l,o),this.hierarchyChanged=!0),l.a({dataInfo:i,rowIndex:++this.rowIndex,childIndex:o}),this.tagMap[n]=!0,this.init(r,l),o===a-1){var u=(t?t.getChildren():this.getRoots()).toArray(),h=u.length;if(a<h)for(var c=a;c<h;c++)this.remove(u[c])}}}null===t&&0===e.length&&this.clear()}},{key:"reset",value:function(e,t,o){var a=e.getValue("translateX"),i=e.getValue("translateY"),n=e.getValue("indent"),r=e.getValue("borderWidth"),l=e.getValue("borderRadius")||0,s=e.getValue("columnLineWidth"),u=e.getValue("rowLineWidth"),h=e.getValue("thHeight"),c=e.getValue("tdHeight"),d=e.getValue("itemHeight"),g=e.getValue("getItemHeight"),f=e.getValue("space"),p=e.getValue("iconSize"),v=e.getValue("expandIconSize"),O=e.getValue("checkIconSize"),y=e.getValue("showHead"),E=e.getValue("showLine"),H=e.getValue("showIcon"),W=e.getValue("showCheckbox"),F=e.getValue("checkAll"),x=e.getValue("columns"),N=e.getValue("thFont"),m=e.getValue("tdFont"),j=e.getValue("treeFont"),b=e.getValue("columnVisibleFunc"),w=e.getValue("headLineDraggable"),k=e.getValue("headDraggable"),C=e.getValue("resizeInteractiveSize"),z=e.getValue("cellPadding"),G=e.getValue("accordion"),U=e.getValue("multiSelect"),Y=e.getValue("loadData")||function(e,t){return t()},X=e.getValue("onCheck")||function(){},Z=e.getValue("handleHover")||function(){},q=e.getValue("onExpand")||function(){},K=e.getValue("onSelect")||function(){},J=e.getValue("onClickBack")||function(){},$=e.getValue("onClickBadge")||function(){},Q=e.getValue("selectableFunc")||function(){return!0},ee=e.getValue("expandableFunc")||function(){return!0},te=e.getValue("checkableFunc")||function(){return!0},oe=e.getValue("onClickCell"),ae=e.getValue("onClickHeadCell"),ie=e.getValue("expandMode")||"icon",ne=e.getValue("selectMode")||"clickRow",re=e.getColor("lineColor"),le=e.getValue("lineWidth"),se=e.getValue("linePattern"),ue=e.getValue("iconVisibleFunc")||function(){return!0},he=e.getValue("drawCell"),ce=e.getValue("badgesVisibleFunc"),de=e.getValue("expandIconPos")||"left",ge=e.getValue("getDefaultIconColor"),fe=e.getValue("getOpenIconColor"),pe=e.getValue("getCloseIconColor"),ve=e.getValue("getLoadingIconColor"),ye=e.getValue("getCheckIconColor"),xe=e.getValue("getUnCheckIconColor"),e=e.getValue("getUnCheckAllIconColor");if(this.a({rect:t,translateX:a,translateY:i,indent:n,borderWidth:r,borderRadius:l,columnLineWidth:void 0===s?0:s,rowLineWidth:u,thHeight:void 0===h?0:h,tdHeight:void 0===c?d:c,getItemHeight:g,space:f,iconSize:p,expandIconSize:v,checkIconSize:O,showHead:void 0!==y&&y,showLine:E,showIcon:H,showCheckbox:W,checkAll:F,tdFont:void 0===m?j:m,thFont:N,headLineDraggable:w,headDraggable:k,resizeInteractiveSize:C,cellPadding:z,onClickCell:oe,onClickHeadCell:ae,accordion:G,multiSelect:U,loadData:Y,onCheck:X,handleHover:Z,onExpand:q,onSelect:K,onClickBack:J,onClickBadge:$,selectableFunc:Q,expandableFunc:ee,checkableFunc:te,expandMode:ie,selectMode:ne,lineColor:re,iconVisibleFunc:ue,drawCell:he,badgesVisibleFunc:ce,lineWidth:le,linePattern:se,expandIconPos:de,getDefaultIconColor:ge,getOpenIconColor:fe,getCloseIconColor:pe,getLoadingIconColor:ve,getCheckIconColor:ye,getUnCheckIconColor:xe,getUnCheckAllIconColor:e}),this.tagMap={},this.hierarchyChanged=!1,this.rowIndex=-1,x){var T=[],V=[],D=(ze(x).call(x,function(e,t){(b&&b(e,t)||!b)&&V.push({column:e,columnIndex:t})}),k&&(n=(i=this.a("dragColumnsInfo")||{}).dragStartColumnIndex,l=i.dragEndColumnIndex,void 0!==n)&&void 0!==l&&(d=(u=V[n]).columnIndex,g=(c=V[l]).columnIndex,V[n]=c,V[l]=u,f=x[d],x[d]=x[g],x[g]=f,this.a("dragColumnsInfo",void 0)),ze(V).call(V,function(e){e=e.column;return T.push(e)}),this.a("visibleColumns",T),En(T,t.width-2*r-s*(T.length-1))),I=[],S=[],L=t.x+a+r,B=t.y+r;if(this.a("defColWidths",ht.Default.clone(D)),w){var R=this.a("dragColumnsLineDiff");if(R)for(var P in R)for(var A=0,me=T.length;A<me;A++)if(T[A].key==P){D[A]+=R[P];break}p=o.dragColumnLineIndex,v=o.dragColumnLineDistance;void 0!==p&&void 0!==v&&(D[p]+v<C?D[p]=C:D[p]+=v)}this.a("colWidths",D),this.a("treeColumnIndex",void 0);for(var _=0,be=T.length;_<be;_++)if(T[_].isTreeColumn){this.a("treeColumnIndex",_);break}for(var M=0,we=D.length;M<we;M++)I.push({x:L,y:B,width:D[M],height:h}),w&&S.push({x:I[M].x+I[M].width-C,y:B,width:s+2*C,height:h}),L+=s+D[M];this.a({columnsRect:I,columnLinesRect:S,headRect:{x:t.x,y:t.y,width:t.width,height:h}})}}},{key:"getTreeIconInfo",value:function(e){var t=e.getValue("openIcon"),o=e.getValue("closeIcon"),a=e.getValue("loadingIcon"),i=e.getValue("defaultIcon"),n=e.getValue("checkIcon"),r=e.getValue("unCheckIcon"),l=e.getValue("unCheckAllIcon");return{open:{image:mh(t||"ht.vector.treeOpenIcon"),color:t?void 0:e.getColor("openIconColor")},close:{image:mh(o||"ht.vector.treeCloseIcon"),color:o?void 0:e.getColor("closeIconColor")},loading:{image:mh(a||"ht.vector.treeLoadIcon"),color:a?void 0:e.getColor("loadingIconColor")},def:{image:mh(i||"ht.vector.treeDefIcon"),color:i?void 0:e.getColor("defaultIconColor")},check:{image:mh(n||"ht.vector.treeCheckIcon"),color:n?void 0:e.getColor("checkIconColor")},unCheck:{image:mh(r||"ht.vector.treeUnCheckIcon"),color:r?void 0:e.getColor("unCheckIconColor")},unCheckAll:{image:mh(l||"ht.vector.treeUnCheckAllIcon"),color:l?void 0:e.getColor("unCheckAllIconColor")}}}},{key:"drawTreeCable",value:function(l,e,s){var t,o,a,i,n,u;"left"===this.a("expandIconPos")&&(t=(n=this.getAttrObject()).showIcon,o=n.showCheckbox,a=n.lineColor,i=void 0===(i=n.lineWidth)?.5:i,n=void 0===(n=n.linePattern)?[1,1]:n,u=o?"checkRect":t?"iconRect":"treeTextRect",l.save(),l.strokeStyle=a,l.setLineDash(n),l.lineWidth=i,l.lineJoin="miter",ze(e).call(e,function(e){var t,o=e.a("isLeaf"),a=nr(e.a(u)).leftMiddle,i=nr(e.a("toggleIconRect")),n=i.rightMiddle,r=i.topMiddle,i=i.middleMiddle,n=(l.beginPath(),o?l.moveTo(i.x,i.y):l.moveTo(n.x,n.y),"treeTextRect"==u?l.lineTo(a.x,a.y-e.a(u).height/2):l.lineTo(a.x,a.y),e.getPreVisibleSibling(s));n?(a=n.a("isLeaf"),t=(n=nr(n.a("toggleIconRect"))).bottomMiddle,n=n.middleMiddle,a?l.moveTo(n.x,n.y):l.moveTo(t.x,t.y),o?l.lineTo(i.x,i.y):l.lineTo(r.x,r.y)):(a=e.getParent())&&(n=nr(a.a(u)).bottomMiddle,l.moveTo(i.x,n.y),o?l.lineTo(i.x,i.y):l.lineTo(r.x,r.y)),l.stroke()}),l.restore())}},{key:"drawBorder",value:function(e,t){var o=this.a("borderWidth"),a=this.a("borderRadius"),i=this.a("rect"),n=i.x,r=i.y,l=i.width,i=i.height;o&&(e.save(),e.strokeStyle=t,e.beginPath(),e.lineWidth=o,ht.Default.drawRoundRect(e,n+o/2,r+o/2,l-o,i-o,a),e.closePath(),e.stroke(),e.restore())}},{key:"drawTableHead",value:function(f,e,t){for(var p=t.comp,v=t.data,y=t.columnLineColor,x=t.thColor,t=t.thBackground,o=this.getAttrObject(),m=o.rect,b=o.columnLineWidth,w=o.columnsRect,k=o.visibleColumns,C=o.thFont,a=o.thHeight,T=o.showHead,i=o.borderWidth,V=o.cellPadding,D=(f.save(),T&&(f.fillStyle=t,f.fillRect(m.x+i,m.y+i,m.width-2*i,a)),e.dragStartColumnIndex),I=e.dragColumnDistance,n=function(o){var a,i,n,e,t,r,l,s=w[o],u=k[o],h=s.x,c=s.y,d=s.width,g=s.height;f.beginPath(),f.fillStyle=y,f.fillRect(h+d,c,b,m.height),T&&(a=u.displayName,l=u.align,i=void 0===l?"left":l,l=u.vAlign,n=void 0===l?"middle":l,l=u.headColor,e=u.color,t=u.drawHeadCell,r=x,l?r=l:e&&(r=e),h+=V,d=(d-=2*V)<0?0:d,f.save(),D!==o&&(f.rect(h,c,d,g),f.clip()),l=function(){var e,t;void 0!==a&&(e=(t=He(C,a)).width,t=t.height,"center"===i&&(h+=(d-e)/2),"right"===i&&(h+=d-e),"middle"===n&&(c+=(g-t)/2),"bottom"===n&&(c+=g-t),D===o&&(h+=I,f.save(),f.fillStyle="rgb(217, 219, 220)",f.fillRect(h,s.y,d,g),f.restore()),f.fillStyle=r,f.font=C,f.fillText(a,h,c))},t?t.call(p,f,a,s,{font:C,color:r,visibleColumn:u,index:o,defaultDraw:l,data:v}):l(),f.restore())},r=0,l=w.length;r<l;r++)r!==D&&n(r);void 0!==D&&n(D),f.restore()}},{key:"drawScrollBar",value:function(e,t,o,a,i,n,r){var l=t.getValue("scrollBarWidthAbsolute"),s=t.getValue("scrollBarWidth"),u=t.getValue("autoHideScrollBar"),h=t.getValue("scrollable"),t=t.getValue("scrollBarColor"),c=a.translateX,d=a.translateY,g=a.scrollBarVisible,o=o.getZoom?o.getZoom():1,l=l?s/o:s,o=i,s=n;i-2>r.width&&(s=n+l),a&&(a.scrollBarInfo={x:r.x,y:r.y,width:r.width,height:r.height,boundWidth:o,boundHeight:s,absoluteScrollBarWidth:l},a.autoHideScrollBar=u),h&&(i={x:r.x,y:r.y,width:r.width,height:r.height},n={width:o,height:s},h={x:c,y:d},r.height>s&&0!==d&&(n.height=r.height-d),Pl(e,i,n,h,{visible:!u||g,color:t,gap:0,barWidth:l},a||{}))}},{key:"drawDragColumnLine",value:function(e,t){var o,a,i,t=t.dragColumnLineRect;t&&(o=t.x,a=t.y,i=t.width,t=t.height,e.save(),e.fillStyle="rgb(49, 141, 251)",e.fillRect(o,a,i,t),e.restore())}},{key:"onClickBadge",value:function(e,t,o){for(var e=je(e,3),a=e[0],i=e[1],n=e[2],r=this.a("onClickBadge"),l=0,s=o.length;l<s;l++){var u=o[l],h=u.node,c=u.info,u=u.badgeRect;if(bh(u,t)&&!h.a("disabled"))return r.call(this,a,h.a("dataInfo"),c,i,n),i.iv(),!0}return!1}},{key:"onClickCheck",value:function(e,t,o){for(var e=je(e,3),a=e[0],i=e[1],n=e[2],e=this.getAttrObject(),r=e.checkableFunc,l=e.onCheck,s=0,u=o.length;s<u;s++){var h=o[s],c=h.node,h=h.checkRect;if(bh(h,t)&&!c.a("disabled")&&r(c.a("dataInfo"),i,n))return c.a("checked",!c.a("checked")),c.checkAfter(),c.checkBefore(),l.call(this,a,c.a("dataInfo"),c.a("checked"),i,n),i.iv(),!0}return!1}},{key:"onClickToggle",value:function(e,a,i){for(var n=this,e=je(e,3),r=e[0],l=e[1],s=e[2],e=this.getAttrObject(),u=e.onExpand,h=e.loadData,c=e.expandableFunc,d=e.accordion,g=0,t=i.length;g<t;g++){var o=function(){var t,e=i[g],o=e.node,e=e.toggleRect;return o.a("isLeaf")?"continue":bh(e,a)?o.a("_isLoading")?{v:!0}:!o.a("disabled")&&c(o.a("dataInfo"),l,s)?(d&&n.getSiblings(o).each(function(e){e!==o&&e.a("expanded",!1)}),o.a("expanded",!o.a("expanded")),e=o.getChildren().toArray(),t=o.a("expanded"),0===e.length&&0<o.a("children").length?(n.init(o.a("children"),o),u.call(n,r,o.a("dataInfo"),t,l,s)):t&&0===e.length?new gh(function(e){o.a("_isLoading",!0),h.call(n,o.a("dataInfo"),e)}).then(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];o.a({_isLoading:!1,children:e}),n.init(e,o),u.call(n,r,o.a("dataInfo"),t,l,s),l.iv()}):u.call(n,r,o.a("dataInfo"),t,l,s),l.iv(),{v:!0}):void 0:void 0}();if("continue"!==o&&"object"===Xe(o))return o.v}return!1}},{key:"onClickVisibleRow",value:function(e,d,g,f){for(var p=this,e=je(e,3),v=e[0],y=e[1],x=e[2],e=this.getAttrObject(),m=e.selectableFunc,b=e.multiSelect,w=e.onSelect,k=e.selectMode,C=0,t=g.length;C<t;C++){var o=function(){var e=g[C],a=e.node,e=e.visibleRowRect,t=a.a("treeTextRect"),o=a.a("treeContentRect"),t={x:t.x,y:o.y,width:t.width,height:o.height};if(bh("clickText"===k?t:e,d)){if(!a.a("disabled")&&m(a.a("dataInfo"),y,x)){var o=p.toDatas(function(e){return e.a("selected")}).toArray(),i=[],n=(ze(o).call(o,function(e){var t=e.a("_uuid"),o=e.a("text");i.push({_uuid:t,text:o}),b||e===a||e.a("selected",!1)}),f.selectedInfos=i,b?a.a("selected",!a.a("selected")):a.a("selected")||a.a("selected",!0),w.call(p,v,a.a("dataInfo"),a.a("selected"),y,x),p.a("onClickCell")),r=a.a("cellsRect");if(n&&r&&0<r.length)for(var l,s,u,h=0,c=r.length;h<c;h++)bh(r[h],d)&&(l=p.a("visibleColumns"),u=(s=void 0===(s=a.a("dataInfo").tableDataSource)?{}:s)[l[h].key]||"",n(v,0===h?a.a("text"):u,s,l,a.a("rowIndex"),h,y,x));y.iv()}return{v:!0}}}();if("object"===Xe(o))return o.v}return!1}},{key:"onClickBack",value:function(e){var t,e=je(e,3),o=e[0],a=e[1],e=e[2];(t=this.a("onClickBack"))&&t(o,a,e)}},{key:"onClickHeadCell",value:function(e,t){var e=je(e,3),o=e[0],a=e[1],i=e[2],e=this.getAttrObject(),n=e.columnsRect,r=e.onClickHeadCell,l=e.visibleColumns;if(r)for(var s=0,u=n.length;s<u;s++)if(bh(n[s],t))return r(o,l[s],s,a,i),!0;return!1}},{key:"onHoverRow",value:function(e,t,o,a,i){var e=je(e,3),n=e[0],r=e[1],l=e[2],s=0,u=o.length,h=this.a("selectableFunc"),c=this.a("handleHover");for(this.a("selectMode");s<u;s++){var d=o[s],g=d.node,d=d.visibleRowRect;if(bh(d,t)){c&&c.call(this,n,g?g.a("dataInfo"):{},r,l);var d=h(g.a("dataInfo"),r,l),f=(d&&(a!==g&&(a&&a.a("_isHovering",!1),i.preHoverNode=g),g.a("disabled")?(E(l,"not-allowed"),a!==g&&r.iv()):g.a("_isHovering")||(E(l,"default"),g.a("_isHovering",!0),r.iv())),g.a("treeTextRect")),p=g.a("treeContentRect"),v=g.a("toggleIconRect"),y=g.a("checkRect"),g=g.a("isLeaf"),f={x:f.x,y:p.y,width:f.width,height:p.height};if(d&&bh(f,t)||!g&&bh(v,t)||bh(y,t)?E(l,"pointer"):E(l,"default"),d)break}}s===u&&a&&(E(l,"default"),a.a("_isHovering",!1),delete i.preHoverNode,r.iv())}}]),o}(),Ch=ht.Default.intersectsRect;var Th=ht.Default.intersectsRect;var o=ht.Default,Vh=o.drawText,Dh=o.drawStretchImage,Ih=o.getImage;o.darker;function Sh(e,t,o,a,i){var n=t.x,r=t.y,l=t.width;r+=t.height,e.strokeStyle=i,e.beginPath(),a===Re?(e.moveTo(n+l,r),e.lineTo(n+l-o,r)):a===Ae?(e.moveTo(n+(l-o)/2,r),e.lineTo(n+(l+o)/2,r)):(e.moveTo(n,r),e.lineTo(n+o,r)),e.stroke()}var Lh={};function Bh(e,g,f,p,v){var y=[],e=e.split("\n");return ze(e).call(e,function(e){if(""===e&&(e=" "),v)Array.prototype.push.apply(y,Rh(e,f,g,p));else{for(var t,o,a="",i="",n=0;n<e.length;n++)e.charAt(n).match(/[a-z|A-Z]/g)?a+="1":a+="2";for(var a=(a=a.replace(/21/g,"2_1")).replace(/12/g,"1_2"),r=0;r<a.length;r++)a.charAt(r).match(/\_/g)&&(e=Rn(e,r+1,"|"));for(var l,s=e.split("|"),u=a.split("_"),h=(l=He(g,"图")).height/3,c=0,d=s.length;c<d;c++)t=i+s[c],h+=l.height*s[c].length+p,"1"===u[c][0]?f<h?(i?(y.push(i),i="",c--):(o=Rh(s[c],f,g,p),Array.prototype.push.apply(y,Me(o).call(o,0,o.length-1)),i=o[o.length-1]),h=l.height/3):h===f?(y.push(t),i="",h=l.height/3):i=t:f<h?(o=Rh(t,f,g,p),Array.prototype.push.apply(y,Me(o).call(o,0,o.length-1)),i=o[o.length-1],h=l.height/3):i=t;i&&y.push(i)}}),y}var Rh=function(e,t,o,a){for(var i=[],n=0,r=He(o,"图"),l=r.height/3,s=1,u=e.length;s<=u;s++)t<(l+=r.height+a)&&(n=s-1===n?(i.push(e.substring(n,s)),s):(i.push(e.substring(n,s-1)),s-1),l=r.height/3);return n!==s-1&&i.push(e.substring(n,s)),i};function Ph(e,t,o,a,i,n){return t?n:_h===e?a||o:e===Mh&&i||o}function Ah(e,t){return 0===e&&1===t?3:0===e?0:e===t-1?2:1}var _h,Mh,Oh=ht.Default.drawText;function Eh(e,t,o,a){for(var i=e,n=0;i<t;){n++;for(var i=e,r=0;r<n;r++)i+=2*o+2*e*(a+(1-a)*r/n)}return n}function Hh(e,t,o,a,i,n,r,l,s,u,h,c){var d,g=t.x,f=t.y,p=t.width,t=t.height;o!==hn&&o!==cn&&(e.beginPath(),xe(e,g,f,p,t,r),e.closePath(),n&&l&&(e.strokeStyle=n,e.lineWidth=l,e.stroke()),s)&&(e.fillStyle=s,Ue(e).call(e)),(d=0<=Oe(Nh).call(Nh,o)?o===hn||o===cn?u.hover?wr(Fh+(o===hn?dn:gn).toLowerCase()):wr("ht.vector.pagination.ellipsis"):wr(Fh+o.toLowerCase()):d)?mr(e,d,"uniform",g,f,p,t,h,c,i):yr(e,o,a,i,g,f,p,t,Ae,_e)}function Wh(e,t,o,a,i,n){var r=e.active,l=e.disabled,e=e.hover;return l&&r?n:l?i:e?o:r?a:t}var Fh="ht.vector.pagination.",Nh=[sn,un,gn,dn,hn,cn];function jh(e){this.mode=Xh.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,o=this.data.length;t<o;t++){var a=[],i=this.data.charCodeAt(t);65536<i?(a[0]=240|(1835008&i)>>>18,a[1]=128|(258048&i)>>>12,a[2]=128|(4032&i)>>>6,a[3]=128|63&i):2048<i?(a[0]=224|(61440&i)>>>12,a[1]=128|(4032&i)>>>6,a[2]=128|63&i):128<i?(a[0]=192|(1984&i)>>>6,a[1]=128|63&i):a[0]=i,this.parsedData.push(a)}this.parsedData=Ee(Array.prototype).apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function zh(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function Gh(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var o=0;o<e.length&&0==e[o];)o++;this.num=new Array(e.length-o+t);for(var a=0;a<e.length-o;a++)this.num[a]=e[a+o]}function Uh(e,t){this.totalCount=e,this.dataCount=t}function Yh(){this.buffer=[],this.length=0}jh.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,o=this.parsedData.length;t<o;t++)e.put(this.parsedData[t],8)}},zh.prototype={addData:function(e){e=new jh(e);this.dataList.push(e),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(var a=0;a<this.moduleCount;a++)this.modules[o][a]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),7<=this.typeNumber&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=zh.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var o=-1;o<=7;o++)if(!(e+o<=-1||this.moduleCount<=e+o))for(var a=-1;a<=7;a++)t+a<=-1||this.moduleCount<=t+a||(this.modules[e+o][t+a]=0<=o&&o<=6&&(0==a||6==a)||0<=a&&a<=6&&(0==o||6==o)||2<=o&&o<=4&&2<=a&&a<=4)},getBestMaskPattern:function(){for(var e=0,t=0,o=0;o<8;o++){this.makeImpl(!0,o);var a=ac.getLostPoint(this);(0==o||a<e)&&(e=a,t=o)}return t},createMovieClip:function(e,t,o){var a=e.createEmptyMovieClip(t,o);this.make();for(var i=0;i<this.modules.length;i++)for(var n=+i,r=0;r<this.modules[i].length;r++){var l=+r;this.modules[i][r]&&(a.beginFill(0,100),a.moveTo(l,n),a.lineTo(1+l,n),a.lineTo(1+l,1+n),a.lineTo(l,1+n),a.endFill())}return a},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=ac.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var o=0;o<e.length;o++){var a=e[t],i=e[o];if(null==this.modules[a][i])for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.modules[a+n][i+r]=-2==n||2==n||-2==r||2==r||0==n&&0==r}},setupTypeNumber:function(e){for(var t=ac.getBCHTypeNumber(this.typeNumber),o=0;o<18;o++){var a=!e&&1==(t>>o&1);this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=a}for(o=0;o<18;o++){a=!e&&1==(t>>o&1);this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=a}},setupTypeInfo:function(e,t){for(var t=this.errorCorrectLevel<<3|t,o=ac.getBCHTypeInfo(t),a=0;a<15;a++){var i=!e&&1==(o>>a&1);a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(a=0;a<15;a++){i=!e&&1==(o>>a&1);a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var o=-1,a=this.moduleCount-1,i=7,n=0,r=this.moduleCount-1;0<r;r-=2)for(6==r&&r--;;){for(var l,s,u=0;u<2;u++)null==this.modules[a][r-u]&&(l=!1,n<e.length&&(l=1==(e[n]>>>i&1)),s=ac.getMask(t,a,r-u),this.modules[a][r-u]=l=s?!l:l,-1==--i)&&(n++,i=7);if((a+=o)<0||this.moduleCount<=a){a-=o,o=-o;break}}}},zh.PAD0=236,zh.PAD1=17,zh.createData=function(e,t,o){for(var a=Uh.getRSBlocks(e,t),i=new Yh,n=0;n<o.length;n++){var r=o[n];i.put(r.mode,4),i.put(r.getLength(),ac.getLengthInBits(r.mode,e)),r.write(i)}for(var l=0,n=0;n<a.length;n++)l+=a[n].dataCount;if(i.getLengthInBits()>8*l)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*l+")");for(i.getLengthInBits()+4<=8*l&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*l)&&(i.put(zh.PAD0,8),!(i.getLengthInBits()>=8*l));)i.put(zh.PAD1,8);return zh.createBytes(i,a)},zh.createBytes=function(e,t){for(var o=0,a=0,i=0,n=new Array(t.length),r=new Array(t.length),l=0;l<t.length;l++){var s=t[l].dataCount,u=t[l].totalCount-s,a=Math.max(a,s),i=Math.max(i,u);n[l]=new Array(s);for(var h=0;h<n[l].length;h++)n[l][h]=255&e.buffer[h+o];o+=s;var s=ac.getErrorCorrectPolynomial(u),c=new Gh(n[l],s.getLength()-1).mod(s);r[l]=new Array(s.getLength()-1);for(h=0;h<r[l].length;h++){var d=h+c.getLength()-r[l].length;r[l][h]=0<=d?c.get(d):0}}for(var g=0,h=0;h<t.length;h++)g+=t[h].totalCount;for(var f=new Array(g),p=0,h=0;h<a;h++)for(l=0;l<t.length;l++)h<n[l].length&&(f[p++]=n[l][h]);for(h=0;h<i;h++)for(l=0;l<t.length;l++)h<r[l].length&&(f[p++]=r[l][h]);return f};for(var Xh={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Zh={L:1,M:0,Q:3,H:2},qh=0,Kh=1,Jh=2,$h=3,Qh=4,ec=5,tc=6,oc=7,ac={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;0<=ac.getBCHDigit(t)-ac.getBCHDigit(ac.G15);)t^=ac.G15<<ac.getBCHDigit(t)-ac.getBCHDigit(ac.G15);return(e<<10|t)^ac.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;0<=ac.getBCHDigit(t)-ac.getBCHDigit(ac.G18);)t^=ac.G18<<ac.getBCHDigit(t)-ac.getBCHDigit(ac.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return ac.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case qh:return(t+o)%2==0;case Kh:return t%2==0;case Jh:return o%3==0;case $h:return(t+o)%3==0;case Qh:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case ec:return t*o%2+t*o%3==0;case tc:return(t*o%2+t*o%3)%2==0;case oc:return(t*o%3+(t+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Gh([1],0),o=0;o<e;o++)t=t.multiply(new Gh([1,ic.gexp(o)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case Xh.MODE_NUMBER:return 10;case Xh.MODE_ALPHA_NUM:return 9;case Xh.MODE_8BIT_BYTE:case Xh.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case Xh.MODE_NUMBER:return 12;case Xh.MODE_ALPHA_NUM:return 11;case Xh.MODE_8BIT_BYTE:return 16;case Xh.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case Xh.MODE_NUMBER:return 14;case Xh.MODE_ALPHA_NUM:return 13;case Xh.MODE_8BIT_BYTE:return 16;case Xh.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),o=0,a=0;a<t;a++)for(var i=0;i<t;i++){for(var n=0,r=e.isDark(a,i),l=-1;l<=1;l++)if(!(a+l<0||t<=a+l))for(var s=-1;s<=1;s++)i+s<0||t<=i+s||0==l&&0==s||r==e.isDark(a+l,i+s)&&n++;5<n&&(o+=3+n-5)}for(a=0;a<t-1;a++)for(i=0;i<t-1;i++){var u=0;e.isDark(a,i)&&u++,e.isDark(a+1,i)&&u++,e.isDark(a,i+1)&&u++,e.isDark(a+1,i+1)&&u++,0!=u&&4!=u||(o+=3)}for(a=0;a<t;a++)for(i=0;i<t-6;i++)e.isDark(a,i)&&!e.isDark(a,i+1)&&e.isDark(a,i+2)&&e.isDark(a,i+3)&&e.isDark(a,i+4)&&!e.isDark(a,i+5)&&e.isDark(a,i+6)&&(o+=40);for(i=0;i<t;i++)for(a=0;a<t-6;a++)e.isDark(a,i)&&!e.isDark(a+1,i)&&e.isDark(a+2,i)&&e.isDark(a+3,i)&&e.isDark(a+4,i)&&!e.isDark(a+5,i)&&e.isDark(a+6,i)&&(o+=40);for(var h=0,i=0;i<t;i++)for(a=0;a<t;a++)e.isDark(a,i)&&h++;return o+=10*(Math.abs(100*h/t/t-50)/5)}},ic={glog:function(e){if(e<1)throw new Error("glog("+e+")");return ic.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;256<=e;)e-=255;return ic.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},nc=0;nc<8;nc++)ic.EXP_TABLE[nc]=1<<nc;for(nc=8;nc<256;nc++)ic.EXP_TABLE[nc]=ic.EXP_TABLE[nc-4]^ic.EXP_TABLE[nc-5]^ic.EXP_TABLE[nc-6]^ic.EXP_TABLE[nc-8];for(nc=0;nc<255;nc++)ic.LOG_TABLE[ic.EXP_TABLE[nc]]=nc;Gh.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),o=0;o<this.getLength();o++)for(var a=0;a<e.getLength();a++)t[o+a]^=ic.gexp(ic.glog(this.get(o))+ic.glog(e.get(a)));return new Gh(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=ic.glog(this.get(0))-ic.glog(e.get(0)),o=new Array(this.getLength()),a=0;a<this.getLength();a++)o[a]=this.get(a);for(a=0;a<e.getLength();a++)o[a]^=ic.gexp(ic.glog(e.get(a))+t);return new Gh(o,0).mod(e)}},Uh.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],Uh.getRSBlocks=function(e,t){var o=Uh.getRsBlockTable(e,t);if(null==o)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var a=o.length/3,i=[],n=0;n<a;n++)for(var r=o[3*n+0],l=o[3*n+1],s=o[3*n+2],u=0;u<r;u++)i.push(new Uh(l,s));return i},Uh.getRsBlockTable=function(e,t){switch(t){case Zh.L:return Uh.RS_BLOCK_TABLE[4*(e-1)+0];case Zh.M:return Uh.RS_BLOCK_TABLE[4*(e-1)+1];case Zh.Q:return Uh.RS_BLOCK_TABLE[4*(e-1)+2];case Zh.H:return Uh.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},Yh.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var o=0;o<t;o++)this.putBit(1==(e>>>t-o-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var rc=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function lc(e,t){for(var o,a=1,i=(e=e,(o=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(o.length!=e?3:0)),n=0,r=rc.length;n<=r;n++){var l=0;switch(t){case Zh.L:l=rc[n][0];break;case Zh.M:l=rc[n][1];break;case Zh.Q:l=rc[n][2];break;case Zh.H:l=rc[n][3]}if(i<=l)break;a++}if(a>rc.length)throw new Error("Too long data");return a}var sc=function(){d(a,zh);var o=g(a);function a(e){var t;return c(this,a),(t=o.call(this,lc(e,Zh.H),Zh.H)).addData(e),t.make(),t}return s(a)}(),uc={};var hc=function(){d(i,ht.Data);var a=g(i);function i(e,t){var o;return c(this,i),(o=a.call(this)).init(e,t),o}return s(i,[{key:"init",value:function(e,t){var e=e.getAttrObject(),o=e.dataSource,a=e.color,e=e.total,o=o[t],i=o.name,n=o.value,n=void 0===n?0:n,o=o.color;this.a({name:void 0===i?"":i,value:n,percent:n/e,color:void 0===o?a[t]:o})}},{key:"initNodeRect",value:function(e){var t=this.getDataModel();this._initItemRect(t,e),this._initDragIconRect(t)}},{key:"_initItemRect",value:function(e,t){var e=e.getAttrObject(),o=e.rect,a=e.barWidth,i=e.padding,e=e.totalWidth,n=this.getAttrObject().percent,r=o.x,l=o.y,o=o.height,t=t?t.a("itemRect"):null;this.a("itemRect",{x:t?t.x+t.width:r+i,y:l+(o-a)/2,width:n*e,height:a})}},{key:"_initDragIconRect",value:function(e){var e=e.getAttrObject(),t=e.rect,o=e.sliderWidth,a=e.sliderHeight,i=e.sliderOffsetX,e=e.sliderOffsetY,n=this.getAttrObject().itemRect,r=t.y,t=t.height,l=n.x,n=n.width;this.a("dragIconRect",{x:l+n-o/2+i,y:r+(t-a)/2+e,width:o,height:a})}}]),i}(),cc=function(){d(t,ht.DataModel);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"init",value:function(){for(var e=this.a("dataSource"),t=0,o=e.length;t<o;t++){var a,i,n=e[t];n&&(a=n._uuid,this.tagMap[a]&&(a=tr()),(i=this.getDataByTag(a))?i.init(this,t):(n._uuid=a=void 0===a?tr():a,(i=new hc(this,t)).setTag(a),this.add(i)),i.a("index")===t&&!this.hierarchyChanged||(this.moveTo(i,t),this.hierarchyChanged=!0),i.a({dataInfo:n,index:t}),this.tagMap[a]=!0)}for(var r=this.getDatas().toArray(),l=r.length-1;0<=l;l--)this.tagMap[r[l].getTag()]||this.remove(r[l])}},{key:"reset",value:function(e,t){var o=e.dataSource,a=e.total,i=e.padding;this.a(e),this.a({rect:t,totalWidth:t.width-2*i,leftValue:a-zi(o).call(o,function(e,t){return e+(t.value||0)},0)}),this.tagMap={},this.hierarchyChanged=!1}}]),t}(),n=ht.Default,dc=n.drawRoundRect,gc=n.getImage,fc=n.drawStretchImage;var pc=Math.max;function vc(e,t,o,a,i,n,r){a&&(a.editing=!1,delete a.dom),i&&(a=ri(o.value),We(r)||(a=Math.min(a,r)),We(n)||(a=Math.max(a,n)),e.a(i,isNaN(a)?o.value:a)),e.iv(),yn(o)}var yc=function(){function e(){c(this,e)}return s(e,[{key:"onClick",value:function(e,t,o,a,i,n){}},{key:"onDoubleClick",value:function(e,t,o,a,i,n){}},{key:"onDown",value:function(e,t,o,a,i,n){}},{key:"onUp",value:function(e,t,o,a,i,n){}},{key:"onMove",value:function(e,t,o,a,i,n){}},{key:"onEnter",value:function(e,t,o,a,i,n){}},{key:"onHover",value:function(e,t,o,a,i,n){}},{key:"onLeave",value:function(e,t,o,a,i,n){}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){}},{key:"onDrag",value:function(e,t,o,a,i,n){}},{key:"onEndDrag",value:function(e,t,o,a,i,n){}},{key:"onScroll",value:function(e,t,o,a,i,n){}}]),e}(),t=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onLeave",value:function(e,t,o,a,i,n){E(o,"default")}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.rects,s=r.dataSource,u=r.handleHover,l=function(e,t){for(var o=e.length,a=0;a<o;a++)if(Q(e[a],t))return a}(l||[],H(o,t,this,a,e));E(o,Fe(l)?"pointer":"default"),r.hitIndex=l,Fe(l)&&u&&u(l,s[l],t,o)}},{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.hitIndex,s=r.dataSource,r=r.handleClick;!Fe(l)||r&&r(l,s[l],t,o)||(!1===(r=s[l]).visible?r.visible=!0:r.visible=!1,t.iv())}}]),t}(),B=new(function(){function e(){c(this,e),(this._container=document.createElement("div")).className="ht-vector-tooltip"}return s(e,[{key:"show",value:function(e,t,o){if("number"==typeof e&&(e+=""),"string"==typeof e)this._container.innerHTML=e;else if(e.parentNode!==this._container){for(var a=this._container.children,i=a.length-1;0<=i;i--)yn(a[i]);this._container.innerText="",this._container.appendChild(e)}this._container.parentNode||xn(this._container),this.update(t,o)}},{key:"update",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=t.offsetX,o=void 0===o?8:o,t=t.offsetY,t=void 0===t?8:t,a=sr(this._container),i=ht.Default.getWindowInfo(),n=this._container.style,r=mn(e),l=r.x+o,s=r.y+t;n.pointerEvents="none",Ri(e)?(l=r.x-a.width-o,s=r.y-a.height-t):(l=Math.max(0,l),s=Math.max(0,s),l+a.width>i.width&&(l=i.width-a.width),s+a.height>i.height&&(s=i.height-a.height)),this._container.style.left=l+"px",this._container.style.top=s+"px"}},{key:"hide",value:function(){yn(this._container)}}]),e}()),xc=ht.Default.containsPoint,k=function(){d(h,yc);var e=g(h);function h(){return c(this,h),e.call(this)}return s(h,[{key:"onUp",value:function(e,t,o,a,i,n){}},{key:"onMove",value:function(e,t,o,a,i,n){var r,a=H(o,t,this,a,e),t=Ye(o,t,this),l=t.rectInfo,s=t.dragSliderDataModel,t=t.dragInfo,s=s.getAttrObject(),u=s.toolTipFormat,s=s.showToolTip,a=h.getLpInDragIconsRectInfo(a,l.dragIconsRect).dragSliderData;(a=void 0===a&&t?t.dragNode:a)?(E(o,"ew-resize"),s&&(t=(l=a.getAttrObject()).name,a=l.value,l=l.percent,r="名称:"+t+"<br>数值:"+a+"<br>百分比:"+Math.floor(100*l)/100,B.show(u?u(t,a,l):r,e))):(E(o,"default"),s&&B.hide())}},{key:"onEnter",value:function(e,t,o,a,i,n){}},{key:"onLeave",value:function(e,t,o,a,i,n){B.hide()}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.rectInfo.dragIconsRect,t=h.getLpInDragIconsRectInfo(a,o),r=t.dragSliderData,t=t.index;r&&(e.dragInfo={dragNode:r,dragNodeStartValue:r.a("value"),dragStartX:a.x},r=o[t+1])&&(e.dragInfo.dragNextNode=r.dragSliderData,e.dragInfo.dragNextNodeStartValue=r.dragSliderData.a("value"))}},{key:"onDrag",value:function(e,o,a,t,i,n){var r,l,s,u,h,c,d,g,f,p,v=H(a,o,this,t,e),y=Ye(a,o,this),t=y.dragSliderDataModel,e=y.dragInfo;!y._dragSliderTimer&&t&&e&&(r=e.dragNode,l=e.dragNodeStartValue,s=e.dragStartX,u=e.dragNextNode,h=e.dragNextNodeStartValue,e=t.getAttrObject(),c=e.total,d=e.totalWidth,g=e.step,t=e.leftValue,f=e.onChange,p=h||t,y._dragSliderTimer=Wa(function(){var e=(v.x-s)/d,e=c*e,t=e%g,e=Math.floor(e/g)*g+(g/2<=t?g:0);0<=e+l&&e<=p&&(r.a("dataInfo").value=l+e,u&&(u.a("dataInfo").value=h-e),"function"==typeof f&&(t=[r.a("dataInfo")],u&&t.push(u.a("dataInfo")),f(t,o,a)),o.iv()),delete y._dragSliderTimer},10))}},{key:"onEndDrag",value:function(e,t,o,a,i,n){o=Ye(o,t,this);o._dragSliderTimer&&(clearInterval(o._dragSliderTimer),delete o._dragSliderTimer),delete o.dragInfo}}],[{key:"getLpInDragIconsRectInfo",value:function(e,t){for(var o=t.length-1;0<=o;o--){var a=t[o],i=a.dragSliderData,a=a.dragIconRect;if(xc(a,e))return{dragSliderData:i,dragIconRect:a,index:o}}return{}}}]),h}(),La=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onEnter",value:function(e,t,o,a,i,n){t=Ye(o,t,this);t.defaultCursor=o.getView().style.cursor,t.disabled?E(o,"not-allowed"):E(o,"text")}},{key:"onLeave",value:function(e,t,o,a,i,n){t=Ye(o,t,this);E(o,t.defaultCursor)}},{key:"onDown",value:function(e,i,n,t,o,a){var r,l,s,u,h,c,d,g,f,p,v,y,x,m,b,w,k,C,T,V,D,I,S,L=Ye(n,i,this);L.disabled||L.editing||(r=L.font,l=L.value,s=L.textAlign,u=L.maxLength,h=L.textColor,c=L.wordBreak,d=L.selectTextOnFocus,V=L.padding,g=L.onKeyDown,f=L.onKeyUp,p=L.onChange,v=L.lineHeight,y=L.onFocus,x=L.onBlur,b=(m=_i("textarea")).style,w=X(this,"value",i),k=(V=je(Pi(V),4))[0],C=V[1],T=V[2],V=V[3],b.color=h,b.font=r,b.paddingTop=k+"px",b.paddingRight=C+"px",b.paddingBottom=T+"px",b.paddingLeft=2+V+"px",b.textAlign=s,b.resize="none",b.overflow="hidden",b.lineHeight=v+"px",b.wordBreak=c?"break-all":"keep-word",m.value=l||"",u&&m.setAttribute("maxlength",u),n.appendHTML(m),(D=Wn(n,i,this,e))&&Mi(n,m,D),L.editing=!0,L.editingValue=l,L.inputDOM=m,i.iv(),I=function(e){Mi(n,m,D)},L.handleWindowClick=S=function e(t){var o=sr(m),a=ht.Default.getClientPoint(t);ht.Default.containsPoint(o,a)||(t.preventDefault(),Fn(i,0,m,L,w),n.ump(I),n.getView().removeEventListener("mousedown",e),n.getView().removeEventListener("touchstart",e))},m.addEventListener("mousedown",function(e){return e.stopPropagation()}),m.addEventListener("touchstart",function(e){return e.stopPropagation()}),Wa(function(){(d||y)&&m.addEventListener("focus",function(e){d&&m.select(),y&&y(e,i,n)}),m.focus(),n.mp(I);var t=null;m.addEventListener("keydown",function(e){t&&clearTimeout(t),t=Wa(function(){L.editingValue=m.value,i.a(w,m.value)},10),9===e.keyCode&&(Fn(i,0,m,L,w),n.getView().removeEventListener("mousedown",S),n.getView().removeEventListener("touchstart",S)),g&&g(e,i,n)}),(f||p)&&(m.addEventListener("keyup",function(e){f&&f(e,i,n),vn&&p&&p(m.value,i,n)}),vn||m.addEventListener("input",function(e){p&&p(m.value,i,n)})),x&&m.addEventListener("blur",function(e){x(e,i,n)}),n.getView().addEventListener("mousedown",S),n.getView().addEventListener("touchstart",S)},1))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=X(this,"value",t);r.editing&&r.inputDOM&&(o&&o.isMovable&&!1===o.isMovable(t)||(Fn(t,0,r.inputDOM,r,l),o.getView().removeEventListener("mousedown",r.handleWindowClick),o.getView().removeEventListener("touchstart",r.handleWindowClick)))}}]),t}(),Da=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onEnter",value:function(e,t,o,a,i,n){t=Ye(o,t,this);t.defaultCursor=o.getView().style.cursor,t.disabled?E(o,"not-allowed"):E(o,"text")}},{key:"onLeave",value:function(e,t,o,a,i,n){t=Ye(o,t,this);E(o,t.defaultCursor)}},{key:"onDown",value:function(e,i,n,t,o,a){var r,l,s,u,h,c,d,g,f,p,v,y,x,m,b,w,k,C,T,V,D,I,S,L,B=Ye(n,i,this);B.disabled||B.editing||(r=B.font,l=B.value,s=B.textAlign,u=B.maxLength,b=B.textColor,h=B.inputType,c=B.enterEndInputable,D=B.padding,d=B.onKeyDown,g=B.onKeyUp,f=B.onChange,p=B.selectTextOnFocus,v=B.onBlur,y=B.onFocus,x=i.getAnchorRect(),m=_i(),b=b||Ui.textColor,w=m.style,k=X(this,"value",i),C=(D=je(Pi(D),4))[0],T=D[1],V=D[2],D=D[3],h&&(m.type=h),w.color=b,w.font=r,w.paddingTop=C+"px",w.paddingRight=T+"px",w.paddingBottom=V+"px",w.paddingLeft=2+D+"px",w.lineHeight=x.height+"px",w.textAlign=s,m.value=l||"",m.spellcheck=!1,u&&m.setAttribute("maxlength",u),n.appendHTML(m),(I=Wn(n,i,this,e))&&Mi(n,m,I),B.editing=!0,B.editingValue=l,B.inputDOM=m,i.iv(),S=function(e){Mi(n,m,I)},L=function e(t){var o=sr(m),a=ht.Default.getClientPoint(t);ht.Default.containsPoint(o,a)||(t.preventDefault(),Fn(i,0,m,B,k),n.ump(S),n.getView().removeEventListener("mousedown",e),n.getView().removeEventListener("touchstart",e))},m.addEventListener("mousedown",function(e){return e.stopPropagation()}),m.addEventListener("touchstart",function(e){return e.stopPropagation()}),B.handleWindowClick=L,Wa(function(){(p||y)&&m.addEventListener("focus",function(e){p&&m.select(),y&&y(e,i,n)}),m.focus(),n.mp(S);var t=null;m.addEventListener("keydown",function(e){t&&clearTimeout(t),t=Wa(function(){B.editingValue=m.value,i.a(k,m.value)},10),(9===e.keyCode||c&&ht.Default.isEnter(e))&&(Fn(i,0,m,B,k),n.getView().removeEventListener("mousedown",L),n.getView().removeEventListener("touchstart",L)),d&&d(e,i,n)}),g&&m.addEventListener("keyup",function(e){g(e,i,n)}),f&&m.addEventListener("input",function(e){f(m.value,i,n)}),v&&m.addEventListener("blur",function(e){v(e,i,n)}),n.getView().addEventListener("mousedown",L),n.getView().addEventListener("touchstart",L)},1))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=X(this,"value",t);r.editing&&r.inputDOM&&(o&&o.isMovable&&!1===o.isMovable(t)||(Fn(t,0,r.inputDOM,r,l),o.getView().removeEventListener("mousedown",r.handleWindowClick),o.getView().removeEventListener("touchstart",r.handleWindowClick)))}}]),t}(),mc=ht.Default.containsPoint,$=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onEnter",value:function(e,t,o,a,i,n){t=Ye(o,t,this);t.defaultCursor=o.getView().style.cursor,t.disabled?E(o,"not-allowed"):E(o,"text")}},{key:"onLeave",value:function(e,t,o,a,i,n){t=Ye(o,t,this);E(o,t.defaultCursor)}},{key:"onDown",value:function(e,i,n,t,o,a){var r,l,s,u,h,c,d,g,f,p,v,y,x,m,b,w=Ye(n,i,this),k=Wn(n,i,this,e),C=w.buttonRects,T=w.onKeyDown,V=w.onKeyUp,D=w.onChange,I=w.min,S=w.max,L=w.onBlur,B=w.onFocus,t={x:t.x+k.rect.x,y:t.y+k.rect.y},k=C&&(mc(C[0],t)||mc(C[1],t));w.disabled||(w.editing||k?k&&(k=w.step,r=X(this,"value",i))&&(c=w.dom&&w.dom.value||i.a(r)||I||0,mc(C[0],t)?(y=function(e,t){var o,a,i,n;try{o=e.toString().split(".")[1].length}catch(e){o=0}try{a=t.toString().split(".")[1].length}catch(e){a=0}return n=Math.abs(o-a),i=Math.pow(10,Math.max(o,a)),t=0<n?(n=Math.pow(10,n),a<o?(e=Number(e.toString().replace(".","")),Number(t.toString().replace(".",""))*n):(e=Number(e.toString().replace(".",""))*n,Number(t.toString().replace(".","")))):(e=Number(e.toString().replace(".","")),Number(t.toString().replace(".",""))),(e+t)/i}(ri(c),k),We(S)||(y=Math.min(y,S))):(y=function(e,t){var o,a;try{o=e.toString().split(".")[1].length}catch(e){o=0}try{a=t.toString().split(".")[1].length}catch(e){a=0}return((e*(e=Math.pow(10,Math.max(o,a)))-t*e)/e).toFixed(a<=o?o:a)}(ri(c),k),We(I)||(y=Math.max(y,I))),w.editing?(w.editingValue=w.dom.value=y,i.iv()):i.a(r,y),D)&&c!==y&&D(y,i,n):(C=w.font,t=w.value,k=w.textAlign,r=w.maxLength,c=w.textColor,l=w.enterEndInputable,y=w.padding,s=w.selectTextOnFocus,u=i.getAnchorRect(),h=_i(),c=c||Ui.textColor,d=h.style,g=X(this,"value",i),f=(y=je(Pi(y),4))[0],p=y[1],v=y[2],y=y[3],d.color=c,d.font=C,d.paddingTop=f+"px",d.paddingRight=p+"px",d.paddingBottom=v+"px",d.paddingLeft=2+y+"px",d.lineHeight=u.height+"px",d.textAlign=k,h.value=We(t)?"":t,h.spellcheck=!1,r&&h.setAttribute("maxlength",r),n.appendHTML(h),(x=Wn(n,i,this,e))&&Mi(n,h,x),w.editing=!0,w.editingValue=t,w.dom=h,i.iv(),m=function(e){Mi(n,h,x)},w.handleWindowClick=b=function e(t){var o=sr(h),a=ht.Default.getClientPoint(t);ht.Default.containsPoint(o,a)||(t.preventDefault(),vc(i,0,h,w,g,I,S),n.ump(m),n.getView().removeEventListener("mousedown",e),n.getView().removeEventListener("touchstart",e))},h.addEventListener("mousedown",function(e){return e.stopPropagation()}),h.addEventListener("touchstart",function(e){return e.stopPropagation()}),Wa(function(){(s||B)&&h.addEventListener("focus",function(e){s&&h.select(),B&&B(e,i,n)}),h.focus(),n.mp(m);var t=null;h.addEventListener("keydown",function(e){t&&clearTimeout(t),t=Wa(function(){var e;w.editingValue=h.value,g&&(e=ri(h.value),We(S)||(e=Math.min(e,S)),We(I)||(e=Math.max(e,I)),i.a(g,e))},10),(9===e.keyCode||l&&ht.Default.isEnter(e))&&(vc(i,0,h,w,g,I,S),n.getView().removeEventListener("mousedown",b),n.getView().removeEventListener("touchstart",b)),T&&T(e,i,n)}),h.addEventListener("keyup",function(e){V&&V(e,i,n),D&&D(ri(h.value),i,n)}),h.addEventListener("input",function(e){e.target.value=e.target.value.replace(/[^\d\.{1}]/g,"")}),L&&h.addEventListener("blur",function(e){L(e,i,n)}),n.getView().addEventListener("mousedown",b),n.getView().addEventListener("touchstart",b)},1)))}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),t=Wn(o,t,this,e),e=r.buttonRects,a={x:a.x+t.rect.x,y:a.y+t.rect.y},t="text";r.disabled?t="not-allowed":e&&(ht.Default.containsPoint(e[0],a)||ht.Default.containsPoint(e[1],a))&&(t="pointer"),E(o,t),r.dom&&(r.dom.style.cursor=t)}},{key:"onDrag",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=X(this,"value",t);r.editing&&r.dom&&(o&&o.isMovable&&!1===o.isMovable(t)||(vc(t,0,r.dom,r,l),o.getView().removeEventListener("mousedown",r.handleWindowClick),o.getView().removeEventListener("touchstart",r.handleWindowClick)))}}]),t}(),bc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){o=Ye(o,t,this);o.disabled||(o.pressed=!0,t.iv())}},{key:"onEnter",value:function(e,t,o,a,i,n){var r=Ye(o,t,this);r.defaultCursor=o.getView().style.cursor,r.disabled?E(o,"not-allowed"):E(o,"pointer"),r.disabled||(r.hover=!0,t.iv())}},{key:"onLeave",value:function(e,t,o,a,i,n){var r=Ye(o,t,this);E(o,r.defaultCursor||"default"),delete r.defaultCursor,r.hover=!1,t.iv()}}]),t}(),$u=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.onClick;r.disabled||(r.pressed=!1,t.iv(),l&&0<a.x&&a.x<i&&0<a.y&&a.y<n&&l(e,t,o))}}]),t}(),su=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l,s=Ye(o,t,this),u=s.disabled,h=(s.pressed,X(this,"checked",t)),c=X(this,"group",t);u||(delete s.pressed,t.iv(),u=s.value,r=s.onChange,l=s.group,!t.a(h)&&0<a.x&&a.x<i&&0<a.y&&a.y<n&&(s=t.a(h),o&&o.dm()&&!s&&l&&o.dm().each(function(e){l===e.a(c)&&e.a(h,!1)}),t.a(h,!0),r)&&r(void 0===u||u,t,o))}}]),t}(),o=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d=Ye(o,t,this);d.disabled||(delete d.pressed,r=d.value,l=d.onChange,s=d.group,d.checked,u=gr(o,t).vectorInfos,h=[],ze(u).call(u,function(e){e.__inputType===qi&&e.group===s&&(e.checked&&(c=e.value),h.push(e))}),c!==r&&(ze(h).call(h,function(e){e.checked=!1}),d.checked=!0,l)&&l(c,r,t,o),t.iv())}}]),t}(),n=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l,s=Ye(o,t,this),u=s.disabled,h=s.pressed,c=X(this,"checked",t),d=X(this,"group",t),g=X(this,"value",t);u||(t.a(h,!1),t.iv(),s.value,r=s.group,u=s.onChange,0<a.x&&a.x<i&&0<a.y&&a.y<n&&(h=t.a(c),t.a(c,!h),u)&&(r?(l=[],o.dm().each(function(e){r===e.a(d)&&e.a(c)&&l.push(e.a(g))}),u(l,t,o)):u(!h,t,o)))}}]),t}(),wc=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l=Ye(o,t,this);l.disabled||(l.pressed=!1,t.iv(),r=X(this,"value",t),0<a.x&&a.x<i&&0<a.y&&a.y<n&&Sr(t,o,l,r))}}]),t}(),kc=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l=Ye(o,t,this);l.disabled||(r=X(this,"value",t),0<a.x&&a.x<i&&0<a.y&&a.y<n&&Lr(t,o,l,"a@"+r))}}]),t}(),Cc=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l,s=Ye(o,t,this);s.disabled||(r=X(this,"value",t),0<a.x&&a.x<i&&0<a.y&&a.y<n&&(l=t,i=o,a="a@"+r,t=(n=s).dropDown,l.getFormat=function(){return l.a(Gi.FORMAT)},t?(t.dateType=n.dateType,t.dropDown&&t.dropDown.destroy(),t.timePickerDOM&&t.timePickerDOM.remove(),delete n.dropDown):((t=new Ur(l,i,n,a)).dateType=n.dateType,(n.dropDown=t).open(),i=n.dropDownStyle||{},a="flex-end","left"===n.buttonAlign?a="flex-start":"center"===n.buttonAlign?a="center":"right"===n.buttonAlign&&(a="flex-end"),i.buttonAlign=a,i.buttonGap=n.buttonGap+"px",(a=t.replaceStr(i||{}))!==t.dropDown.defaultHostCss&&(t.dropDown.ui.container.nextSibling.remove(),t.dropDown.options.css=":host{"+a+"}"+jr,t.dropDown.handleCSS()))))}}]),t}(),Tc={hoverDarker:5,activeDarker:11,baseColor:"#3399ff",baseColor2:"#737373",hoverBackground:"#eeeeee",emptyColor:"#ffffff",fontSize:12,fontFamily:"arial, sans-serif",font:"12px arial sans-serif",disabledColor:"#ebebeb",disabledBackground:"#fafafa",inputTextColor:"#111111",placeholderColor:"#737373"},Vc=function(){d(a,ht.graph.GraphView);var o=g(a);function a(e){var t;return c(this,a),(e=o.call(this,e)).addBottomPainter(Hr(t=e.drawBottomPainter).call(t,y(e))),e.setAutoHideScrollBar(!1),e._nodes=[],e.getView().style.transition="all 0.2s",window.ll=y(e),e}return s(a,[{key:"getContentRect",value:function(){var e=Yn(x(f(a.prototype),"getContentRect",this).call(this));return e.width+=8,e}},{key:"adjustTranslateX",value:function(e){var t,o,a;return 0<=e?0:(o=this.getContentRect(),a=(t=this.getWidth())-(o=o.width*this.getZoom()),t<o&&e<a?a:o<=t?0:e)}},{key:"isMovable",value:function(){return!1}},{key:"adjustZoom",value:function(){return 1}},{key:"adjustTranslateY",value:function(e){var t=this,o=this.dm().toDatas(function(e){return t.isVisible(e)}),o=this.getHeight()-o.size()*(this._rowHeight*this.getZoom());return 0<=e||0<=o?0:o<e?e:o}},{key:"handleScroll",value:function(e){var t=pn?-e.detail:e.wheelDelta/40;!pn&&e.wheelDelta===e.wheelDeltaX||this.translate(0,t)}},{key:"onPropertyChanged",value:function(e){x(f(a.prototype),"onPropertyChanged",this).call(this,e);e=e.property;"dataModel"!==e&&"fileSize"!==e||this.doLayoutLater()}},{key:"doLayoutLater",value:function(){this._doLayoutLater||(this._doLayoutLater=!0,ht.Default.callLater(this.doLayout,this))}},{key:"onValidated",value:function(){this._lastWidth!==this.getWidth()&&this.doLayoutLater()}},{key:"isVisible",value:function(e){return!1!==e.s("2d.visible")}},{key:"doLayout",value:function(){var t=this,o=(this._doLayoutLater=!1,this._lastWidth=this.getWidth(),this._iconHeight),a=this._iconWidth,i=this._rowHeight,n=this._nodes=[],r=(this.dm().getDatas().each(function(e){t.isVisible(e)&&n.push(e)}),this._lastHeight=this.getHeight(),.5*i);ze(n).call(n,function(e,t){e.setSize(a,o),e.p(8,r),r+=i})}},{key:"drawBottomPainter",value:function(t){var e,o,a,i,n=this,r=this._rowHeight,l=Math.max(this.getContentRect().width,this.getWidth()/this.getZoom()),s=this._hoverData,u=this._dropBorderColor,h=this._dropBorderWidth;this.dm().toDatas(this.isVisible,this).each(function(e){t.beginPath(),t.rect(0,e.p().y-r/2,l,r),n.isSelected(e)?(t.fillStyle=n.getActiveColor()||Tc.baseColor,Ue(t).call(t)):e===s&&(t.fillStyle=n.getHoverBackground()||Tc.hoverBackground,Ue(t).call(t)),u&&h&&(e=e.p().y+r/2-.5*h,t.beginPath(),t.moveTo(0,e),t.lineTo(l,e),t.strokeStyle=u,t.lineWidth=h,t.stroke())}),u&&h&&(e=(i=this.getViewRect()).x,o=i.y,a=i.width,i=i.height,t.strokeStyle=u,t.lineWidth=h,t.strokeRect(e+.5*h,o+.5*h,a-h,i-h))}},{key:"getDataAt",value:function(e){e=e instanceof UIEvent?this.lp(e):e,e=Math.floor(e.y/this._rowHeight);return this._nodes[e]}},{key:"handleSelectionChange",value:function(e){x(f(a.prototype),"handleSelectionChange",this).call(this,e),this.redraw()}},{key:"getSelectWidth",value:function(){return 0}},{key:"isOnScrollBar",value:function(e){var t=this.getViewRect(),o=this.getScrollRect(),a=this.getScrollBarSize(),e=this.lp(e);return ht.Default.isTouchable&&(a*=1.5),o.height>t.height&&e.x-t.x>t.width-a}}]),a}();function Dc(e){return e.touches?e.touches[0]||e.changedTouches[0]:e}Pn(Vc,{ms_ac:["rowHeight","iconWidth","iconHeight","activeColor","hoverBackground","dropBorderWidth","dropBorderColor"],_rowHeight:26,_iconWidth:20,_iconHeight:20});var Ic=function(){d(h,Vc);var u=g(h);function h(e,t,o,a,i){c(this,h),(n=u.call(this)).setSelectionMode(i?Xi:Zi),n._master=e,n._masterGraph=t,n._vectorInfo=o,n._valueName=a,n._transition=!1,n._documentClickHandler=Hr(i=n.documentClickHandler).call(i,y(n)),n._previousValue=null,n.dm().setAutoAdjustIndex(!1),n.setInteractors([new ht.graph.ScrollBarInteractor(y(n)),new ht.graph.MoveInteractor(y(n)),new ht.graph.DefaultInteractor(y(n)),new ht.graph.TouchInteractor(y(n),{selectable:!1})]);var n,r=n.getView().style,l=(r.height=0,r.boxShadow="rgba(0, 0, 0, 0.3) 0px 8px 22px",Oi(r,"transition","all 0.3s esse-in"),!1),s=null;return n.mi(function(e){var t=n._searchInputBox;"onDown"===e.kind?t&&ht.Default.containedInView(e.event,t)||(e.event.preventDefault(),e.event.stopPropagation(),s={x:Dc(e.event).clientX,y:Dc(e.event).clientY}):"onDrag"===e.kind?s&&2<=ar(s,{x:Dc(e.event).clientX,y:Dc(e.event).clientY})&&(l=!0):"onEndDrag"===e.kind?Wa(function(){l=!1,s=null},1):l||"onUp"!==e.kind||"data"!==e.type||t&&ht.Default.containedInView(e.event,t)||n._transition||e.data.a("disable")||n.handleSelectData(e.data)}),n.sm().ms(function(e){n.dm().each(function(e){e instanceof ht.Text&&e.s("text.color",n.getLabelColor(e))})}),n.mp(function(e){"background"===e.property&&(r.background=e.newValue)}),n.getView().addEventListener("mousemove",function(e){var t=n._hoverData,e=n.getDataAt(e);e!==t&&(n._hoverData=e&&n.sm().contains(e)?null:e,n._hoverData instanceof ht.Text?n._hoverData.s("text.color",n.getLabelColor(n._hoverData)):n._hoverData&&n._hoverData.s("lable.color",n.getLabelColor(e)),t instanceof ht.Text?t.s("text.color",n.getLabelColor(t)):t&&t.s("lable.color",n.getLabelColor(t)),n.redraw(),e)&&e.a("disable")&&(n._hoverData=null),e&&e.a("disable")?n.getView().style.cursor="not-allowed":n.getView().style.cursor=null}),n._initStyleByMaster(),n}return s(h,[{key:"handleScroll",value:function(e){var t=(this._vectorInfo||{}).scrollSpeed,t=void 0===t?1:t,t=pn?-e.detail*t:e.wheelDelta/40*t;!pn&&e.wheelDelta===e.wheelDeltaX||this.translate(0,t)}},{key:"_initStyleByMaster",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._vectorInfo;this.setIconHeight(e.dropIconWidth),this.setIconWidth(e.dropIconHeight),this.setRowHeight(e.dropRowHeight),this.setDropWidth(e.dropWidth),this.setBackground(e.dropBackground),this.setHoverBackground(e.dropHoverBackground),this.setActiveColor(e.dropActiveBackground),this.setDropLabelColor(e.dropLabelColor),this.setDropActiveLabelColor(e.dropActiveLabelColor),this.setDropLabelFont(e.dropLabelFont),this.setMaxHeight(e.dropMaxHeight),this.setDropBorderColor(e.dropBorderColor),this.setDropBorderWidth(e.dropBorderWidth),this._dropLabelHoverColor=e.dropLabelHoverColor,this.getView().style.borderRadius=e.dropBoxBorderRadius+"px",this.getView().style.border=(e.dropBoxBorderWidth||0)+"px "+(e.dropBoxBorderType||"")+" "+(e.dropBoxBorderColor||"")}},{key:"handleSelectData",value:function(e){var t=this._master,o=this._vectorInfo,a=o.onChange,i=this.sm().getSelectionMode(),n=o.dataSource;if(n&&0!==n.length&&e){n=e.a("value");if(i===Zi)this.sm().ss(e),t.a(this._valueName,n),t.a(Gi.LABEL,this.__getLabel()),t.a(Gi.ICON,e.a("icon"));else if(this.sm().co(e)){this.sm().rs(e);var r=Me(r=this._previousValue).call(r,0),l=Oe(r).call(r,n);Ii(r).call(r,l,1),t.a(this._valueName,r),n=r}else{this.sm().as(e);l=this._previousValue,r=o.maxSelection,n=[n];if(l&&Oe(l).call(l,n[0])<0)n=Ee(l).call(l,n);else if(l)return;0<r&&n.length>r&&n.shift(),t.a(this._valueName,n)}a&&a(this._previousValue,n,t,this._masterGraph),this._previousValue=n,i!==Zi&&!this._vectorInfo.hideSelected||this.close()}}},{key:"setSelectionMode",value:function(e){Xi!==e&&Zi!==e||this.sm().setSelectionMode(e)}},{key:"getNodeValue",value:function(e){return e.a("value")||e.s("label")||e.s("text")}},{key:"getNodeLabel",value:function(e){return e.s("label")||e.s("text")||e.a("value")}},{key:"setData",value:function(e){var t,a=this,i=this.dm();i.clear(),e&&e.length&&(this._vectorInfo.searchInputVisible&&((t=new ht.Text).s("text",""),t.a("_isInputNode",!0),t.setX(8),t.setAnchorX(0),i.add(t)),ze(e).call(e,function(e){var t,o=Fe(e.label)?e.label:Fe(e.value)?e.value:"";e.icon?((t=new ht.Node).setImage(e.icon),t.s({interactive:!0,preventDefaultWhenInteractive:!1,pixelPerfect:!1,"image.stretch":"uniform",label:o,"label.position":20,"label.offset.x":4,"label.font":a.getDropLabelFont()})):(t=new ht.Text).s({interactive:!0,preventDefaultWhenInteractive:!1,text:o,pixelPerfect:!1,"text.color":e.disable?a._vectorInfo.textDisableColor:a.getLabelColor(t),"text.font":a.getDropLabelFont()}),t.setX(8),t.setAnchorX(0),t.a(e),i.add(t)}),this.setDropHeight(Math.min(this.getMaxHeight(),e.length*this.getRowHeight())))}},{key:"getValue",value:function(){var t,o=this,e=this.sm(),a=e.getSelection(),e=e.getSelectionMode();return Zi===e?0===a.size()?null:this.getNodeValue(a.get(0)):Xi===e?(t=[],a.each(function(e){t.push(o.getNodeValue(e))}),t):null}},{key:"__getLabel",value:function(){var t,o=this,e=this.sm(),a=e.getSelection(),e=e.getSelectionMode();return Zi===e?0===a.size()?null:this.getNodeLabel(a.get(0)):Xi===e?(t=[],a.each(function(e){t.push(o.getNodeLabel(e))}),t):null}},{key:"toggle",value:function(){this._transition||(this._opened?this.close():this.open())}},{key:"__scrollToIndex",value:function(e){this.dm().getDatas(),this.sm();var t=this.getMaxHeight(),o=this.getRowHeight(),a=this._masterGraph;t<e*o?this.ty((t-(e+1)*o)*a.getZoom()):this.ty(0),this.tx(0)}},{key:"open",value:function(){var o=this,e=this._master,t=this._masterGraph,a=this.getView().style,i=this.getDropWidth(),n=e.a(this._valueName),e=(this.sm().cs(),Fe(n)?Xn(n)?n.length&&ze(n).call(n,function(t){o.dm().each(function(e){e.a("value")===t&&o.sm().as(e)})}):this.dm().each(function(e,t){e.a("value")===n&&(o.sm().ss(e),o.__scrollToIndex(t))}):this.ty(0),this.dm().toDatas(function(e){return o.isVisible(e)}));this.setDropHeight(Math.min(this.getMaxHeight(),e.length*this.getRowHeight())),this._previousValue=n,this._vectorInfo.editing=!0,this._master.iv(),this.layoutByMaster(),this._vectorInfo.dropDownSyncZoom&&"ht.graph.GraphView"===t.getClassName()?(this.setWidth(i*t.getZoom()),this.setHeight(this.getDropHeight()*t.getZoom()),this.adjustZoom=function(e){return e},this.setZoom(t.getZoom(),null,this.getViewRect())):(this.setWidth(i),this.setHeight(this.getDropHeight()),this.setZoom(1,null,this.getViewRect())),Oi(a,"transform","scaleY(0)"),xn(this.getView()),this._transition=!0,this.registerCloseEvent(this._documentClickHandler),this.doLayout(),ht.Default.callLater(function(){Oi(a,"transform","scaleY(1)"),Wa(function(){o.redraw(),o.setOpened(!0),o._transition=!1},300)}),ur(this)}},{key:"syncPosition",value:function(e){"translateX"!==e.property&&"translateY"!==e.property&&"zoom"!==e.property||this.layoutByMaster()}},{key:"layoutByMaster",value:function(){this._master;var e=this._masterGraph,t=jn(this._vectorInfo.comp,this._master,this._masterGraph),o=ht.Default.getWindowInfo(),a=this.getView().style,i=this.getDropWidth(),n=this.getDropHeight(),r=this._vectorInfo,l=(this._vectorInfo.dropDownSyncZoom&&"ht.graph.GraphView"===e.getClassName()&&(i*=e.getZoom(),n*=e.getZoom()),Math.max(0,t.x)),s=t.y+t.height,u="50% 0";s+n>o.height&&s-t.height>n&&(s=s-n-t.height,u="50% 100%"),l+i>o.width&&(l=o.width-i),a.left=l+"px",a.top=s+"px",Oi(a,"transformOrigin",u),this._vectorInfo.searchInputVisible&&(this._addSearchInput(),n=this._rowHeight,this._vectorInfo.dropDownSyncZoom&&(n=this._rowHeight*e.getZoom()),this._searchInputBox.style.position="absolute",this._searchInputBox.style.width="100%",this._searchInputBox.style.height=n+"px",this._searchInputBox.style.background=r.dropBackground,this._searchInput.style.width="100%",this._searchInput.style.height="100%",ht.Default.callLater(function(){var e,t=this._vectorInfo.searchInputStyle||{};for(e in t)this._searchInput.style[e]=t[e]},this,null,10))}},{key:"onOpen",value:function(){}},{key:"close",value:function(){var e,t,o=this;this._transition||(t=(e=this.getView()).style,this._vectorInfo.editing=!1,this._master.iv(),this._transition=!0,this.unRegisterCloseEvent(this._documentClickHandler),Oi(t,"transform","scaleY(0)"),Wa(function(){yn(e),o._transition=!1,o.setOpened(!1)},301),hr(this),this._vectorInfo.searchInputVisible&&this._removeSearchInput())}},{key:"registerCloseEvent",value:function(e){var t=this._masterGraph.getView();document.addEventListener("touchstart",e),t.addEventListener("touchstart",e),document.addEventListener("mousedown",e),t.addEventListener("mousedown",e)}},{key:"unRegisterCloseEvent",value:function(e){var t=this._masterGraph.getView();document.removeEventListener("touchstart",e),t.removeEventListener("touchstart",e),document.removeEventListener("mousedown",e),t.removeEventListener("mousedown",e)}},{key:"_addSearchInput",value:function(){var t=this;this._searchInputBox=document.createElement("div"),this._searchInput=document.createElement("input"),this._searchInput.setAttribute("type","text"),this._searchInput.classList.add("ht-vector-search-input"),this._searchInputBox.appendChild(this._searchInput),this.getView().appendChild(this._searchInputBox),this._searchInputEvent=function(e){var o=t._searchInput.value;t.dm().each(function(e){var t;e.a("_isInputNode")||(""!==o?(t=e.a("label")||"",e.s("2d.visible",-1<Oe(t=String(t)).call(t,o))):e.s("2d.visible",!0))}),t.ty(0),t.doLayout(),t._hoverData&&delete t._hoverData,t.redraw()},this._searchInput.addEventListener("keyup",this._searchInputEvent)}},{key:"_removeSearchInput",value:function(){this._searchInput&&(this._searchInput.removeEventListener("keyup",this._searchInputEvent),this.getView().removeChild(this._searchInputBox),delete this._searchInputEvent,delete this._searchInput,delete this._searchInputBox)}},{key:"documentClickHandler",value:function(e){var t,o,a=this._master,i=this._masterGraph,a=jn(this._vectorInfo.comp,a,i);this._scrolling||ht.Default.containsPoint(a,ht.Default.getClientPoint(e))||this._searchInput&&(a=(i=this._searchInput.getBoundingClientRect()).x,t=i.y,o=i.width,i=i.height,ht.Default.containsPoint({x:a,y:t,width:o,height:i},ht.Default.getClientPoint(e)))||this.close()}},{key:"getLabelColor",value:function(e){var t=e===this._hoverData?this._dropLabelHoverColor:this.getDropLabelColor(),t=e.a("disable")?this._vectorInfo.textDisableColor:t;return this.sm().co(e)?this.getDropActiveLabelColor():t}},{key:"getScrollRect",value:function(){return x(f(h.prototype),"getScrollRect",this).call(this)}},{key:"isVisible",value:function(e){return this._vectorInfo.hideSelected?!this.sm().co(e):!1!==e.s("2d.visible")}}]),h}();function Sc(e,t,o,a,i){var n=o.dropDown;n||((n=new Ic(e,t,o,a,i)).getView().className="ht-vector-dropdown",o.dropDown=n,ur(n)),n._transition||(n.isOpened()||(n.setData(o.dataSource),n._initStyleByMaster(o)),n.toggle())}Pn(Ic,{ms_ac:["background","dropWidth","dropHeight","maxHeight","opened","dropLabelFont","dropLabelColor","dropActiveLabelColor"],_background:Tc.emptyColor,_dropWidth:200,_dropHeight:100,_maxHeight:400,_opened:!1,_dropLabelColor:Tc.inputTextColor});function Lc(e,t,o,a,i){var o=Ye(o,t,a),n=void 0===(t=o.rowLineWidth)?0:t,r=void 0===(a=o.columnLineWidth)?0:a,l=o.rowHeights,s=o.colWidths,t=o.headHeight,u=o.translateY,h=o.translateX,c=null,d=null;if(0<(u=Math.floor(i.y-u-t))&&l&&l.length){for(var c=0,g=0;c<l.length&&!(u<(g+=l[c]+n));c++);c===l.length&&(c=null)}if(0<(h=Math.floor(i.x-h))&&s&&s.length){for(var d=0,f=0;d<s.length&&!(h<(f+=s[d]+r));d++);d===s.length&&(d=null)}return{row:c,col:d}}function Bc(e,t,o,a,i){var n=t.max,r=t.min,l=t.step,s=t.value,o=(o.x-a.x)/a.width*(n-r)+r,a=t.onChange,t=X(t.comp,"value",e);o=Math.min(n,o),o=Math.max(r,o),l&&(o=o-(n=o%l)+(Math.abs(n)>l/2)*(n<0?-l:l)),e.a(t,o),a&&a(s,o,e,i)}function Rc(e,t,o,a,i,n){var r=t.max,l=t.min,s=t.step,o=(o.x-a.x)/a.width*(r-l)+l,u=(a=t.value)[0],h=a[1],c=X(t.comp,"value",e),d=t.onChange,l=(o=Math.min(r,o),o=Math.max(l,o),s&&(o=o-(r=o%s)+(Math.abs(r)>s/2)*(r<0?-s:s)),null);return l=t.dragging?(r=t.dragging)<=o?[r,o]:[o,r]:(s=Math.abs(u-o),Math.abs(h-o)<=s?[u,o]:[o,h]),n||e.a(c,l),d&&d(a,l,e,i),o}function Pc(e,t){if(t&&0<t.length)for(var o=0;o<t.length;o++){var a=je(t[o].rect,4),i=a[0],n=a[1],r=a[2],a=a[3];if(ht.Default.containsPoint({x:i,y:n,width:r,height:a},e))return t[o].value}}function Ac(e,t,o,a){if(e){var i=e.x,n=e.y,r=e.width,l=e.height,s=e.boundWidth,u=e.boundHeight,e=e.absoluteScrollBarWidth;if(l<u){u=l/u;if(zc({x:i+r-e,y:n-o*u,width:e,height:l*u},a))return 1}if(r<s-2){o=r/s;if(zc({x:i-t*o,y:n+l-e,width:r*o,height:e},a))return 1}}}function _c(e,t,o,a){if(e){var i=e.x,n=e.y,r=e.width,l=e.height,s=e.boundWidth,u=e.boundHeight,e=e.absoluteScrollBarWidth;if(l<u){u=l/u;if(Uc({x:i+r-e,y:n-o*u,width:e,height:l*u},a))return 1}if(r<s-2){o=r/s;if(Uc({x:i-t*o,y:n+l-e,width:r*o,height:e},a))return 1}}}function Mc(e,t){for(var o=0;o<e.length;o++){var a=e[o],i=a.rect,a=a.index;if(ht.Default.containsPoint(i,t))return a}}function Oc(e,t){var o=e.length,a=fd(o/2);if(o<8){for(var i,n,r=e,l=t,s=r.length,u=1;u<s;){for(i=r[n=u];n&&0<l(r[n-1],i);)r[n]=r[--n];n!==u++&&(r[n]=i)}return r}for(var h=e,c=Oc(gd(e,0,a),t),d=Oc(gd(e,a),t),g=t,f=c.length,p=d.length,v=0,y=0;v<f||y<p;)h[v+y]=v<f&&y<p?g(c[v],d[y])<=0?c[v++]:d[y++]:v<f?c[v++]:d[y++];return h}var Ec=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l=Ye(o,t,this);l.disabled||(l.pressed=!1,t.iv(),r=X(this,"value",t),0<a.x&&a.x<i&&0<a.y&&a.y<n&&Sc(t,o,l,r))}},{key:"onDrag",value:function(e,t,o,a,i,n){t=t.__dropDown;t&&t._opened&&t.layoutByMaster()}}]),t}(),Hc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){i=Al(this,t,o,a,i,n,!0,e);if(!i){var n=Ye(o,t,this),i=Lc(0,t,o,this,a),r=n.rawIndexs;if(r){var l,s,u=r[i.row],r=n.multiple,i=n.onClickCell,h=n.onClickHeadCell,c=n.bodyRect,d=n.headRect,g=n.headHeight,f=n.onClickCellImage,p=n.handleCellImage,v=H(o,t,this,a,e),y=X(this,"selectedIndex",t),d=d&&Hn(d),c=c&&Hn(c);if(!We(u)&&n.rowSelectable){var x=n.dataSource||[],m=n.onSelectRow,b=n.selectedIndex;if(x&&x[u]){if(r)if(b="number"==typeof b?[b]:null==b?[]:Me(b).call(b,0),ht.Default.isCtrlDown()){var r=Oe(b).call(b,u);0<=r?Ii(b).call(b,r,1):b.push(u)}else if(ht.Default.isShiftDown()&&0<b.length){r=b[b.length-1];if(r<u)for(var w=r+1;w<=u;w++)Oe(b).call(b,w)<0&&b.push(w);else if(u<r)for(var k=r-1;u<=k;k--)Oe(b).call(b,k)<0&&b.push(k)}else b=[u];else b=[u];y&&t.a(y,b),m&&m(x[u],t,o)}}if(h&&g&&d&&We(n.resizeColIndex)&&Q(d,v))for(var C=n.rawCols,T=n.colWidths,V=n.headHeight,D=n.rawColIndexs,I=d.x,S=0;S<T.length;S++){var L={x:I,y:d.y,width:T[S],height:V};if(Q(L,v)){h(e,C[S],D[S],t,o);break}I+=T[S]}if(i&&Q(c,v)&&(r=n.colWidths,y=n.rowHeights,m=n.columns,x=n.dataSource,g=n.rawColIndexs,l=n.rawIndexs[(s=Lc(0,t,o,this,a)).row],null!=(g=g[s.col]))&&null!=l&&s.row<=y.length&&s.col<=r.length&&m&&x&&m[g].key&&(y=m[g],r=(s=x[l])[y.key],i(e,r=y.format?y.format(r,s,l,g):r,s,y,l,g,t,o)),(f||p)&&Q(c,v)){var m=n.drawCellImageInfo,B=void 0===m?[]:m,R=n.columns,P=n.dataSource,x=n.rawColIndexs,i=n.rawIndexs;if(0<B.length)for(var r=Lc(0,t,o,this,a),A=i[r.row],_=x[r.col],M=0,O=B.length;M<O;M++){var E=B[M].rect;if(Q(E,v)){f&&f(e,B[M],P[A],R[_],A,_,t,o),p&&p("onDown",e,B[M],P[A],R[_],A,_,t,o);break}}}Fe(n.resizeColIndex)&&(n._beginDrag=!0)}}}},{key:"onUp",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=H(o,t,this,a,e),s=r.handleCellImage;if(s){var u=r.drawCellImageInfo,h=void 0===u?[]:u,c=r.columns,d=r.dataSource,u=r.rawColIndexs,g=r.rawIndexs;if(0<h.length)for(var a=Lc(0,t,o,this,a),f=g[a.row],p=u[a.col],v=0,y=h.length;v<y;v++){var x=h[v].rect;if(Q(x,l)){s("onUp",e,h[v],d[f],c[p],f,p,t,o);break}}}delete r._beginDrag}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.rowHeights,s=r.colWidths,u=r.hoverIndex,h=r.columns,c=r.rawDatas,d=r.rawIndexs,g=(r.rawCols,r.rawColIndexs),f=r.onHoverCell,O=r.resizable,p=r.headRect,v=r.bodyRect,y=Lc(0,t,o,this,a),x=r.scrollInfo,m=r.scrollBarInteractiveSize||ht.Default.scrollBarInteractiveSize,b=y.row,y=y.col,w=H(o,t,this,a,e);if(!r._scrollDragInfo&&d&&c){var p=p&&Hn(p),v=Hn(v),k=r.handleCellImage,C=r.drawCellImageInfo,T=void 0===C?[]:C,V=r.dataSource;if(k&&0<T.length){for(var D,I,S=0,L=T.length;S<L;S++){var B,R,P=T[S].rect;if(Q(P,w)){E(o,"pointer"),(!r._previousHoverCellImageInfo||r._previousHoverCellImageInfo&&r._previousHoverCellImageInfo.oldIndex!==S)&&(r._previousHoverCellImageInfo&&(B=(P=r._previousHoverCellImageInfo).oldIndex,R=P.oldRowIndex,P=P.oldColIndex,k("onLeave",e,T[B],V[R],h[P],R,P,t,o)),R=d[(B=Lc(0,t,o,this,a)).row],P=g[B.col],k("onEnter",e,T[S],V[R],h[P],R,P,t,o),r._previousHoverCellImageInfo={oldIndex:S,oldRowIndex:R,oldColIndex:P});break}}S===L&&(E(o,"default"),r._previousHoverCellImageInfo)&&(D=(C=r._previousHoverCellImageInfo).oldIndex,I=C.oldRowIndex,C=C.oldColIndex,k("onLeave",e,T[D],V[I],h[C],I,C,t,o),delete r._previousHoverCellImageInfo)}if(Q(v,w)&&r.autoHideScrollBar&&x&&(x.scrollBarX&&a.y>n-m||x.scrollBarY&&a.x>i-m))r.scrollBarVisible=!0,t.iv(),Hl(t,r);else if(Q(v,w)&&!Ri(e)&&r.rowHoverable?(f&&(null!=y&&null!==b&&b<=l.length&&y<=s.length&&h&&c&&h[y].key?(D=h[y],I=c[b],C=d[b],n=g[y],x=I[D.key],f(e,x=D.format?D.format(x,I,C,n):x,I,D,C,n,t,o)):f(e,null,null,null,null,null,t,o)),u!==d[b]&&(r.hoverIndex=d[b],t.iv())):Fe(r.hoverIndex)&&(r.hoverIndex=null,t.iv()),p&&!r.resizeBeginPoint&&O&&Q(p,w)&&!r._beginDrag){for(var A,_=r.resizeRects,M=0;M<_.length;M++)if(Q(_[M],w)){A=M;break}r.resizeColIndex=A,Fe(A)?E(o,"ew-resize"):E(o,"default")}}}},{key:"onLeave",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d=Ye(o,t,this),g=(d.hoverIndex=null,t.iv(),d.onHoverCell);g&&g(e,null,null,null,null,null,t,o),E(o,"default"),d._previousHoverCellImageInfo&&(g=d.drawCellImageInfo,r=d.dataSource,l=d.columns,s=d.handleCellImage,u=(c=d._previousHoverCellImageInfo).oldIndex,h=c.oldRowIndex,c=c.oldColIndex,s("onLeave",e,g[u],r[h],l[c],h,c,t,o),delete d._previousHoverCellImageInfo)}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){_l.apply(this,arguments);var r,l,o=Ye(o,t,this);Fe(o.resizeColIndex)&&(r=o.colWidths,t=o.rawColIndexs,l=o.rawCols,o.resizeSourceWidth=r[t[o.resizeColIndex]],o.resizeBeginPoint=a,ze(l).call(l,function(e,t){e.width=r[t]}))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,o=Ye(o,t,this),c=o.resizeBeginPoint;c?(l=o.rawCols,s=o.rawColIndexs,h=o.resizeColIndex,r=o.resizeSourceWidth,u=o.resizeRects,l=l[s[h]],s=a.x-c.x,c=(a=u[h]).x,u=a.y,h=a.width,a.height,o.resizeDragPoint={x:c+h/2,y:u},l.width=Math.max(r+s,1),t.iv()):Ml.apply(this,arguments)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){Ol.apply(this,arguments);var r,l,s,o=Ye(o,t,this);o.resizeBeginPoint&&(r=X(this,"translateX",t),t.a(r),l=o.colWidths,s=0,ze(l).call(l,function(e){s+=e}),delete o.resizeBeginPoint,delete o.resizeDragPoint,delete o.resizeColIndex,s<i&&t.a(r,0),t.iv()),delete o._beginDrag}},{key:"onScroll",value:function(e,t,o,a,i,n){El.apply(this,arguments)}}]),t}(),Wc=ht.Default.containsPoint,Fc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var r,l=Ye(o,t,this);l.disabled||(r=Nn(l.barRect,2),a=H(o,t,this,a,e),Wc(r,a)&&Bc(t,l,a,l.barRect,o))}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=Nn(r.sliderRect,2),s=r.showToolTip,r=r.toolTipFormat,u=X(this,"value",t),o=H(o,t,this,a,e);Wc(l,o)&&s?(a=t.a(u),a=We(a)?"0":a+"",B.show(r?r(a):a,e)):this.dragging||B.hide()}},{key:"onEnter",value:function(e,t,o,a,i,n){Ye(o,t,this).disabled?E(o,"not-allowed"):E(o,"pointer")}},{key:"onLeave",value:function(e,t,o,a,i,n){t=Ye(o,t,this);E(o,"default"),t.dragging||B.hide()}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var r,l=Ye(o,t,this);l.disabled||(r=Nn(l.sliderRect,2),o=H(o,t,this,a,e),Wc(r,o)&&(l.dragging=!0))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r,l=Ye(o,t,this);l.dragging&&(a=H(o,t,this,a,e),r=l.barRect,Bc(t,l,a,r,o),t=l.showToolTip,a=l.toolTipFormat,r=l.value,t)&&B.show(a?a(r):r,e)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){delete Ye(o,t,this).dragging,B.hide()}}]),t}(),Nc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this);u.disabled||(r=Nn(u.barRect,2),l=u.valueBarRect,s=u.valueBarDraggable,a=H(o,t,this,a,e),s&&ht.Default.containsPoint(l,a))||ht.Default.containsPoint(r,a)&&Rc(t,u,a,u.barRect,o)}},{key:"onMove",value:function(e,t,o,a,i,n){var r,l,s,u,h=Ye(o,t,this);h&&h.sliderRect&&h.sliderRect2&&(r=Nn(h.sliderRect,2),l=Nn(h.sliderRect2,2),s=h.showToolTip,u=h.toolTipFormat,h=h.value,o=H(o,t,this,a,e),ht.Default.containsPoint(r,o)&&s?B.show(u?u(h[0]):h[0],e):ht.Default.containsPoint(l,o)&&s?B.show(u?u(h[1]):h[1],e):this.dragging||B.hide())}},{key:"onEnter",value:function(e,t,o,a,i,n){Ye(o,t,this).disabled?E(o,"not-allowed"):E(o,"pointer")}},{key:"onLeave",value:function(e,t,o,a,i,n){t=Ye(o,t,this);E(o,"default"),t.dragging||B.hide()}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,c=Ye(o,t,this);c.disabled||(Nn(c.barRect,2),r=Nn(c.sliderRect,2),l=Nn(c.sliderRect2,2),s=Nn(c.valueBarRect,2),u=c.value,h=c.valueBarDraggable,a=H(o,t,this,a,e),ht.Default.containsPoint(r,a)?c.dragging=u[1]:ht.Default.containsPoint(l,a)?c.dragging=u[0]:h&&ht.Default.containsPoint(s,a)&&(c.draggingValueBar=Rc(t,c,a,c.barRect,o,!0)))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this),h=u.showToolTip,c=u.toolTipFormat,d=u.barRect,a=H(o,t,this,a,e);void 0!==u.dragging?(l=Rc(t,u,a,d,o),h&&B.show(c?c(l):l,e)):void 0!==u.draggingValueBar&&(l=u.draggingValueBar,a=Rc(t,u,a,d,o,!0),d=u.value,o=u.min,r=u.max,l=[d[0]+(l=a-l),d[1]+l],s=X(this,"value",t),l[0]<o?l=[o,o+(d[1]-d[0])]:l[1]>r&&(l=[r-(d[1]-d[0]),r]),u.draggingValueBar=a,t.a(s,l),h)&&(o=l.join(","),c&&(o=Ge(l).call(l,function(e){return c(e)}).join(", ")),B.show(o,e))}},{key:"onEndDrag",value:function(e,t,o,a,i,n){o=Ye(o,t,this);delete o.dragging,delete o.draggingValueBar,B.hide()}}]),t}(),jc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this),h=X(this,"value",t);!u.disabled&&h&&((r=u.dropDown)&&r.isOpened()?r.close():(l=(r=u.value)?Me(r).call(r,0):null,s=u.valueItemInfo,(a=Pc(H(o,t,this,a,e),s))&&r&&0<=Oe(r).call(r,a)&&(e=Oe(r).call(r,a),Ii(r).call(r,e,1),s=Me(r).call(r,0),t.a(h,s),u.onChange&&u.onChange(l,s,t,o),E(o,"default"),this._hitValue=r)))}},{key:"onUp",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this);u.disabled||(this._hitValue?delete this._hitValue:(r=X(this,"value",t),u.bodyRect,l=u.scrollInfo,s=u.scrollBarInteractiveSize,H(o,t,this,a,e),0<a.x&&a.x<i&&0<a.y&&a.y<n&&(l&&(l.scrollBarX&&a.y>n-s||l.scrollBarY&&a.x>i-s)||Sc(t,o,u,r,!0))))}},{key:"onMove",value:function(e,t,o,a,i,n){var r,l,s=Ye(o,t,this);s.disabled?E(o,"not-allowed"):(r=s.valueItemInfo,e=H(o,t,this,a,e),Pc(e,r)?(this._oldCursor=o.getView().style.cursor,E(o,"pointer")):E(o,"default"),r=s.bodyRect,o=s.scrollInfo,l=s.scrollBarInteractiveSize,Q(r,e)&&s.autoHideScrollBar&&o&&(o.scrollBarX&&a.y>n-l||o.scrollBarY&&a.x>i-l)&&(s.scrollBarVisible=!0,t.iv(),Hl(t,s)))}},{key:"onEnter",value:function(e,t,o,a,i,n){t=Ye(o,t,this);t.disabled?E(o,"not-allowed"):E(o,"pointer"),t.disabled}},{key:"onLeave",value:function(e,t,o,a,i,n){E(o,"default")}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){_l.apply(this,arguments)}},{key:"onDrag",value:function(e,t,o,a,i,n){Ml.apply(this,arguments)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){Ol.apply(this,arguments)}},{key:"onScroll",value:function(e,t,o,a,i,n){El.apply(this,arguments)}}]),t}(),zc=ht.Default.containsPoint,Gc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDoubleClick",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.treeTableDataModel,t=e.scrollBarInfo,r=e.translateX,l=e.translateY,s=e.isScrollBarDragging,u=e.rectInfo;o&&(s?e.isScrollBarDragging=!1:Ac(t,r,l,a)||u&&(s=u.togglesRect,t=u.visibleRowsRect,"doubleClickRow"===o.a("expandMode")&&o.onClickToggle(arguments,a,s)||"doubleClickRow"===o.a("selectMode")&&o.onClickVisibleRow(arguments,a,t,e)))}},{key:"onClick",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.treeTableDataModel,t=e.scrollBarInfo,r=e.translateX,l=e.translateY,s=e.isScrollBarDragging,u=e.rectInfo;o&&(s?e.isScrollBarDragging=!1:Ac(t,r,l,a)||u&&(s=u.togglesRect,t=u.checksRect,r=u.visibleRowsRect,l=u.badgesRect,o.onClickBadge(arguments,a,l)||o.onClickCheck(arguments,a,t)||("doubleClickRow"!==o.a("expandMode")&&o.onClickToggle(arguments,a,s),"doubleClickRow"!==o.a("selectMode")&&o.onClickVisibleRow(arguments,a,r,e))||o.onClickBack(arguments)))}},{key:"onMove",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),r=e.treeTableDataModel,l=e.scrollBarInfo,s=e.translateX,u=e.translateY,h=e.isScrollBarDragging,c=e.rectInfo,d=e.preHoverNode;r&&!h&&(Ac(l,s,u,a)?d&&(d.a("disabled")&&E(o,"default"),d.a("_isHovering",!1),t.iv()):c&&(h=c.visibleRowsRect,r.onHoverRow(arguments,a,h,d,e)))}},{key:"onLeave",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.preHoverNode;l&&(E(o,"default"),l.a("_isHovering",!1),delete r.preHoverNode,t.iv())}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.scrollBarInfo,t=e.translateX,r=e.translateY;Ac(o,t,r,a)&&(e.isScrollBarDragging=!0),_l.apply(this,arguments)}},{key:"onDrag",value:function(e,t,o,a,i,n){Ml.apply(this,arguments)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){o=Ye(o,t,this);o&&(o.isScrollBarDragging=!1),Ol.apply(this,arguments)}},{key:"onScroll",value:function(e,t,o,a,i,n){El.apply(this,arguments)}}]),t}(),Uc=ht.Default.containsPoint,Yc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.treeTableDataModel,t=e.scrollBarInfo,r=e.translateX,l=e.translateY,s=e.isScrollBarDragging,u=e.rectInfo;o&&(s?e.isScrollBarDragging=!1:_c(t,r,l,a)||u&&(s=u.togglesRect,t=u.checksRect,r=u.visibleRowsRect,o.onClickHeadCell(arguments,a)||o.onClickCheck(arguments,a,t)||o.onClickToggle(arguments,a,s)||o.onClickVisibleRow(arguments,a,r,e)||o.onClickBack(arguments)))}},{key:"onMove",value:function(e,t,o,a,i,n){var r=H(o,t,this,a,e),a=Ye(o,t,this),e=a.treeTableDataModel,l=a.scrollBarInfo,s=a.translateX,u=a.translateY,h=a.isScrollBarDragging,c=a.rectInfo,d=a.preHoverNode;if(e&&!h)if(_c(l,s,u,r))d&&(d.a("disabled")&&E(o,"default"),d.a("_isHovering",!1),t.iv());else{c&&(h=c.visibleRowsRect,e.onHoverRow(arguments,r,h,d,a));var g=!1;if(e.a("headLineDraggable")){for(var f=e.a("columnLinesRect"),p=0,v=f.length;p<v;p++)if(Uc(f[p],r)){E(o,"ew-resize"),g=!0;break}p===v&&E(o,"default")}e.a("headDraggable")&&!g&&Uc(e.a("headRect"),r)&&E(o,"pointer")}}},{key:"onLeave",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.preHoverNode;l&&(l.a("_isHovering",!1),delete r.preHoverNode,t.iv()),E(o,"default")}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var r=H(o,t,this,a,e),l=Ye(o,t,this),a=l.treeTableDataModel,e=l.scrollBarInfo,o=l.translateX,t=l.translateY;if(_c(e,o,t,r)&&(l.isScrollBarDragging=!0),_l.apply(this,arguments),a){if(a.a("headLineDraggable"))for(var s=a.a("columnLinesRect"),u=0,h=s.length;u<h;u++)if(Uc(s[u],r))return l.dragColumnLineIndex=u,void(l.columnLineBegingDragX=r.x);if(a.a("headDraggable"))for(var c=a.a("columnsRect"),d=0,g=c.length;d<g;d++)if(Uc(c[d],r))return l.dragStartColumnIndex=d,void(l.dragStartColumnBeginDragX=r.x)}}},{key:"onDrag",value:function(e,s,t,o,a,i){var u=H(t,s,this,o,e),h=Ye(t,s,this),c=h.treeTableDataModel,n=h.dragColumnLineIndex,r=h.columnLineBegingDragX,d=h.dragStartColumnBeginDragX,o=h.dragStartColumnIndex;if(Ml.apply(this,arguments),c){if(c.a("headLineDraggable")){if(h._dragColumnLineTimer)return;h._dragColumnLineTimer=Wa(function(){void 0!==n&&(h.dragColumnLineDistance=u.x-r,s.iv()),delete h._dragColumnLineTimer},10)}void 0===n&&c.a("headDraggable")&&void 0!==o&&!h._dragColumnTimer&&(h._dragColumnTimer=Wa(function(){for(var e=c.a("columnsRect"),t=0,o=e.length;t<o;t++){var a=e[t];if(Uc(a,u)){var i=a.x,n=a.y,r=a.width,a=a.height,l=c.a("columnLineWidth");u.x<i+r/2?(h.dragColumnLineRect={x:i-l,y:n,width:l,height:a},h.dragColumnDirection="left"):(h.dragColumnLineRect={x:i+r,y:n,width:l,height:a},h.dragColumnDirection="right"),h.dragEndColumnIndex=t,h.dragColumnDistance=u.x-d,s.iv();break}}delete h._dragColumnTimer},10))}}},{key:"onEndDrag",value:function(e,t,o,a,i,n){var r,l,s,u,o=Ye(o,t,this),h=o.treeTableDataModel,c=o.dragColumnLineIndex,d=o.dragColumnLineDistance,g=(o.columnLineBegingDragX,o.dragStartColumnIndex),f=o.dragEndColumnIndex,p=o.dragColumnDirection;o&&(o.isScrollBarDragging=!1),Ol.apply(this,arguments),h&&(h.a("headLineDraggable")&&(r=h.a("dragColumnsLineDiff")||{},l=h.a("colWidths"),s=h.a("defColWidths"),u=h.a("visibleColumns"),void 0!==c)&&void 0!==d&&(r[u[c].key]=l[c]-s[c],h.a("dragColumnsLineDiff",r)),void 0!==c?(o._dragColumnLineTimer&&(clearTimeout(o._dragColumnLineTimer),delete o._dragColumnLineTimer),delete o.dragColumnLineIndex,delete o.dragColumnLineDistance,delete o.columnLineBegingDragX):h.a("headDraggable")&&(void 0!==g&&void 0!==f&&((g===f?1:f-g==-1&&"right"===p?1:f-g==1&&"left"===p?1:0)||h.a("dragColumnsInfo",{dragStartColumnIndex:g,dragEndColumnIndex:f}),t.iv()),o._dragColumnTimer&&(clearTimeout(o._dragColumnTimer),delete o._dragColumnTimer),delete o.dragStartColumnIndex,delete o.dragEndColumnIndex,delete o.dragColumnLineRect,delete o.dragColumnDirection,delete o.dragStartColumnBeginDragX,delete o.dragColumnDistance))}},{key:"onScroll",value:function(e,t,o,a,i,n){El.apply(this,arguments)}}]),t}(),Xc=10,Zc=10,qc=(ht.Default.setCompType("htVectorChartTip",{width:50,height:50,func:function(u,e,t,o,a){var h,c,d,g,f,i,n=t.getValue("labelFont"),p=t.getValue("labelColor"),v=t.getValue("itemFont"),y=(t.getValue("itemColor"),t.getValue("itemIconSize")),r=t.getValue("info"),t=t.getValue("drawTooltip");r&&(ht.Default.isArray(r)||(r=[r]),h=e.x,i=e.y,c=e.width,e.height,g=d=0,f=i,i=function(){return ze(r).call(r,function(e,t){var o=e.label,a=e.datas,s=e.colors;0<t&&(f+=8,d+=8),o&&(e=He(n,o),d+=e.height,g=Math.max(g,e.width),ht.Default.drawText(u,o,n,p,h,f,e.width,e.height,"left"),f+=e.height+2),ze(a).call(a,function(e,t){var o,e=je(e,3),a=e[0],i=e[1],e=e[2],n=null!=a,r=n?Ee(r="".concat(a,"")).call(r,i):i,r=He(v,r),l=(d+=r.height+2,g=Math.max(g,r.width+y+3),h);ht.Default.isEmptyObject(s)||(e=e||s[t],e=ir(u,e,{x:o=y/2,y:f,width:2*o,height:2*o}),u.fillStyle=e||s[t],u.beginPath(),u.moveTo(o,f+o),u.arc(o,f+o,o,0,2*Math.PI),Ue(u).call(u),l+=3+y),ht.Default.drawText(u,n?"".concat(a,""):i,v,p,l,f,r.width,r.height,Pe),n&&ht.Default.drawText(u,i,v,p,h,f,c,r.height,Re),f+=r.height+2})}),{height:Zc=d,width:Xc=g}},t?(e=(t=t(u,e,{info:r,data:o,view:a,defaultDraw:i})).width,o=t.height,Zc=o,Xc=e):i())},properties:{labelFont:{valueType:"Font",defaultValue:"14px arial, sans-serif"},labelColor:{valueType:"Color",defaultValue:"rgb(247, 247, 247)"},itemFont:{valueType:"Font",defaultValue:"14px arial, sans-serif"},itemColor:{valueType:"Color",defaultValue:"rgb(247, 247, 247)"},itemIconSize:{valueType:"PositiveNumber",defaultValue:12},info:{valueType:"Object",defaultValue:{}}}}),ht.Default.setImage("htVectorChartTip",{width:50,height:50,fitSize:!0,pixelPerfect:!1,interactive:!0,boundExtend:2,comps:[{type:"htVectorChartTip",displayName:"htVectorChartTip",rect:[0,0,50,50],info:{func:"attr@info",value:{}},itemColor:{func:"attr@itemColor",value:"rgb(247, 247, 247)"},labelFont:{func:"attr@labelFont",value:"14px arial, sans-serif"},itemFont:{func:"attr@itemFont",value:"14px arial, sans-serif"},drawTooltip:{func:"attr@drawTooltip"}}]}),function(){d(a,ht.graph.GraphView);var o=g(a);function a(){var e;c(this,a);(e=o.call(this)).getView().style.position="relative";var t=e._tipNode=new ht.Node;return t.setImage("htVectorChartTip"),e.dm().add(t),e.setWidth(Xc),e.setHeight(Zc),e}return s(a,[{key:"setInfo",value:function(e,t){var o=this;this._tipNode.a("info",e),this.getWidth()===Xc&&this.getHeight()===Zc||ht.Default.callLater(function(){o._tipNode.setWidth(Xc),o._tipNode.setHeight(Zc),fn.tooltipSyncZoom&&"ht.graph.GraphView"===t.getClassName()?(o.setWidth(Xc*t.getZoom()),o.setHeight(Zc*t.getZoom())):(o.setWidth(Xc),o.setHeight(Zc)),o.fitContent(!1,0)})}},{key:"setAttr",value:function(e){this._tipNode.a(e)}}]),a}()),Kc=new qc,Jc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(n,r,l,e,t,o){var a=Ye(l,r,this),i=a.ui,s=a.option;if(s){var a=i.interactiveInfo,u=(i.bounds.bodyRect,a.axisInfos),h=H(l,r,this,e,n),a=s.series,a=(ze(a).call(a,function(a,i){"bar"===a.type&&a.onClickBar&&ze(u).call(u,function(e){ze(e).call(e,function(e){var t,o=e.series[i];o&&(t=o[5],Q(t,h))&&a.onClickBar(n,{axisName:e.label,seriesName:o[0],seriesValue:o[1]},r,l)})})}),s.onItemClicked);if(a&&ht.Default.isFunction(a)){var c=i.interactiveInfo,d=i.bounds.bodyRect,c=c.axisInfos,g=H(l,r,this,e,n);if(Q(d,g)&&c.length){for(var f,p,v=g.x,y=1/0,x=c[0],m=0;m<x.length;m++){var b=Math.abs(x[m].position-v);b<y&&(y=b,f=m)}x[f]&&(p=[],ze(c).call(c,function(e){var e=e[f],t=[],o=(ze(o=e.series).call(o,function(e){t.push({name:e[0],value:e[1]})}),e.series&&e.series[0]&&e.series[0][5]?e.series[0][5]:{});p.push({rect:o,category:e.label,datas:t,index:f})}),a(p[0],r,l))}}}if(i)for(var w=H(l,r,this,e,n),d=i.interactiveInfo||{},g=d.labelRects,k=void 0===g?[]:g,C=d.axisInfos,T=0,V=k.length;T<V;T++)if(Q(k[T],w)){s.onXAxisLabelClicked&&s.onXAxisLabelClicked({label:C[0][T].label,datas:C[0][T].series,index:T},r,l);break}}},{key:"onMove",value:function(e,t,o,a,i,n){if(!Ri(e)){var r=Ye(o,t,this),l=r.ui,s=r.option;if(s&&l){if(r._moveTimer&&clearTimeout(r._moveTimer),s&&s.tooltip.show&&!r._dragging){var u=l.interactiveInfo,h=l.bounds.bodyRect,u=u.axisInfos,c=H(o,t,this,a,e),d=s.tooltip.formatter,g=s.tooltip.drawTooltip;if(Q(h,c)&&u.length){for(var f,p,v,y=l.valueAxis===Ji?c.y:c.x,x=1/0,m=u[0],b=0;b<m.length;b++){var w=Math.abs(m[b].position-y);w<x&&(x=w,f=b)}m[f]&&(p=[],v=Me(h=l.seriesColors).call(h,0),ze(u).call(u,function(e){e=e[f];p.push({label:zn(s.xAxis[0].data,t,o)[f]||e.label,datas:e.series,colors:Ii(v).call(v,0,e.series.length),index:f})}),p=Yn(p),Kc._tipNode.a("labelFont",null),Kc._tipNode.a("drawTooltip",g),d&&d(p,t,o),Kc.setInfo(p,o),B.show(Kc.getView(),e,{offsetX:r.tooltipOffsetX,offsetY:r.tooltipOffsetY}),g)&&!this._cssText&&(this._cssText=Yn(B._container.style.cssText),B._container.style.backgroundColor="rgba(0,0,0,0)",B._container.style.padding=0),r.hoverIndex!==f&&(r.hoverIndex=f,t.iv())}else delete r.hoverIndex,t.iv(),B.hide(),this._cssText&&(B._container.style.cssText=this._cssText,delete this._cssText)}c=s.xAxis[0].axisLabel.showTooltip;if(c){h=l.interactiveInfo,u=l.bounds.xAxisRects,d=h.axisInfos,g=H(o,t,this,a,e);if(Q(u[0],g)){for(var k,C,T,V=g.x,D=1/0,I=d[0],S=0;S<I.length;S++){var L=Math.abs(I[S].position-V);L<D&&(D=L,k=S)}I[k]&&(C=[],T=Me(h=l.seriesColors).call(h,0),ze(d).call(d,function(e){e=e[k];C.push({label:zn(s.xAxis[0].data,t,o)[k],datas:[],colors:Ii(T).call(T,0,e.series.length),index:k})}),C=Yn(C),Kc._tipNode.a("labelFont","14px arial, sans-serif"),Zn(c)&&Kc._tipNode.a("labelFont",c.font),Kc.setInfo(C,o),B.show(Kc.getView(),e,{offsetX:r.tooltipOffsetX,offsetY:r.tooltipOffsetY})),r.labelIndex!==k&&(r.labelIndex=k,t.iv())}}}}}},{key:"onLeave",value:function(e,t,o,a,i,n){o=Ye(o,t,this);void 0!==o.hoverIndex&&(delete o.hoverIndex,t.iv(),B.hide(),this._cssText)&&(B._container.style.cssText=this._cssText,delete this._cssText),void 0!==o.labelIndex&&(delete o.labelIndex,t.iv(),B.hide())}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var e=Wn(o,t,this,e),o=Ye(o,t,this),r=o.option,l=o.ui;o&&r&&r.onRectSelected&&(void 0!==o.hoverIndex&&(delete o.hoverIndex,t.iv(),B.hide()),r=l.bounds.bodyRect,t={x:a.x+e.rect.x,y:a.y+e.rect.y},Q(r,t))&&(o._dragging=!0,o.rectPoint1=t)}},{key:"onDrag",value:function(e,t,o,a,i,n){var r,e=Wn(o,t,this,e),o=Ye(o,t,this);o&&o._dragging&&(r=o.ui.bounds.bodyRect,a={x:a.x+e.rect.x,y:a.y+e.rect.y},o.rectPoint2=Qn(r,a),t.iv())}},{key:"onEndDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d,g,f,p=Ye(o,t,this);p&&p._dragging&&(r=p.ui,l=p.option,s=r.rectPoint1,u=r.rectPoint2,h=r.valueAxis,c=l.xAxis,d=l.yAxis,g=xr(s,u),delete p._dragging,delete p.rectPoint1,delete p.rectPoint2,t.iv(),f={x:[],y:[]},ze(c).call(c,function(e){var t,o,a,i=e.type,n=[];f.x.push(n),en===i?(t=r.interactiveInfo).axisInfos&&t.axisInfos.length&&ze(t=t.axisInfos[0]).call(t,function(e,t){e.position>g.x&e.position<g.x+g.width&&n.push(t)}):tn===i&&(t=e._axisObj.timeRange)&&(e=(i=je(t,2))[0],i=(t=i[1])-e,a=r.bounds.bodyRect,o=Math.floor((g.x-a.x)/a.width*i+e),a=Math.floor((g.x-a.x+g.width)/a.width*i+e),o=Math.max(o,e),a=Math.min(a,t),n.push(o),n.push(a))}),ze(d).call(d,function(e){var t,o,a,i,n=[];f.y.push(n),he===h&&(t=(e=je(e._axisObj.zoomValueRange,2))[0],e=e[1],a=((i=r.bounds.bodyRect).height-g.height-g.y+i.y)/i.height*(o=e-t)+t,i=(i.height-g.y+i.y)/i.height*o+t,a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),l.onRectSelected(f,t,o))}}]),t}(),$c=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l,s=Ye(o,t,this);s.disabled||(r=X(this,"value",t),0<a.x&&a.x<i&&0<a.y&&a.y<n&&(l=t,i=o,a="a@"+r,(t=(n=s).dropDown)?t.open():(l.getFormat=function(){return l.a(Gi.FORMAT)},l.getCurrentFormat=function(){return l.a(Gi.FORMAT)},(t=new Yr(l,i,n,a)).open(),n.dropDown=t)))}}]),t}(),Qc=function(){d(t,bc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onUp",value:function(e,t,o,a,i,n){var r,l,s=Ye(o,t,this);s.disabled||(r=X(this,"value",t),0<a.x&&a.x<i&&0<a.y&&a.y<n&&(l=t,i=o,a="a@"+r,t=(n=s).dropDown,l.getFormat=function(){return l.a(Gi.FORMAT)},t?(t.dateType=n.dateType,t.dropDown&&t.dropDown.destroy(),t.timePickerDOM&&t.timePickerDOM.remove(),delete n.dropDown):((t=new Xr(l,i,n,a)).dateType=n.dateType,(n.dropDown=t).open(),i=n.dropDownStyle||{},a="flex-end","left"===n.buttonAlign?a="flex-start":"center"===n.buttonAlign?a="center":"right"===n.buttonAlign&&(a="flex-end"),i.buttonAlign=a,i.buttonGap=n.buttonGap+"px",(a=t.replaceStr(i||{}))!==t.dropDown.defaultHostCss&&(t.dropDown.ui.container.nextSibling.remove(),t.dropDown.options.css=":host{"+a+"}"+jr,t.dropDown.handleCSS()))))}}]),t}(),ed=e("Array").values,td=Array.prototype,od={DOMTokenList:!0,NodeList:!0},ad=function(e){var t=e.values;return e===td||ve(td,e)&&t===td.values||et(od,Ro(e))?ed:t},id=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.apply(this,arguments)}return s(t,[{key:"onEnter",value:function(e,t,o,a,i,n){var r="pointer";Ye(o,t,this).disabled&&(r="not-allowed"),E(o,r)}},{key:"onLeave",value:function(e,t,o,a,i,n){var r=Ye(o,t,this);E(o,"default"),r.hoverIndex=null,t.iv()}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.buttonRects,s=(ad(r),r.disabled),o=H(o,t,this,a,e),a=null;s||(a=l?Mc(l,o):a)!==r.hoverIndex&&(r.hoverIndex=a,t.iv())}},{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.buttonRects,s=ad(r),u=r.disabled,r=r.onChange,a=H(o,t,this,a,e),e=X(this,"value",t),h=null;!u&&e&&(l&&(h=Mc(l,a)),(u=We(h)?null:s[h])!==(l=t.a(e)))&&(t.a(e,u),r)&&r(l,u,t,o)}}]),t}(),nd=Math.PI,rd=Math.pow,ld=Math.sin,sd={swing:function(e){return-Math.cos(e*nd)/2+.5},easeNone:function(e){return e},easeIn:function(e){return e*e},easeOut:function(e){return(2-e)*e},easeBoth:function(e){return(e*=2)<1?.5*e*e:.5*(1- --e*(e-2))},easeInStrong:function(e){return e*e*e*e},easeOutStrong:function(e){return 1- --e*e*e*e},easeBothStrong:function(e){return(e*=2)<1?.5*e*e*e*e:.5*(2-(e-=2)*e*e*e)},elasticIn:function(e){return 0===e||1===e?e:-(rd(2,10*--e)*ld(2*nd*(e-.075)/.3))},elasticOut:function(e){return 0===e||1===e?e:rd(2,-10*e)*ld(2*nd*(e-.075)/.3)+1},elasticBoth:function(e){return 0===e||1===e?e:e<1?rd(2,10*--e)*ld(2*nd*(e-.1125)/.45)*-.5:rd(2,-10*--e)*ld(2*nd*(e-.1125)/.45)*.5+1},backIn:function(e){return 1===e?e:e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backBoth:function(e){var t=1.70158;return(e*=2)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},bounceIn:function(e){return 1-Easing.bounceOut(1-e)},bounceOut:function(e){var t=7.5625,t=e<1/2.75?t*e*e:e<2/2.75?t*(e-=1.5/2.75)*e+.75:e<2.5/2.75?t*(e-=2.25/2.75)*e+.9375:t*(e-=2.625/2.75)*e+.984375;return t},bounceBoth:function(e){return e<.5?.5*Easing.bounceIn(2*e):.5*Easing.bounceOut(2*e-1)+.5}},ud=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.apply(this,arguments)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this),h=H(o,t,this,a,e),c=u.itemInfos,d=u.index,a=u.animation,e=u.onClickItem,g=u.dataSource;if(c&&c.length)for(var f=0;f<c.length;f++){var p=c[f];if(Q(p.rect,h)){r=p.index;break}}Fe(r)&&d!==r&&(l=X(this,"index",t))&&(a?(u._animationObj&&u._animationObj.stop(),s=r-d,u._animationObj=ht.Default.startAnim({frames:30,interval:16,easing:sd.easeOut,finishFunc:function(){delete u._animationObj},action:function(e){t.a(l,d+s*e)}})):t.a(l,r)),Fe(r)&&e&&e(g[r],r,t,o)}},{key:"onEnter",value:function(e,t,o,a,i,n){}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=H(o,t,this,a,e),s=r.itemInfos,u=!1;if(s&&s.length)for(var h=0;h<s.length;h++){var c=s[h];if(Q(c.rect,l)){u=!0;break}}E(o,u?"pointer":"default")}},{key:"onLeave",value:function(e,t,o,a,i,n){E(o,"default")}},{key:"onScroll",value:function(e,t,o,a,i,n){var o=Ye(o,t,this),r=o.scrollable,l=o.index,o=o.dataSource,e=0<e.scrollDelta?1:-1;r&&(r=o.length,o=X(this,"index",t),0<=(l=l+e))&&l<r&&t.a(o,l)}}]),t}(),hd=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.apply(this,arguments)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this),h=H(o,t,this,a,e),c=u.itemInfos,d=u.index,a=u.animation,e=u.onClickItem,g=u.dataSource;if(c&&c.length)for(var f=0;f<c.length;f++){var p=c[f];if(Q(p.rect,h)){r=p.index;break}}Fe(r)&&d!==r&&(l=X(this,"index",t))&&(a?(u._animationObj&&u._animationObj.stop(),s=r-d,u._animationObj=ht.Default.startAnim({frames:30,interval:16,easing:sd.easeOut,finishFunc:function(){delete u._animationObj},action:function(e){t.a(l,d+s*e)}})):t.a(l,r)),Fe(r)&&e&&e(g[r],r,t,o)}},{key:"onEnter",value:function(e,t,o,a,i,n){}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=H(o,t,this,a,e),s=r.itemInfos,u=!1;if(s&&s.length)for(var h=0;h<s.length;h++){var c=s[h];if(Q(c.rect,l)){u=!0;break}}E(o,u?"pointer":"default")}},{key:"onLeave",value:function(e,t,o,a,i,n){}},{key:"onScroll",value:function(e,t,o,a,i,n){var o=Ye(o,t,this),r=o.scrollable,l=o.index,o=o.dataSource,e=0<e.scrollDelta?1:-1;r&&(r=o.length,o=X(this,"index",t),0<=(l=l+e))&&l<r&&t.a(o,l)}}]),t}(),cd=Array,dd=Math.max,gd=function(e,t,o){for(var a=oo(e),i=to(t,a),n=to(void 0===o?a:o,a),r=cd(dd(n-i,0)),l=0;i<n;i++,l++)Na(r,l,e[i]);return r.length=l,r},fd=Math.floor,pd=Oc,vd=ce.match(/firefox\/(\d+)/i),vd=!!vd&&+vd[1],yd=/MSIE|Trident/.test(ce),ce=ce.match(/AppleWebKit\/(\d+)\./),ce=!!ce&&+ce[1],xd=pd,md=vd,bd=yd,wd=ce,kd=[],Cd=a(kd.sort),Td=a(kd.push),pd=b(function(){kd.sort(void 0)}),vd=b(function(){kd.sort(null)}),yd=Ie("sort"),Vd=!b(function(){if(ge)return ge<70;if(!(md&&3<md)){if(bd)return!0;if(wd)return wd<603;for(var e,t,o,a="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(o=0;o<47;o++)kd.push({k:e+o,v:t})}for(kd.sort(function(e,t){return t.v-e.v}),o=0;o<kd.length;o++)e=kd[o].k.charAt(0),a.charAt(a.length-1)!==e&&(a+=e);return"DGBEFHACIJK"!==a}});v({target:"Array",proto:!0,forced:pd||!vd||!yd||!Vd},{sort:function(e){void 0!==e&&Ce(e);var t=qe(this);if(Vd)return void 0===e?Cd(t):Cd(t,e);for(var o,a,i=[],n=oo(t),r=0;r<n;r++)r in t&&Td(i,t[r]);for(xd(i,(a=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==a?+a(e,t)||0:ka(e)>ka(t)?1:-1})),o=oo(i),r=0;r<o;)t[r]=i[r++];for(;r<n;)wi(t,r++);return t}});var Dd=e("Array").sort,Id=Array.prototype,Sd=function(e){var t=e.sort;return e===Id||ve(Id,e)&&t===Id.sort?Dd:t},Ld=Date,Bd=a(Ld.prototype.getTime);v({target:"Date",stat:!0},{now:function(){return Bd(new Ld)}});function Rd(s,e){var i=e.data,n=e.view,t=e.boundaryGap,u=Ge(o=s.xAxis).call(o,function(e){return e._axisObj.boundHeight}),h=Ge(o=s.yAxis).call(o,function(e){return e._axisObj.boundWidth}),a=$i,c=e.leftAxis=[],d=e.rightAxis=[],g=e.topAxis=[],f=e.bottomAxis=[],p=0,r=0,v=0,l=0,o=(ze(o=s.xAxis).call(o,function(e,t){var o;e.show&&(o=e.bodyGap,(e._axisObj.position===Le?(v+=u[t]+o,g):(l+=u[t]+o,f)).push(t))}),ze(o=s.yAxis).call(o,function(e,t){var o;e.show&&(o=e.bodyGap,(e._axisObj.position===Re?(r+=h[t]+o,d):(p+=h[t]+o,c)).push(t),a=Math.max(a,$i+e._axisObj.labelHeight/2))}),v<a&&(v=a),l<a&&(l=a),e.contentRect),y=0,x=0,m=(e.valueAxis===he&&ze(b=s.xAxis).call(b,function(e){var t,o,a=e._axisObj.data;e.axisLabel.show&&a?(o=(e._axisObj._labelSizes[0]||He(e.axisLabel.font,a[0])).width/2,x<o&&(x=o),o=e._axisObj._labelSizes[a.length-1]||He(e.axisLabel.font,a[a.length-1]),y=Math.max(o.width/2,y)):e.axisLabel.show&&e.type===tn&&("string"==typeof(a=e._axisObj.formatter)&&(t=a,a=function(e){return br(new Date(e),t)}),e=(o=He(e.axisLabel.font,a?a(Nd(),i,n):"e")).width/2,x<e&&(x=e),y=Math.max(o.width/2,y))}),ze(b=s.yAxis).call(b,function(a){var e;a.markLines&&ze(e=a.markLines).call(e,function(e){var t=e.value,e=e.labelStyle,o=e&&e.font||Gd;e&&e.formatter&&(t=e.formatter(t));e=He(o,t).width+6;a._axisObj.position===Pe&&y<e?y=e:a._axisObj.position===Re&&x<e&&(x=e)})}),p<x&&!t&&(b=x-p,h[0]+=b,p=x),o.x),b=o.y,w=o.width,o=o.height,k=[],C=[],T=m,V=b,D=w-p-r,I=o-v-l;r<y&&!t&&(D=D-y+r),D=Math.max(0,D),I=Math.max(0,I),V=b+v,ze(h).call(h,function(e,t){var o=s.yAxis[t]._axisObj.position,a=s.yAxis[t].bodyGap;if(o===Re){for(var i=0,n=Oe(d).call(d,t);0<n;)i+=h[d[--n]];k.push({x:m+p+D+i+a,y:V,width:e,height:I})}else{for(var r=0,l=Oe(c).call(c,t);0<l;)r+=h[c[--l]];k.push({x:T+r,y:V,width:e,height:I})}}),T=m+p,V=b,ze(u).call(u,function(e,t){var o=s.xAxis[t]._axisObj.position,a=s.xAxis[t].bodyGap;if(o===Le){for(var i=0,n=Oe(g).call(g,t);0<n;)i+=u[g[--n]];C.push({x:T,y:V+i-a,width:D,height:e})}else{for(var r=0,l=Oe(f).call(f,t);0<l;)r+=u[f[--l]];C.push({x:T,y:V+I+v+r+a,width:D,height:e})}}),w={x:m+p,y:b+v,width:Math.max(0,D),height:Math.max(0,I)},e.bounds={xAxisRects:C,yAxisRects:k,bodyRect:w}}function Pd(a,i,e){return a=jd(a)?Me(a).call(a,0):[a],ze(a).call(a,function(e,t){var o=zd(i);pr(o,e),a[t]=o}),a}function Ad(e,t,o,a,i,n){var r=t.max,l=t.min,s=t.step,u=r-l,o=t.inverse?(a.width-(o.x-a.x))/a.width*u+l:(o.x-a.x)/a.width*u+l,u=(a=t.value)[0],t=a[1],r=(o=Math.min(r,o),o=Math.max(l,o),s&&(o=o-(a=o%s)+(Math.abs(a)>s/2)*(a<0?-s:s)),null);return r=Fe(i)?i<=o?[i,o]:[o,i]:(l=Math.abs(u-o),Math.abs(t-o)<=l?[u,o]:[o,t]),!n&&e&&e(r),o}function _d(e,t,o,a,i,n){var r=t.max,l=t.min,s=t.step,u=r-l,o=t.inverse?(o.y-a.y)/a.height*u+l:(a.height-(o.y-a.y))/a.height*u+l,u=(a=t.value)[0],t=a[1],r=(o=Math.min(r,o),o=Math.max(l,o),s&&(o=o-(a=o%s)+(Math.abs(a)>s/2)*(a<0?-s:s)),null);return r=Fe(i)?i<=o?[i,o]:[o,i]:(l=Math.abs(u-o),Math.abs(t-o)<=l?[u,o]:[o,t]),!n&&e&&e(r),o}function Md(e,t,o,a,i){var n=o.x,r=o.y,l=o.width,o=o.height;return((o=i?o:l)-((i?a.y:a.x)-(i?r:n)))/o*(t-e)+e}function Od(s,e,t,o,a,i,n){var u,r=(l=Ye(t,e,o)).ui,l=l.option,h=r.bounds.bodyRect,c=H(t,e,o,a,s);if(r&&l&&Q(h,c))return t=r.xAxisDataZoom,e=r.yAxisDataZoom,o=t?t.slider:null,a=e?e.slider:null,u=!1,ze(l=[o,a]).call(l,function(e){var t,o,a,i,n,r,l;e&&(t=e.value,n=e.zoomIncrement,o=e.min,a=e.max,i=e.setter,n=(a-o)*n*(0<s.scrollDelta?1:-1),r=Math.max(o,t[0]-n),l=Math.min(a,t[1]+n),e.axisObject&&(e=(e.axisObject.getValueByPoint(c)-t[0])/(t[1]-t[0]),r=Math.max(o,t[0]-2*n*e),l=Math.min(a,t[1]+2*n*(1-e))),l<=r&&(r=l-1),Math.abs(l-r)<Math.abs(n)||(i([r,l]),u=!0))}),u}function Ed(e,t,o,a){return"function"==typeof t?t(e,o,a):"string"==typeof t?br(new Date(e),t):e}function Hd(e,t,o){e.x;var a=e.y,e=(e.width,e.height),i=o-t;return 0<=t?a+e:o<=0?a:a+e*(1-Math.abs(t)/i)}function Wd(e,t,o,a){var i=(e=je(e,2))[0],e=e[1],n=(t=je(t,2))[0],t=t[1],o=(o-t)/(n-t)*(e-i)+i;return a?o:Math.max(i,Math.min(e,o))}function Fd(e,t){for(var o=0;o<e.length;o++)if(Q(e[o].rect,t))return e[o]}var Nd=ue.Date.now,ce=ht.Default,jd=ce.isArray,zd=ce.clone,Gd="12px arial",Ud=new qc,Ie=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onMove",value:function(e,t,o,a,i,n){if(!Ri(e)){Wn(o,t,this,e);var r=Ye(o,t,this),l=r.ui,s=r.option;if(l&&s&&s.tooltip.show){var u=s.tooltip;if(r._dragging||r.dragging)delete r.hoverTime,delete r.hoverPositionX,t.iv(),B.hide();else{r._moveTimer&&clearTimeout(r._moveTimer);var a=H(o,t,this,a,e),h=s.xAxis[0]._axisObj.zoomTimeRange,c=l.xAxisDataZoom,d=l.yAxisDataZoom,c=c?c.slider:null,d=d?d.slider:null;if(h&&s.series){var g,f=l.seriesDatas,p=l.bounds.bodyRect,v=p.x,y=(p.y,h[0]),x=h[1],m={},b=[],w=Ge(h=s.series).call(h,function(e){return e.name});if(Q(p,a)){for(var k in ze(f).call(f,function(e,a){var i,n;e&&(i={},n=l.seriesColors[a],ze(e).call(e,function(e){var t,o=e[0];o<y||x<o||(t=(t=m[o])||(m[o]={time:o,series:[]}),i[o])||(t.series.push([w[a],e[1],n]),i[o]=!0)}))}),m)b.push(m[k]);return Sd(b).call(b,function(e,t){return e.time>t.time?1:-1}),b.length&&(h=function(e,t){var o,a,i=t.length;if(1===i)return t[0];for(;1!==i;){var n=Math.floor(i/2),r=t[n],l=r.time;if(e===l)return r;if(g=Math.abs(e-l),Fe(o)&&a<g){for(var s=1/0,u=void 0,h=0;h<t.length;h++){var c=t[h],d=Math.abs(e-c.time);d<s&&(u=c,s=d)}return s<a&&u?u:o}i=(t=l<e?Me(t).call(t,Math.min(i-1,n+1)):Me(t).call(t,0,n)).length,o=r,a=g}var g,f=t[0];return a<(g=Math.abs(f.time-e))?o:f}(Math.floor((a.x-v)/p.width*(x-y)+y),b))&&("string"==typeof(f=s.xAxis[0]._axisObj.formatter)&&(g=f,f=function(e){return br(new Date(e),g)}),v=f(h.time,t,o),Me(p=l.seriesColors).call(p,0),f=[{label:v,datas:h.series,colors:Ge(s=h.series).call(s,function(e){return e[2]})}],f=Yn(f),u.formatter&&u.formatter(f,h.time,t,o),Ud.setInfo(f,o),p=h.time,r.hoverTime!==p&&(r.hoverTime=p,t.iv()),Ud._tipNode.a("drawTooltip",u.draw),u.draw?(B._container.style.padding="0",B._container.style.backgroundColor="unset",Ud.setScrollBarVisible(!1)):(B._container.style.padding=null,B._container.style.backgroundColor=null,Ud.setScrollBarVisible(!0)),B.show(Ud.getView(),e)),c||d?(v=r.sliderInfo={info:[],body:!0},c&&v.info.push({axis:Ji,info:c}),void(d&&v.info.push({axis:he,info:d}))):void 0}delete r.hoverTime,t.iv(),B.hide(),c&&(Q(Nn(c.sliderRect,3),a)||Q(Nn(c.sliderRect2,3),a)||Q(c.valueBarRect,a))?(E(o,"ew-resize"),r.sliderInfo={axis:Ji,info:c}):d&&(Q(Nn(d.sliderRect,3),a)||Q(Nn(d.sliderRect2,3),a)||Q(d.valueBarRect,a))?(E(o,"ns-resize"),r.sliderInfo={axis:he,info:d}):(delete r.sliderInfo,E(o,"default"))}}}}}},{key:"onLeave",value:function(e,t,o,a,i,n){o=Ye(o,t,this);void 0!==o.hoverTime&&(delete o.hoverTime,t.iv(),B.hide())}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var r,l,s,u=Wn(o,t,this,e),h=Ye(o,t,this),c=h.option,d=h.ui,g=h.sliderInfo;if(h&&c.onRectSelected){void 0!==h.hoverIndex&&(delete h.hoverIndex,t.iv(),B.hide());var c=d.bounds.bodyRect,d={x:a.x+u.rect.x,y:a.y+u.rect.y};if(Q(c,d))return h._dragging=!0,void(h.rectPoint1=d)}g&&(c=(u=g.info).sliderRect,d=u.sliderRect2,r=u.valueBarRect,l=u.value,u=u.barRect,s=H(o,t,this,a,e),h.dragging=!0,g.body?ze(o=g.info).call(o,function(e){e.draggingValue=Md(e.info.value[0],e.info.value[1],e.info.barRect,s,e.axis===he)}):Q(Nn(c,3),s)?g.fixed=l[1]:Q(Nn(d,3),s)?g.fixed=l[0]:Q(r,s)&&(Ji===g.axis?g.draggingValue=Ad(null,g.info,s,u,null,!0):g.draggingValue=_d(null,g.info,s,u,null,!0)))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,c=Wn(o,t,this,e),d=Ye(o,t,this),g=(d&&d._dragging&&(g=d.ui.bounds.bodyRect,c={x:a.x+c.rect.x,y:a.y+c.rect.y},d.rectPoint2=Qn(g,c),d._drawTimer&&clearTimeout(d._drawTimer),d._drawTimer=Wa(function(){t.iv(),delete d._drawTimer},2)),d.sliderInfo),c=d.option;d.dragging&&g&&(u=(r=g.info).barRect,r=r.setter,l=H(o,t,this,a,e),a=g.axis===Ji?Ad:_d,h=Ji===g.axis?c.xAxis[0]._axisObj.formatter:c.yAxis[0].axisLabel?c.yAxis[0].axisLabel.formatter:null,Fe(g.fixed)?(c=a(r,g.info,l,u,g.fixed),B.show(h?Ed(c,h,t,o):c,e)):Fe(g.draggingValue)?(c=g.draggingValue,a=a(null,g.info,l,u,null,!0)-c,u=g.info.value,c=g.info.min,s=g.info.max,(a=[u[0]+a,u[1]+a])[0]<c?a=[c,c+(u[1]-u[0])]:a[1]>s&&(a=[s-(u[1]-u[0]),s]),r(a),c=a.join(","),h&&(c=Ge(a).call(a,function(e){return Ed(e,h,t,o)}).join(",")),B.show(c,e)):g.body&&ze(u=g.info).call(u,function(e){var t=e.info,o=t.barRect,a=t.setter,i=t.min,t=t.max,n=e.info.value,r=e.draggingValue,n=Md(n[0],n[1],o,l,e.axis===he)-r,o=(e.axis===he&&(n=-n),e.info.value),r=[o[0]+n,o[1]+n];r[0]<i?r=[i,i+(o[1]-o[0])]:r[1]>t&&(r=[t-(o[1]-o[0]),t]),a(r)}),t.iv())}},{key:"onEndDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d,g,f,p=Ye(o,t,this);p&&(delete p.sliderInfo,delete p.dragging,B.hide(),p._dragging)&&(r=p.ui,l=p.option,s=r.rectPoint1,u=r.rectPoint2,h=r.valueAxis,c=l.xAxis,d=l.yAxis,g=xr(s,u),delete p._dragging,delete p.rectPoint1,delete p.rectPoint2,t.iv(),g)&&(f={x:[],y:[]},ze(c).call(c,function(e){e.type;var t,o,a,i,n=[],e=(f.x.push(n),e._axisObj.zoomTimeRange);e&&(t=(e=je(e,2))[0],o=(e=e[1])-t,i=r.bounds.bodyRect,a=Math.floor((g.x-i.x)/i.width*o+t),i=Math.floor((g.x-i.x+g.width)/i.width*o+t),a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),ze(d).call(d,function(e){var t,o,a,i,n=[];f.y.push(n),he===h&&(t=(e=je(e._axisObj.zoomValueRange,2))[0],e=e[1],a=((i=r.bounds.bodyRect).height-g.height-g.y+i.y)/i.height*(o=e-t)+t,i=(i.height-g.y+i.y)/i.height*o+t,a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),l.onRectSelected(f,t,o))}},{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.ui,s=r.option;if(l&&s&&!r.dragging){var u=l.xAxisDataZoom,h=l.yAxisDataZoom,c=H(o,t,this,a,e),u=u?u.slider:null,h=h?h.slider:null,u=(u&&Q(u.barRect,c)&&!r.sliderInfo&&(Ad(u.setter,u,c,u.barRect),t.iv()),h&&Q(h.barRect,c)&&!r.sliderInfo&&(_d(h.setter,h,c,h.barRect),t.iv()),s.onItemClicked);if(u&&ht.Default.isFunction(u)){var r=l.interactiveInfo,c=l.seriesDatas,h=l.bounds.bodyRect,l=r.axisInfos,r=s.xAxis[0]._axisObj.zoomTimeRange,d=r[0],g=r[1],f={},p=[],v=Ge(r=s.series).call(r,function(e){return e.name}),s=H(o,t,this,a,e);if(Q(h,s)&&l.length){var y,x,m=s.x,b=1/0,w=l[0];for(x in ze(c).call(c,function(e,a){var i;e&&(i={},ze(e).call(e,function(e){var t,o=e[0];o<d||g<o||(t=(t=f[o])||(f[o]={time:o,series:[]}),i[o])||(t.series.push({name:v[a],value:e}),i[o]=!0)}))}),f)p.push(f[x]);Sd(p).call(p,function(e,t){return e.time>t.time?1:-1});for(var k=0;k<w.length;k++){var C=Math.abs(w[k].position-m);C<b&&(b=C,y=k)}r=p[y];r&&u({category:r.time,datas:r.series,index:y},t,o)}}}}},{key:"onScroll",value:function(e,t,o,a,i,n){Od(e,t,o,this,a)&&(delete Ye(o,t,this).hoverTime,t.iv())}}]),t}(),Yd=[sn,un,dn,gn,hn,cn],pd=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),a=H(o,t,this,a,e);r.itemList&&(e=Fd(r.itemList,a),E(o,e?e.isDisabled?"not-allowed":"pointer":"default"),a=e?e.label:void 0,r.hoverLabel!==a)&&(r.hoverLabel=a,t.iv())}},{key:"onDown",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this),a=H(o,t,this,a,e);u.itemList&&(a=(e=Fd(u.itemList,a))?e.label:void 0,r=X(this,"current",t),l=u.onChange,u=u.totalPage,s=t.a(r),a=a,e)&&!e.isDisabled&&s!==(a=0<=Oe(Yd).call(Yd,a)?a===sn?s-1:a===un?s+1:a===dn?1:a===hn?Math.max(1,s-5):a===cn?Math.min(u,s+5):u:a)&&(t.a(r,a),l)&&l(s,a,t,o)}},{key:"onLeave",value:function(e,t,o,a,i,n){var r=Ye(o,t,this);E(o,"default"),r.hoverLabel&&(delete r.hoverLabel,t.iv())}}]),t}(),vd=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onBeginDrag",value:function(e,t,o,a,i,n){_l.apply(this,arguments)}},{key:"onDrag",value:function(e,t,o,a,i,n){Ml.apply(this,arguments)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){Ol.apply(this,arguments)}},{key:"onScroll",value:function(e,t,o,a,i,n){El.apply(this,arguments)}}]),t}(),Xd=a([].reverse),yd=[1,2];v({target:"Array",proto:!0,forced:String(yd)===String(yd.reverse())},{reverse:function(){return ha(this)&&(this.length=this.length),Xd(this)}});function Zd(e,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"red",a=3<arguments.length?arguments[3]:void 0,i=4<arguments.length?arguments[4]:void 0,n=t.x,r=t.y,l=t.width,t=t.height,s=void 0===(s=a.showBorder)||s,u=void 0===(u=a.surfaceAngle)?20:u,h=a.brighterColor,a=a.darkerColor,c=(u*=Math.PI/180,[]),u=l/2*Math.tan(u);c[0]={x:n,y:r},c[1]={x:n+l/2,y:r-u},c[2]={x:n+l,y:r},c[3]={x:n+l/2,y:r+u},c[4]={x:n,y:r+t},c[5]={x:n+l/2,y:r+t-u},c[6]={x:n+l,y:r+t},c[7]={x:n+l/2,y:r+t+u},i?(e.beginPath(),e.moveTo(c[0].x,c[0].y),e.bezierCurveTo(c[0].x,c[1].y,c[2].x,c[1].y,c[2].x,c[2].y),e.bezierCurveTo(c[2].x,c[3].y,c[0].x,c[3].y,c[0].x,c[0].y),e.closePath(),(n=e.createLinearGradient(c[3].x,c[3].y,c[1].x,c[1].y)).addColorStop(0,o),n.addColorStop(1,h||bn(o,40)),e.fillStyle=n,Ue(e).call(e),s&&(e.strokeStyle=a||wn(o),e.stroke()),e.beginPath(),e.moveTo(c[0].x,c[0].y),e.bezierCurveTo(c[0].x,c[3].y,c[2].x,c[3].y,c[2].x,c[2].y),e.lineTo(c[6].x,c[6].y),e.bezierCurveTo(c[6].x,c[7].y,c[4].x,c[7].y,c[4].x,c[4].y),e.lineTo(c[0].x,c[0].y),e.closePath(),(l=e.createLinearGradient(c[0].x,(c[4].y-c[0].y)/2+c[0].y,c[2].x,(c[6].y-c[2].y)/2+c[2].y)).addColorStop(0,o),l.addColorStop(.5,h||bn(o,40)),l.addColorStop(1,o),e.fillStyle=l,Ue(e).call(e),s&&(e.strokeStyle=a||wn(o),e.stroke())):(e.beginPath(),e.moveTo(c[0].x,c[0].y),e.lineTo(c[1].x,c[1].y),e.lineTo(c[2].x,c[2].y),e.lineTo(c[3].x,c[3].y),e.lineTo(c[0].x,c[0].y),e.closePath(),s&&(e.strokeStyle=a||wn(o),e.stroke()),(r=e.createLinearGradient(c[3].x,c[3].y,c[1].x,c[1].y)).addColorStop(0,o),r.addColorStop(1,h||bn(o,60)),e.fillStyle=r,Ue(e).call(e),e.beginPath(),e.moveTo(c[0].x,c[0].y),e.lineTo(c[3].x,c[3].y),e.lineTo(c[7].x,c[7].y),e.lineTo(c[4].x,c[4].y),e.lineTo(c[0].x,c[0].y),e.closePath(),s&&(e.strokeStyle=a||wn(o),e.stroke()),(t=e.createLinearGradient(c[3].x,c[3].y,c[4].x,c[4].y)).addColorStop(0,o),t.addColorStop(1,h||bn(o,60)),e.fillStyle=t,Ue(e).call(e),e.beginPath(),e.moveTo(c[3].x,c[3].y),e.lineTo(c[2].x,c[2].y),e.lineTo(c[6].x,c[6].y),e.lineTo(c[7].x,c[7].y),e.lineTo(c[3].x,c[3].y),e.closePath(),s&&(e.strokeStyle=a||wn(o),e.stroke()),(u=e.createLinearGradient(c[3].x,c[3].y,c[6].x,c[6].y)).addColorStop(0,o),u.addColorStop(1,h||bn(o,60)),e.fillStyle=u,Ue(e).call(e))}function qd(e){var t,o,a,i,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length?arguments[2]:void 0,l=3<arguments.length?arguments[3]:void 0,s=4<arguments.length?arguments[4]:void 0,u=5<arguments.length?arguments[5]:void 0,h=6<arguments.length?arguments[6]:void 0,c=7<arguments.length?arguments[7]:void 0,d=8<arguments.length&&void 0!==arguments[8]?arguments[8]:"bar",s=s[u],r=vr(r,u),g=n.position||"top",u="function"==typeof n.color?n.color(s,u,r,h,c):n.color||r,r=("line"===d?"left"===g?(t=l.x,o=l.y,a="middle",i="right"):"right"===g?(t=l.x,o=l.y,a="middle",i="left"):"top"===g?(t=l.x,o=l.y,a="bottom",i="center"):"bottom"===g&&(t=l.x,o=l.y,a="top",i="center"):"left"===g?(t=l.x,o=l.y+l.height/2,a="middle",i="right"):"right"===g?(t=l.x+l.width,o=l.y+l.height/2,a="middle",i="left"):"top"===g?(t=l.x+l.width/2,o=l.y,a="bottom",i="center"):"bottom"===g&&(t=l.x+l.width/2,o=l.y+l.height,a="top",i="center"),{x:t,y:o,value:s=n.formatter&&"function"==typeof n.formatter?n.formatter(s,h,c):s,stackValue:s,textBaseline:a,textAlign:i,labelColor:u});return e.push(r),r}var Kd=e("Array").reverse,Jd=Array.prototype,$d=function(e){var t=e.reverse;return e===Jd||ve(Jd,e)&&t===Jd.reverse?Kd:t},Qd=function(n,r,e,l,s){var u,O,E,a,i,t,h,c,d,g,f,H,W,F,N,j,o,p=s.seriesDatas[e],v=s.data,y=s.view,z=r.name,x=r.itemStyle||{},m=r.lineStyle||{},G=r.areaStyle||{},b=r.markArea||{},w=s.bounds,k=(w.xAxisRects,w.yAxisRects,w.bodyRect),w=k.x,C=k.y,T=k.width,V=k.height,U=vr(l.color,e),D=l.xAxis[r.xAxisIndex||0],I=l.yAxis[r.yAxisIndex||0],S=I._axisObj.valueRange,L=s.hoverIndex,B=S[0],R=S[1],P=D._axisObj.axisInfos,Y=r.smooth,X=!!r.connectNulls,Z=r.step,A=[],q=[],K=null,_=[],M=[],J=[];p&&p.length&&P&&(u=s.interactiveInfo.axisInfos[s.valueAxis===he?r.xAxisIndex||0:r.yAxisIndex||0],b&&(D=b.data,O=b.itemStyle,Xn(D))&&ze(D).call(D,function(e){var t,o,a,i;Xn(e)&&2<=e.length&&(i=P[e[0].xAxisIndex].position,t=zn(e[0].yAxisValue,v,y),t=isNaN(t)?Wd([C,C+V],S,R,!0):Wd([C,C+V],S,t,!0),o=P[e[1].xAxisIndex].position,e=zn(e[1].yAxisValue,v,y),e=isNaN(e)?Wd([C,C+V],S,B,!0):Wd([C,C+V],S,e,!0),a=xr({x:i,y:t},{x:o,y:e}),i=function(){n.save(),n.fillStyle=ir(n,O.color,a),n.fillRect(a.x,a.y,a.width,a.height),n.restore()},b.drawArea?(n.save(),b.drawArea(n,a,{defaultDraw:i}),n.restore()):i())}),E=[],ze(p).call(p,function(e,t){var o,a,i;P[t]&&(o={x:P[t].position,y:Wd([C,C+V],S,e,!0)},a=[z,e,m.color||U,o.x,o.y],Z?"start"===Z?(A.push(o),u[t].series.push(a),t!==p.length-1&&(i=p[t+1])!==e&&A.push({x:o.x,y:Wd([C,C+V],S,i,!0)})):(t&&(i=p[t-1])!==e&&A.push({x:o.x,y:Wd([C,C+V],S,i,!0)}),A.push(o),u[t].series.push(a)):Fe(e)?(i=K?2:1,A.push(o),q.push(i),K=i,u[t].series.push(a),_.push(o),qd(E,r.label,l.color,o,p,t,s.data,s.view,"line")):(X&&q.length?u[t].series.push([z,"-",m.color||U,o.x,o.y]):(u[t].series.push([z,"-",m.color||U,o.x,o.y]),K=null),_.push(null)))}),s.labelInfo[e]=E,Me(A).call(A,0),A=Ge(A).call(A,function(e){return Qn(k,e)}),n.save(),n.beginPath(),n.rect(w,C,T,V),!1!==r.clip&&n.clip(),M=X?0<ti(_).call(_,function(e){return null!=e}).length?[ti(_).call(_,function(e){return null!=e})]:[]:function(e){for(var t=0,o=[],a=0;a<e.length;a++)null===e[a]?e[a-1]&&t++:(o[t]=o[t]||[],o[t].push(e[a]));return o}(_),ze(M).call(M,function(e,t){Y&&(2<=e.length?(e=er(e,"number"==typeof Y?Y:void 0),M[t]=Ge(t=e.points).call(t,function(e){return Qn(k,e)}),J.push(e.segments)):J.push([1]))}),G.color&&(Z?(D=A[0],e=A[A.length-1],T=Hd(k,B,R),qn(n,A,q),n.lineTo(e.x,T),n.lineTo(D.x,T),n.closePath(),n.fillStyle=ir(n,G.color,k),Ue(n).call(n)):ze(M).call(M,function(e,t){var o=e[0],a=e[e.length-1],i=Hd(k,B,R);qn(n,e,J[t]),n.lineTo(a.x,i),n.lineTo(o.x,i),n.closePath(),n.fillStyle=ir(n,G.color,k),Ue(n).call(n)})),e=m.color||U,n.lineWidth=m.width||2,n.strokeStyle=ir(n,e),s.seriesColors.push(e),I.piecewise&&0<I.piecewise.length&&(a=n.createLinearGradient(w,C+V,w,C),ze(D=I.piecewise).call(D,function(e,t){function o(e){return e<0?0:1<e?1:e}if(0===t){if(We(e.lt)&&We(e.lte))return;a.addColorStop(0,e.color),a.addColorStop(o(((e.lt||e.lte)-B)/(R-B)),e.color)}else if(t===I.piecewise.length-1){if(We(e.gt)&&We(e.gte))return;a.addColorStop(o(((e.gt||e.gte)-B)/(R-B)),e.color),a.addColorStop(1,e.color)}else{if(We(e.lt)&&We(e.lte)||We(e.gt)&&We(e.gte))return;a.addColorStop(o(((e.lt||e.lte)-B)/(R-B)),e.color),a.addColorStop(o(((e.gt||e.gte)-B)/(R-B)),e.color)}n.strokeStyle=a})),m.pattern&&n.setLineDash(m.pattern),Z?(qn(n,A,q),n.stroke()):ze(M).call(M,function(e,t){qn(n,e,J[t]),n.stroke()}),n.restore(),i=x.size||0,t=x.activeSize||3,i||1!==A.length||(i=1),T=x.background,h=void 0===T?e:T,w=x.borderWidth,c=void 0===w?1:w,D=x.borderColor,d=void 0===D?e:D,g=x.visible,f=x.image,H=x.drawItem,W=x.drawActiveItem,!1!==g&&ze(_).call(_,function(e,t){var o=i;if(e&&o){if("function"==typeof g){var a=s.hoverIndex===t;if(a||!g(e,t,p,a,v,y))return}H?(a={x:e.x-o,y:e.y-o,width:2*o,height:2*o},H(n,p[t],a,{point:e,seriesData:p,index:t,data:v,view:y,active:s.hoverIndex===t})):f?mr(n,wr(f),"uniform",e.x-o,e.y-o,2*o,2*o):(n.beginPath(),o&&n.arc(e.x,e.y,o,0,2*Math.PI),h&&(n.fillStyle=h,Ue(n).call(n)),c&&d&&(n.lineWidth=c,n.strokeStyle=d,n.stroke()))}}),void 0!==L)&&t&&(T=x.activeBackground,F=void 0===T?h:T,w=x.activeBorderColor,N=void 0===w?d:w,e=x.activeBorderWidth,j=void 0===e?c:e,s._hoverHandlers||(s._hoverHandlers=[]),o=_[L])&&("function"!=typeof g||g(o,L,p,!0,v,y))&&s._hoverHandlers.push(function(){var e;W&&"function"==typeof W?(e={x:o.x-t,y:o.y-t,width:2*t,height:2*t},W(n,p[L],e,{point:o,seriesData:p,index:L,data:v,view:y})):f?mr(n,wr(f),"uniform",o.x-t,o.y-t,2*t,2*t):(n.beginPath(),n.arc(o.x,o.y,t,0,2*Math.PI),F&&(n.fillStyle=F,Ue(n).call(n)),j&&N&&(n.lineWidth=j,n.strokeStyle=N,n.stroke()))})},eg=function(l,s,e,u,h){var c,d,g,f,p,v=h.seriesDatas[e],y=s.name,x=s.label||{},t=h.bounds.bodyRect,o=(t.x,t.y),a=(t.width,t.height),m=s.color||vr(u.color,e),i=u.xAxis[s.xAxisIndex||0],n=u.yAxis[s.yAxisIndex||0],b=i._axisObj.unitWidth,w=n._axisObj.valueRange,n=w[0],O=w[1],k=s.round||{},C=i._axisObj.axisInfos,T=s.shadow,V=s.barWidth||.8,i=h.barSeries,r=h.barStackCount,D=h.barStackMap,r=(h.hoverIndex,i.length+r),I=Oe(i).call(i,s),S=h.barCategoryGap||0,L=(b-2*(1<=S?S:b*S))/r,B=s.drawBar,R=h.view&&h.view.getZoom?h.view.getZoom():1;if(s.stack&&D[s.stack]){var P,A,_=D[s.stack].stackData,M=0;for(P in D){if(0<=Oe(A=D[P].series).call(A,s)){I=M;break}M++}}V<1&&(V=Math.max(1,L*V)),v&&v.length&&C&&(c=[],d=h.interactiveInfo.axisInfos[h.valueAxis===he?s.xAxisIndex||0:s.yAxisIndex||0],g=Hd(t,n,O),f=[o,o+a],p=[],ze(v).call(v,function(e,t){var o,a,i,n,r;_&&_[t],o="function"==typeof m?m(e,t,vr(u.color,t),h.data,h.view):m,C[t]&&(a={x:C[t].position,y:Wd(f,w,e)},_?(i=_[t]?0<=e?_[t][1]:_[t][0]:0,n=Wd(f,w,i||0),n={x:a.x-b/2+L*I+(L-V)/2+(1<=S?S:b*S),y:(a.y<g?a.y:a.y-Math.abs(a.y-g))-(g-n),width:V,height:Math.abs(a.y-g)},r=qd(p,s.label,u.color,n,v,t,h.data,h.view),x.formatter&&"function"==typeof x.formatter?r.stackValue=x.formatter(i+e,h.data,h.view):r.stackValue=i+e):(n={x:a.x-b/2+L*I+(L-V)/2+(1<=S?S:b*S),y:a.y<g?a.y:a.y-Math.abs(a.y-g),width:V,height:Math.abs(a.y-g)},qd(p,x,u.color,n,v,t,h.data,h.view)),c.push(n),d[t].series.push([y,Fe(e)?e:"-",o,a.x,a.y,n])),_&&(We(_[t])&&(_[t]=[0,0]),0<=e?_[t][1]+=e:_[t][0]+=e)}),h.labelInfo[e]=p,h.seriesColors.push(vr(u.color,e)),l.save(),ze(c).call(c,function(n,e){function t(){l.fillStyle=r,T&&(t=T.color||wn(r),o=T.opacity,Fe(o)&&(a=or(t),e=Ii(a).call(a,3,1)[0]||255,t=Ee(a="rgba(".concat(a.join(","),",")).call(a,e/255*o,")")),l.shadowColor=t,l.shadowBlur=T.blur||0,l.shadowOffsetX=(T.offsetX||0)*R,l.shadowOffsetY=(T.offsetY||0)*R);var e=void 0===(a=k.topLeftRadius)?0:a,t=void 0===(o=k.topRightRadius)?null:o,o=void 0===(a=k.bottomLeftRadius)?null:a,a=void 0===(a=k.bottomRightRadius)?null:a;function i(e){return e<1?(n.width>n.height?n.height:n.width)*e:e}l.beginPath(),We(t)&&We(o)&&We(a)?xe(l,n.x,n.y,n.width,n.height,i(e)):xe(l,n.x,n.y,n.width,n.height,i(e),i(t),i(o),i(a)),l.closePath(),Ue(l).call(l)}var r=ir(l,"function"==typeof m?m(v[e],e,vr(u.color,e),h.data,h.view):m,n);B?B(l,v[e],n,{defaultDraw:t,index:e,boundary:{x:n.x,y:o,width:n.width,height:a},color:r,data:h.data,view:h.view}):t()}),l.restore())},tg=function(i,e,t,o,n){var r,l,s,a,u,h,c,d,g,f,p,v,y,x,m=n.seriesDatas[t],b=n.data,w=n.view,O=e.name,k=e.itemStyle||{},C=e.lineStyle||{},E=e.areaStyle||{},T=e.diffAreaStyle||{},V=n.bounds,V=(V.xAxisRects,V.yAxisRects,V.bodyRect),D=V.x,I=V.y,S=V.width,H=V.height,L=vr(o.color,t),t=o.xAxis[e.xAxisIndex||0],o=o.yAxis[e.yAxisIndex||0],B=(t._axisObj.unitWidth,o._axisObj.valueRange),o=n.hoverIndex,R=B[0],P=B[1],W=t._axisObj.axisInfos,t=e.smooth,F=!!e.connectNulls,A=[],_=[],N=null,M=[];m&&m.length&&W&&(r=n.interactiveInfo.axisInfos[n.valueAxis===he?e.xAxisIndex||0:e.yAxisIndex||0],l=[],n.diffPointsList.push(l),ze(m).call(m,function(e,t){var o,a;W[t]&&(o={x:W[t].position,y:Wd([I,I+H],B,e,!0)},Fe(e)?(a=N?2:1,F&&1===a&&_.length&&(a=2),A.push(o),_.push(a),N=a,r[t].series.push([O,e,C.color||L,o.x,o.y]),M.push(o)):(r[t].series.push([O,"-",C.color||L,o.x,o.y]),N=null,M.push(null)),l.push(o))}),Me(A).call(A,0),t&&2<=A.length&&(e=er(A,"number"==typeof t?t:void 0),A=e.points,_=e.segments),i.save(),i.beginPath(),i.rect(D,I,S,H),i.clip(),T&&Fe(T.targetIndex)&&(t=n.diffPointsList[T.targetIndex],e=Me(t).call(t,0),S=$d(D=Me(l).call(l,0)).call(D),e=Ee(e).call(e,S),qn(i,e),i.fillStyle=ir(i,T.color,xr(e)),Ue(i).call(i)),E.color&&(t=A[0],D=A[A.length-1],S=Hd(V,R,P),qn(i,A,_),i.lineTo(D.x,S),i.lineTo(t.x,S),i.closePath(),i.fillStyle=ir(i,E.color,V),Ue(i).call(i)),T=C.color||L,i.lineWidth=C.width||2,i.strokeStyle=ir(i,T),n.seriesColors.push(T),C.pattern&&i.setLineDash(C.pattern),qn(i,A,_),i.stroke(),i.restore(),s=k.size||0,a=k.activeSize||3,s||1!==A.length||(s=1),e=k.background,u=void 0===e?T:e,R=k.borderWidth,h=void 0===R?1:R,P=k.borderColor,c=void 0===P?T:P,d=k.visible,g=k.image,f=k.drawItem,!1!==d&&ze(M).call(M,function(e,t){i.beginPath();var o,a=s;e&&a&&("function"!=typeof d||!active&&d(e,t,m,active,b,w))&&(f?(o={x:e.x-a,y:e.y-a,width:2*a,height:2*a},f(i,m[t],o,{point:e,seriesData:m,index:t,data:b,view:w,active:n.hoverIndex===t})):g?mr(i,wr(g),"uniform",e.x-a,e.y-a,2*a,2*a):(a&&i.arc(e.x,e.y,a,0,2*Math.PI),u&&(i.fillStyle=u,Ue(i).call(i)),h&&c&&(i.lineWidth=h,i.strokeStyle=c,i.stroke())))}),void 0!==o)&&a&&(D=k.activeBackground,p=void 0===D?u:D,t=k.activeBorderColor,v=void 0===t?c:t,S=k.activeBorderWidth,y=void 0===S?h:S,n._hoverHandlers||(n._hoverHandlers=[]),x=M[o])&&("function"!=typeof d||d(x,o,m,!0,b,w))&&n._hoverHandlers.push(function(){g?mr(i,wr(g),"uniform",x.x-a,x.y-a,2*a,2*a):(i.beginPath(),i.arc(x.x,x.y,a,0,2*Math.PI),p&&(i.fillStyle=p,Ue(i).call(i)),y&&v&&(i.lineWidth=y,i.strokeStyle=v,i.stroke()))})},og=function(o,a,e,l,s){var u,h,c,d,g,i,n,f=s.seriesDatas[e],p=a.name,t=s.bounds.bodyRect,r=(t.x,t.y),v=(t.width,t.height),y=a.color||vr(l.color,e),x=l.xAxis[a.xAxisIndex||0],m=l.yAxis[a.yAxisIndex||0],b=x._axisObj.unitWidth,w=m._axisObj.valueRange,m=w[0],k=w[1],C=x._axisObj.axisInfos,T=(a.shadow,a.barWidth||.8),x=s.barSeries,V=s.barStackCount,D=s.barStackMap,V=(s.hoverIndex,x.length+V),I=Oe(x).call(x,a),S=s.barCategoryGap||0,L=(b-2*(1<=S?S:b*S))/V,B=a.label||{};if(a.stack&&D[a.stack]){var R,P,A=D[a.stack].stackData,_=0;for(R in D){if(0<=Oe(P=D[R].series).call(P,a)){I=_;break}_++}}T<1&&(T=Math.max(1,L*T)),f&&f.length&&C&&(u=[],h=s.interactiveInfo.axisInfos[s.valueAxis===he?a.xAxisIndex||0:a.yAxisIndex||0],c=Hd(t,m,k),d=[r,r+v],g=[],ze(f).call(f,function(e,t){var o,a,i,n,r="function"==typeof y?y(e,t,vr(l.color,t),s.data,s.view):y;C[t]&&(o={x:C[t].position,y:Wd(d,w,e)},A?(a=A[t]?0<=e?A[t][1]:A[t][0]:0,i=Wd(d,w,a||0),i={x:o.x-b/2+L*I+(L-T)/2+(1<=S?S:b*S),y:(o.y<c?o.y:o.y-Math.abs(o.y-c))-(c-i),width:T,height:Math.abs(o.y-c)},n=qd(g,B,l.color,i,f,t,s.data,s.view),B.formatter&&"function"==typeof B.formatter?n.stackValue=B.formatter(a+e,s.data,s.view):n.stackValue=a+e):(i={x:o.x-b/2+L*I+(L-T)/2+(1<=S?S:b*S),y:o.y<c?o.y:o.y-Math.abs(o.y-c),width:T,height:Math.abs(o.y-c)},qd(g,B,l.color,i,f,t,s.data,s.view)),u.push(i),h[t].series.push([p,Fe(e)?e:"-",r,o.x,o.y,i])),A&&(We(A[t])&&(A[t]=[0,0]),0<=e?A[t][1]+=e:A[t][0]+=e)}),s.labelInfo[e]=g,s.seriesColors.push(vr(l.color,e)),o.save(),V=(x=a.container||{show:!0,opacity:.1}).show,i=void 0===V||V,t=x.opacity,n=void 0===t?.1:t,ze(u).call(u,function(e,t){t=ir(o,"function"==typeof y?y(f[t],t,vr(l.color,t),s.data,s.view):y,e);i&&(o.save(),o.globalAlpha=n,Zd(o,{x:e.x,y:r,width:e.width,height:v},t,a,a.type===ln),o.restore()),Zd(o,e,t,a,a.type===ln)}),o.restore())},ag=function(t,e){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],a=e.offsetX,i=void 0===a?0:a,a=e.offsetY,n=void 0===a?0:a,a=e.font,r=void 0===a?"12px arial":a,a=e.shadowOffsetX,l=void 0===a?0:a,a=e.shadowOffsetY,s=void 0===a?0:a,u=e.shadowBlur,h=e.shadowColor,a=e.useStack,c=void 0===a||a;ze(o).call(o,function(e){t.save(),t.translate(i,n),t.font=r,t.shadowBlur=u,t.shadowColor=h,t.shadowOffsetX=l,t.shadowOffsetY=s,t.fillStyle=e.labelColor,t.textBaseline=e.textBaseline,t.textAlign=e.textAlign,t.fillText(c?e.stackValue:e.value,e.x,e.y),t.restore()})};var ig={show:!0,type:"value",splitNumber:5,bodyGap:0,fitRange:!0,axisLine:{show:!0,width:1,color:"rgb(61,61,61)",pattern:null},axisLabel:{show:!0,rotate:0,align:"auto",font:"12px arial",color:"rgb(61,61,61)",offsetX:0,offsetY:0},axisTick:{show:!0,color:"rgb(61,61,61)",length:5},splitLine:{show:!0,color:"#cccccc",width:1,interval:1,pattern:null,splitColors:null},zeroLine:{show:!1,width:1,color:"rgb(61,61,61)",pattern:null},inverse:!1},ng={show:!0,type:"category",data:[],bodyGap:0,axisLine:{show:!0,width:1,color:"rgb(61,61,61)"},axisLabel:{show:!0,rotate:0,align:"auto",font:"12px arial",color:"rgb(61,61,61)",offsetX:0,offsetY:0},axisTick:{show:!0,color:"rgb(61,61,61)",length:5},splitLine:{show:!1,color:"#cccccc",width:1,pattern:null,splitColors:null}},rg=["rgb(51,153,255)","rgb(93,217,174)","#FEB64D","rgb(241,125,164)","rgb(135,144,204)","rgb(124,145,155)","rgb(48,242,120)","rgb(212,0,0)","#32D3EB","#c4ccd3"],lg=function(){function a(e,t,o){c(this,a),this.option=t,this.axisOption=e,this.ui=o,this.series=[],this.seriesIndexs=[],this.axisInfos=[],this.data=zn(e.data,o.data,o.view)}return s(a,[{key:"initTimeAxis",value:function(){var t,o,e,a,i=this,n=this.series,r=[];ze(n).call(n,function(e,t){t=i.ui.seriesDatas[t];t&&(r=Ee(r).call(r,t))}),r.length?(t=[],ze(r).call(r,function(e){Xn(e)&&(e=e[0],kn(e)&&(e=(new Date).getTime()),t.push(e))}),Sd(t).call(t,function(e,t){return t<e?1:-1}),n=this.timeRange=[t[0],t[t.length-1]],(a=this.axisOption.axisLabel.formatter)||(o=this.adjustTimeFormatString(this.timeRange),a=function(e){return br(new Date(e),o)}),"string"==typeof a&&(o=a,a=function(e){return br(new Date(e),o)}),this.formatter=a,(a=this.getDataZoomOption())&&t.length?(e=n[0],n=n[1],(a=this.zoomTimeRange=[Fe(a.min)?a.min:e,Fe(a.max)?a.max:n])[1]-a[0]==0&&(a[0]===e?a[1]+=1:--a[0]),a.push(this.getUnitFromMaxAndMin(a[1],a[0])||1)):this.zoomTimeRange=this.timeRange):this.formatter=function(e){return e}}},{key:"getBoundWidth",value:function(){}},{key:"getBoundHeight",value:function(){}},{key:"getAxisValues",value:function(){var e,l=this,t=this.series,s=this.seriesIndexs,u=[],h={};for(e in ze(t).call(t,function(e,t){var a,t=l.ui.seriesDatas[s[t]];if(t)if(e.stack)a=(a=h[e.stack])||(h[e.stack]=[[],[]]),ze(t).call(t,function(e,t){var o=0<=e?a[1]:a[0];We(o[t])?o[t]=e:o[t]+=e});else if(Xn(t))u=Ee(u).call(u,t);else if(Zn(t)){for(var e=t.x,o=t.y,i=Math.min(e.length,o.length),n=[],r=0;r<i;r++)n.push([0,o[r]]);u=Ee(u).call(u,n)}}),h)var o,a=h[e],u=Ee(o=Ee(u).call(u,a[0])).call(o,a[1]);var i=[];return ze(u).call(u,function(e){Xn(e)?i.push(e[1]):Fe(e)&&i.push(ri(e))}),i}},{key:"getMaxValueBound",value:function(){var o=this.axisOption,e=this.getAxisValues(),t=this.ui,a=t.data,i=t.view,t=(this.valueRange||this.caluValueRange(e),this.getValuesByValueRange(!0)),n=o.axisLabel.formatter,r={width:0,height:0};return ze(t).call(t,function(e){var t=e,e=(n&&(t=n(e,a,i)),$n(o.axisLabel.font,t,o.axisLabel.rotate));r=e.width>=r.width?e:r}),r}},{key:"caluValueRange",value:function(e){var t,o=this.axisOption,a=o.max,i=o.min,n=o.splitNumber||5,o=Math.max.apply(this,e),r=Math.min.apply(this,e),l=o=o<0?0:o,s=r,u=r<0?(Fe(a)?a:o)-(Fe(i)?i:r):Fe(a)?a:o;if(Fe(i)&&Fe(a))t=(a-i)/n;else if(Fe(a)&&a/n%1==0){var h=Fe(i)?i:s;We(i)&&0<s&&(h=0),t=(a-(Fe(h)?h:s))/n}else if(1<o||o<=0){for(var c=1,d=u/c;100<=Aa(d);)d=u/(c*=10);for(d=Math.ceil(d)*c;d%n!=0||d/n%c!=0;)d+=c;t=(o=d)/n}else t=0<r?o/n:((Fe(a)?a:o)-r)/n;if(t=t||1,We(i))if(0<=r)i=0;else{for(var g=0;r<g;)g-=t;r=g}if(We(a))for(a=o+(r<0?r:0);a<l;)a+=t;(i=We(i)?r:i)||a||(t=a=1),this.valueRange=[i,a,t];h=this.getDataZoomOption();h&&e.length?((s=this.zoomValueRange=[Fe(h.min)?Math.max(i,h.min):i,Fe(h.max)?Math.min(a,h.max):a])[1]-s[0]==0&&(s[0]===i?s[1]+=t/1e3:s[0]-=t/1e3),s.push(this.getUnitFromMaxAndMin(s[1],s[0])||1)):this.zoomValueRange=this.valueRange}},{key:"getUnitFromMaxAndMin",value:function(e,t){for(var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:5,a=e-t,i=1,n=a/i;100<=Aa(n);)n=a/(i*=10);for(n=Math.ceil(n)*i;n%o!=0||n/o%i!=0;)n+=i;return n/o}},{key:"caluValueRange2",value:function(e){var t=this.axisOption,o=t.max,a=t.min;t.splitNumber,t=Math.min(this,e),e=Math.max(this,e),We(a)&&We(o)&&(e<0?o=0:0<t?(a=0,valueMax):(valueMax,valueMin)),this.valueRange=[a,o,void 0]}},{key:"adjustTimeFormatString",value:function(e){Sd(e).call(e,function(e,t){return t<e?1:-1});var t=e[0],e=e[e.length-1]-t;return e<18e5?"mm:ss":e<1728e5?"HH:mm":"YYYY-MM-DD"}},{key:"getDataZoomOption",value:function(){return this.axisOption.dataZoom}},{key:"getValuesByValueRange",value:function(e){var t=je(this.zoomValueRange,3),o=t[0],a=t[1],i=t[2],n=[],r=0,t=this.axisOption;if(0<=o){for(n.push(o),t.fitRange&&(r=o);r<a;)o<=r&&n.push(r),r+=i;n.push(a)}else{if(a<=0)for(n.push(a);o<r;)r<=a&&n.unshift(r),r-=i;else{for(;r<a;)n.push(r),r+=i;for(n.push(a),r=0;o<r;)n.unshift(r),r-=i}n.unshift(o)}var l,s,t=n.length;return 3<t&&(l=n[0],s=n[1],(n[t-1]-n[t-2])/i<(e=e?.4:.6)&&Ii(n).call(n,t-2,1),(s-l)/i<e)&&Ii(n).call(n,1,1),n}},{key:"drawMarkLine",value:function(){}}]),a}(),sg=function(){d(r,lg);var n=g(r);function r(e,t,o){var a,i;return c(this,r),(i=n.call(this,e,t,o)).axisIndex=Oe(a=t.xAxis).call(a,e),i.isValueAxis=o.valueAxis===Ji,i.position=e.position||(i.axisIndex?Le:Be),ze(a=t.series).call(a,function(e){(e.xAxisIndex||0)===i.axisIndex&&i.series.push(e)}),e.type===tn&&i.initTimeAxis(),i._labelSizes=[],i.boundHeight=i.getBoundHeight(),i}return s(r,[{key:"getTimeAxisTimes",value:function(){var o=this,e=this.series,a=[],t=(ze(e).call(e,function(e,t){t=o.ui.seriesDatas[t];t&&(a=Ee(a).call(a,t))}),[]);return ze(a).call(a,function(e){Xn(e)?t.push(e[0]):t.push(ri(e))}),Sd(t).call(t,function(e,t){return t<e?1:-1}),t}},{key:"getTextSizeWithRotate",value:function(o,e,t){var a,i,n,r,e=(e=We(e)?"":e).toString().split("\n"),l={x:0,y:0,width:0,height:0},s=(ze(e).call(e,function(e,t){e=He(o,e);e.width>l.width&&(l=e)}),Yn(l));return s.height=l.height*e.length,t?(e=new ht.Math.Vector2(0,0),a=new ht.Math.Vector2(s.width,0),i=new ht.Math.Vector2(s.width,s.height),n=new ht.Math.Vector2(0,s.height),r=new ht.Math.Vector2(s.width/2,s.height/2),t=lr(t),e.rotateAround(r,t),a.rotateAround(r,t),i.rotateAround(r,t),n.rotateAround(r,t),xr([e,a,i,n])):s}},{key:"getBoundHeight",value:function(){var a=this,i=this.axisOption;if(i.size)return i.size;var e=this.ui,t=e.data,e=e.view;if(!i.show)return $i;var n=i.axisLabel.rotate,o=i.axisTick.show?i.axisTick.length:0,r=this.getDataZoomOption();if(r&&!1!==r.sliderVisible&&(o+=18),!i.axisLabel.show||this.isValueAxis)return o+$i;var r=zn(i.data,t,e),l=Qi;if(i.type===tn)l=this.formatter(Nd(),t,e);else if(i.type===en)return r&&ze(r).call(r,function(e,t){var o=null;Fe(e)&&(o=e.toString()),i.axisLabel.formatter&&(o=i.axisLabel.formatter(o)),n?(e=a.getTextSizeWithRotate(i.axisLabel.font,o,n),a._labelSizes[t]=e):(e=a.getTextSizeWithRotate(i.axisLabel.font,o,0),a._labelSizes[t]=e)}),o+Math.max.apply(this,Ge(t=this._labelSizes).call(t,function(e){return e.height}))+2*$i;return n?o+this.getTextSizeWithRotate(i.axisLabel.font,l,n).height+2*$i:o+ +He(i.axisLabel.font,l).height+2*$i}},{key:"draw",value:function(f){var O,a=this,i=this.ui,p=i.data,v=i.view,y=this.axisOption,E=y.type===tn,e=this.axisIndex,t=i.bounds.xAxisRects[e],x=i.boundaryGap,m=t.x,b=t.y,w=t.width,k=t.height,C=this.data||[],T=this.formatter||y.axisLabel.formatter,o=this.timeRange;if(!1!==y.show&&y.axisLine.show&&(f.save(),f.strokeStyle=y.axisLine.color,f.lineWidth=y.axisLine.width,y.axisLine.pattern&&f.setLineDash(y.axisLine.pattern),f.beginPath(),this.position===Le?(f.moveTo(m,b+k),f.lineTo(m+w,b+k)):(f.moveTo(m,b),f.lineTo(m+w,b)),f.stroke(),f.restore()),y.type===tn){C=[];if(ze(M=this.series).call(M,function(e,t){t=a.ui.seriesDatas[t];t&&t.length>C.length&&(C=Ge(t).call(t,function(e){return e[0]}))}),!(o&&o[0]&&o[1]))return;O=o[1]-o[0]}var H,V,W,F,n,D,N,I,S,r,L,l,s,B,R,u,h,c,d,g,P,j,z,G,A=0,_=0,M=1;1<C.length?_=A=x?w/(C.length-(M=1)+M):w/(C.length-(M=1)):A=w/2,C&&C.length&&(this.unitWidth=A,H=1===C.length?this.axisInfos=[{position:m+A,label:T?T(C[0],p,v):C[0],value:C[0]}]:this.axisInfos=Ge(C).call(C,function(e,t){return{position:(E?m+(e-o[0])/O*w:m+t*A)+x*A/2,label:T?T(e,p,v):e,value:e}}),!1!==y.show)&&(y.axisLabel.show||y.axisTick.show)&&(V=y.axisLabel.font,W=y.axisLabel.color,F=y.axisLabel.align,n=y.axisTick.length,D=y.axisLabel.rotate,N=y.axisLabel.offsetX,h=y.axisLabel.offsetY,I=(this.position===Le?b:b+2+(y.axisTick.show?y.axisTick.length:0))+h,S=y.axisLabel.drawLabel,r=0,L=[],ze(C).call(C,function(e){T&&(e=T(e,p,v));e=a.getTextSizeWithRotate(V,e);L.push(e),r+=e.width}),r>t.width&&!e&&(M=Math.ceil(r/t.width)),y.axisTick.show&&n&&(0===(l=Fe(y.axisTick.interval)?y.axisTick.interval:M)&&(l=1),(s=y.axisTick.drawTick)&&"function"==typeof s?ze(C).call(C,function(e,t){var o;t%l==0&&(o=m+t*_,a.position===Le?s(f,{x:o,y:b+k,tickLongness:n,label:e,index:t},i.data,i.view):s(f,{x:o,y:b,tickLongness:n,label:e,index:t},i.data,i.view))}):(f.strokeStyle=y.axisTick.color,f.beginPath(),ze(C).call(C,function(e,t){t%l==0&&(t=m+t*_,a.position===Le?(f.moveTo(t,b+k),f.lineTo(t,b+k-n)):(f.moveTo(t,b),f.lineTo(t,b+n)))}),f.stroke())),y.axisLabel.show&&(0===(B=Fe(y.axisLabel.interval)?y.axisLabel.interval:M)&&(B=1),R=[],ze(C).call(C,function(e,t){var o,a,i,n,r,l,s,u,h,c,d,g;(t%B==0||y.axisLabel.showMaxLabel&&t===C.length-1)&&("function"==typeof(o=W)&&(o=o(e.toString(),t)),a=L[t],i=H[t].position+N,We(e)&&(e=""),T&&(e=T(e,p,v)),f.save(),u=D?i:i-a.width/2,h=I,d=a.width,n=a.height,D?(0<D&&(u-=d,h-=n/2),D<0&&(h-=n/2),r=[],l=new ht.Math.Vector2({x:u+(0<D?d:0),y:h+n/2}),ze(s=[{x:u,y:h},{x:u+d,y:h},{x:u+d,y:h+n},{x:u,y:h+n}]).call(s,function(e){e=new ht.Math.Vector2(e);e.rotateAround(l,lr(-D)),r.push({x:e.x,y:e.y})}),s=ht.Default.unionPoint(r),R.push(ht.Default.clone(s))):R.push({x:u,y:h,width:d,height:n}),S&&"function"==typeof S?(s=w/C.length,u={x:m+s*t,y:b,width:s,height:k},!x&&2<=C.length&&(s=w/(C.length-1),u={x:m+s*t-s/2,y:b,width:s,height:k}),S(f,e,u,{data:p,view:v,index:t})):(D?f.translate(i,I):f.translate(i-(x?A/2:a.width/2),I),f.rotate(lr(-D)),D?(f.font=V,f.fillStyle=o,f.textAlign=0<D?Re:Pe,f.textBaseline=_e,h=e.toString().split("\n"),c=a.height/h.length,ze(h).call(h,function(e,t){f.fillText(e.toString(),0,0+t*c)})):(d=e.toString().split("\n"),g=a.height/d.length,x?ze(d).call(d,function(e,t){ht.Default.drawText(f,e.toString(),V,o,0,0+t*g,A,g,"center")}):ze(d).call(d,function(e,t){ht.Default.drawText(f,e.toString(),V,o,0,0+t*g,a.width,g,F)}))),f.restore())}),i.interactiveInfo.labelRects=R),y.splitLine.splitColors&&(u=y.splitLine.splitColors,h=i.bounds.bodyRect,c=h.x,d=h.y,h.width,g=h.height,ze(C).call(C,function(e,t){var o=c+t*_,a=c+(t+1)*_,t=u[t%u.length];t&&(f.fillStyle=t,f.beginPath(),f.moveTo(o,d),f.lineTo(a,d),f.lineTo(a,d+g),f.lineTo(o,d+g),Ue(f).call(f))})),f.save(),y.splitLine.show&&(0===(P=Fe(y.splitLine.interval)?y.splitLine.interval:M)&&(P=1),e=i.bounds.bodyRect,j=e.x,z=e.y,e.width,G=e.height,f.strokeStyle=y.splitLine.color,f.lineWidth=y.splitLine.width||1,y.splitLine.pattern&&f.setLineDash(y.splitLine.pattern),f.beginPath(),ze(C).call(C,function(e,t){t%P==0&&(t=j+t*_,f.moveTo(t,z),f.lineTo(t,z+G))}),f.stroke()),f.restore())}},{key:"drawMarkLine",value:function(v){var e,y,x,m,b,t=this.axisOption.markLines;t&&((e=this.ui.bounds.bodyRect).x,y=e.y,e.width,x=e.height,m=this.axisInfos,b=this.position,ze(t).call(t,function(e){for(var t,o,a,i,n,r,l,s,u=e.color,u=void 0===u?"rgba(242,83,75,0.7)":u,h=e.lineStyle,h=void 0===h?{}:h,c=e.itemStyle,c=void 0===c?{}:c,d=e.labelStyle,d=void 0===d?{}:d,g=e.arrowStyle,g=void 0===g?{}:g,f=e.value,p=0;p<m.length;p++)if(m[p].value===f){t=m[p];break}t&&(e=void 0===(e=c.show)||e,o=void 0===(o=c.radius)?2:o,c=void 0===(c=c.background)?u:c,s=void 0===(s=h.pattern)?[4,4]:s,a=void 0!==(a=d.show)&&a,i=void 0===(i=d.font)?Gd:i,n=void 0===(n=g.background)?u:n,g=void 0===(g=g.show)||g,r=h.color||u,h=h.width||1,u=d.color||u,d=d.formatter,l=t.position,v.save(),s&&v.setLineDash(s),v.lineWidth=h,v.strokeStyle=r,v.beginPath(),v.moveTo(l,y),v.lineTo(l,y+x),v.stroke(),e&&(v.beginPath(),v.arc(l,b===Le?y:y+x,o,0,2*Math.PI),v.fillStyle=c,Ue(v).call(v)),v.beginPath(),b===Le?(g&&(v.moveTo(l,y+x+3),v.lineTo(l-3,y+x-4),v.quadraticCurveTo(l,y+x-1,l+3,y+x-4),v.closePath(),v.fillStyle=n,Ue(v).call(v)),a&&(d&&(f=d(f)),s=He(i,f),yr(v,f,i,u,l,y+x+6,s.width,s.height,Ae,_e))):(g&&(v.moveTo(l,y-3),v.lineTo(l-3,y+4),v.quadraticCurveTo(l,y+1,l+3,y+4),v.closePath(),v.fillStyle=n,Ue(v).call(v)),a&&(d&&(f=d(f)),h=He(i,f),yr(v,f,i,u,l-h.width/2,y-h.height,h.width,h.height,Ae,_e))),v.restore())}))}}]),r}(),ug=function(){d(r,lg);var n=g(r);function r(e,t,o){var a,i;return c(this,r),(i=n.call(this,e,t,o)).axisIndex=Oe(a=t.yAxis).call(a,e),i.isValueAxis=o.valueAxis===he,i.position=e.position||(i.axisIndex?Re:Pe),ze(a=t.series).call(a,function(e,t){(e.yAxisIndex||0)===i.axisIndex&&(i.series.push(e),i.seriesIndexs.push(t))}),i.labelHeight=i.getLabelHeight(),i.boundWidth=i.getBoundWidth(),e.type===tn&&i.initTimeAxis(),i}return s(r,[{key:"getLabelHeight",value:function(){return this.getMaxValueBound().height}},{key:"getBoundWidth",value:function(){var e,t,o,a=this.axisOption;return a.size||(e=a.axisLabel.show?this.getMaxValueBound():{width:0,height:0},a=a.axisTick.show?a.axisTick.length:0,t=0,(o=this.getDataZoomOption())&&!1!==o.sliderVisible&&(t+=18),this.isValueAxis?t+e.width+a+2*$i:t+50)}},{key:"draw",value:function(a){var i,n,r,l,s,u,h,c,d,g,f,p,v,y,x,m,b,w,k,C,T,e,o,V,D,I,S,t,L=this,B=this.ui,R=B.data,P=B.view,A=this.axisOption,_=this.axisIndex,_=B.bounds.yAxisRects[_];!1!==A.show&&(e=this.getDataZoomOption(),t=this.zoomValueRange,i=A.axisLabel.rotate,e&&(e={x:_.x,y:_.y,width:18,height:_.height},this.drawSlider(a,e),_={x:_.x+18,y:_.y,width:_.width-18,height:_.height}),n=_.x,r=_.y,l=_.width,s=_.height,A.axisLine.show&&(a.save(),a.strokeStyle=A.axisLine.color,a.lineWidth=A.axisLine.width,A.axisLine.pattern&&a.setLineDash(A.axisLine.pattern),a.beginPath(),this.position===Re?(a.moveTo(n,r),a.lineTo(n,r+s)):(a.moveTo(n+l,r),a.lineTo(n+l,r+s)),a.stroke(),a.restore()),e=je(t,3),u=e[0],_=e[1],e[2],h=_-u,c=this.getValuesByValueRange(!0),d=0,A.axisTick.show&&(d=A.axisTick.length)&&((g=A.axisTick.drawTick)&&"function"==typeof g?ze(c).call(c,function(e,t){var o=r+s*(1-(e-u)/h);L.position===Re?g(a,{x:n,y:o,tickLongness:d,label:e,index:t},B.data,B.view):g(a,{x:n+l,y:o,tickLongness:d,label:e,index:t},B.data,B.view)}):(a.strokeStyle=A.axisTick.color,a.beginPath(),ze(c).call(c,function(e){e=r+s*(1-(e-u)/h);L.position===Re?(a.moveTo(n,e),a.lineTo(n+d,e)):(a.moveTo(n+l,e),a.lineTo(n+l-d,e))}),a.stroke())),A.axisLabel.show&&(t=l-2-(A.axisTick.show?d:0),e=A.axisLabel.font,f=A.axisLabel.color,p=A.axisLabel.offsetX,v=A.axisLabel.offsetY,y=A.axisLabel.formatter,x=He(e,Qi),m=n+(this.position===Re?d:t),a.font=e,a.textAlign=this.position===Pe?Re:Pe,a.textBaseline=_e,ze(c).call(c,function(e,t){if(e===u&&s*((c[t+1]-u)/h)<x.height)return;var o=r+s*(1-(e-u)/h),o=(a.save(),a.translate(m,o),a.rotate(lr(-i)),"function"==typeof y&&(e=y(e,R,P)),f);"function"==typeof f&&(o=f(e,t)),a.fillStyle=o,a.fillText(e,p,v),a.restore()})),A.splitLine.splitColors&&(b=A.splitLine.splitColors,t=B.bounds.bodyRect,w=t.x,k=t.y,C=t.width,T=t.height,A.splitLine.interval,ze(c).call(c,function(e,t){var o=c[t+1],e=k+T*(1-(e-u)/h),o=k+T*(1-(o-u)/h),t=b[t%b.length];t&&(a.fillStyle=t,a.beginPath(),a.moveTo(w,e),a.lineTo(w+C,e),a.lineTo(w+C,o),a.lineTo(w,o),Ue(a).call(a))})),A.splitLine.show&&(a.save(),e=B.bounds.bodyRect,o=e.x,V=e.y,D=e.width,I=e.height,S=A.splitLine.interval,a.strokeStyle=A.splitLine.color,a.lineWidth=A.splitLine.width||1,A.splitLine.pattern&&a.setLineDash(A.splitLine.pattern),a.beginPath(),ze(c).call(c,function(e,t){t%S!=0||0===t&&B.bottomAxis.length||t===c.length-1&&B.topAxis.length||(a.moveTo(o,t=V+I*(1-(e-u)/h)),a.lineTo(o+D,t))}),a.stroke(),a.restore()),A.zeroLine.show)&&0<=_&&u<=0&&(t=r+s*(1-(0-u)/h),a.save(),a.strokeStyle=A.zeroLine.color,a.lineWidth=A.zeroLine.width||1,A.zeroLine.pattern&&a.setLineDash(A.zeroLine.pattern),a.beginPath(),a.moveTo(B.bounds.bodyRect.x,t),a.lineTo(B.bounds.bodyRect.x+B.bounds.bodyRect.width,t),a.stroke(),a.restore())}},{key:"drawSlider",value:function(e,t){var a=this,o=t.x,i=(t.y,t.width),n=t.height,r=je(this.valueRange,2),l=r[0],s=r[1],r=this.ui,u=r.data,h=r.view,r=this.getDataZoomOption(),c=this.getDataZoomOption(),d=c.barBackground,d=void 0===d?"#eee":d,g=c.barValueBackground,g=void 0===g?"rgb(51,153,255)":g,f=c.barWidth,f=void 0===f?Math.min(12,i):f,p=c.barBorderRadius,p=void 0===p?0:p,v=c.min,v=void 0===v?l:v,y=c.max,y=void 0===y?s:y,x=c.sliderOffsetX,x=void 0===x?0:x,m=c.sliderOffsetY,m=void 0===m?0:m,b=c.sliderWidth,b=void 0===b?14:b,w=c.sliderHeight,w=void 0===w?5:w,k=c.sliderBackground,k=void 0===k?"#32D3EB":k,C=c.sliderBorderColor,C=void 0===C?"#32D3EB":C,T=c.sliderBorderWidth,T=void 0===T?1:T,V=c.sliderBorderRadius,V=void 0===V?0:V,D=c.sliderImage,I=c.sliderVisible,S=c.zoomIncrement,S=void 0===S?.05:S,L=c.onChange,c=s-l,v=Math.max(l,v),y=Math.min(s,y),B=(s<v&&(v=s),y<l&&(y=l),Yn(t)),o=(B.x=o+(i-f)/2,B.width=f,Yn(B)),i=(o.height*=(y-v)/c,o.y+=(s-y)/c*n,B.x+(f-b)/2+x),c=o.y+o.height-w/2+m,n=o.y-w/2+m;!1!==I&&(Un(e,B,d,p),Un(e,o,g,p),D?(Kn(e,ht.Default.getImage(D),i,c,b,w),Kn(e,ht.Default.getImage(D),i,n,b,w)):(V<1&&(V*=Math.min(b,w)),e.beginPath(),xe(e,i,c,b,w,V),e.closePath(),e.fillStyle=k,Ue(e).call(e),T&&(e.lineWidth=T,e.strokeStyle=C,e.stroke()),e.beginPath(),xe(e,i,n,b,w,V),e.closePath(),e.fillStyle=k,Ue(e).call(e),T&&(e.lineWidth=T,e.strokeStyle=C,e.stroke()))),this.ui.yAxisDataZoom={slider:{dataZoom:r,rect:t,barRect:B,zoomIncrement:S,min:l,max:s,value:[v,y],setter:function(e){var t=a.ui.originalOption.yAxis[0].dataZoom,o=[t.min,t.max];e[0]===l?delete t.min:t.min=e[0],e[1]===s?delete t.max:t.max=e[1],L&&L(o,e,u,h)},valueBarRect:o,sliderRect:{x:i,y:c,width:b,height:w},sliderRect2:{x:i,y:n,width:b,height:w}}}}},{key:"drawMarkLine",value:function(p){var v,y,x,m,b,w,e,t,k,C,T,V,o=this.axisOption.markLines;o&&(v=this.ui,y=v.bounds.bodyRect,x=y.x,m=y.y,b=y.width,w=y.height,e=this.getDataZoomOption()||{},t=this.valueRange,k=Fe(e.min)?e.min:t[0],C=Fe(e.max)?e.max:t[1],T=C-k,V=this.position,ze(o).call(o,function(e){var t,o,a,i,n,r,l,s,u=e.color,u=void 0===u?"rgba(242,83,75,0.7)":u,h=e.lineStyle,h=void 0===h?{}:h,c=e.itemStyle,c=void 0===c?{}:c,d=e.labelStyle,d=void 0===d?{}:d,g=e.arrowStyle,g=void 0===g?{}:g,f=e.value,e=e.draw;C<f||f<k||(t=void 0===(t=c.show)||t,o=void 0===(o=c.radius)?2:o,c=void 0===(c=c.background)?u:c,s=void 0===(s=h.pattern)?[4,4]:s,a=void 0===(a=d.show)||a,i=void 0===(i=d.font)?Gd:i,n=void 0===(n=g.background)?u:n,g=void 0===(g=g.show)||g,r=h.color||u,h=h.width||1,u=d.color||u,d=d.formatter,l=m+w*(1-Math.abs(f-k)/T),p.save(),s&&p.setLineDash(s),p.lineWidth=h,p.strokeStyle=r,p.beginPath(),p.moveTo(x,l),p.lineTo(x+b,l),p.stroke(),t&&(p.beginPath(),p.arc(V===Pe?x:x+b,l,o,0,2*Math.PI),p.fillStyle=c,Ue(p).call(p)),p.beginPath(),V===Pe?(g&&(p.moveTo(x+b+3,l),p.lineTo(x+b-4,l-3),p.quadraticCurveTo(x+b-1,l,x+b-4,l+3),p.closePath(),p.fillStyle=n,Ue(p).call(p)),a&&(d&&(f=d(f)),s=He(i,f),yr(p,f,i,u,x+b+6,l-s.height/2,s.width,s.height,Ae,_e))):(g&&(p.moveTo(x-3,l),p.lineTo(x+4,l-3),p.quadraticCurveTo(x+1,l,x+4,l+3),p.closePath(),p.fillStyle=n,Ue(p).call(p)),a&&(d&&(f=d(f)),h=He(i,f),yr(p,f,i,u,x-h.width-6,l-h.height/2,h.width,h.height,Ae,_e))),p.restore(),p.save(),e&&e(p,v.data,v.view,{bodyRect:y,lineRect:xr({x:x,y:l},{x:x+b,y:l}),value:f}),p.restore())}))}}]),r}(),ce=ht.Default,hg=ce.clone,cg=ce.unionPoint;var dg={show:!0,type:"time",bodyGap:0,axisLine:{show:!0,width:1,color:"rgb(61,61,61)"},axisLabel:{show:!0,rotate:0,align:"auto",font:"12px arial",color:"rgb(61,61,61)",offsetX:0,offsetY:0},axisTick:{show:!0,color:"rgb(61,61,61)",length:5},splitLine:{show:!1,color:"#cccccc",width:1}},gg=function(){d(i,sg);var a=g(i);function i(e,t,o){return c(this,i),a.call(this,e,t,o)}return s(i,[{key:"draw",value:function(e){var o,O=this,t=this.ui,a=t.data,i=t.view,n=this.axisOption,E=n.type===tn,r=this.axisIndex,r=t.bounds.xAxisRects[r],l=r.x,s=r.y,u=r.width,h=r.height,H=t.boundaryGap||0,c=this.data||[],d=this.getTimeAxisTimes(),g=n.axisLabel.rotate,W=n.axisLabel.offsetX,F=n.axisLabel.offsetY,f=this.formatter||n.axisLabel.formatter,p=this.zoomTimeRange,v=this.getDataZoomOption();if(n.show&&(v&&p&&(v={x:r.x,y:r.y+r.height-18,width:r.width,height:18},this.drawSlider(e,v),r.x,r.y,r.width,r.height),n.axisLine.show&&(e.strokeStyle=n.axisLine.color,e.lineWidth=n.axisLine.width,e.beginPath(),this.position===Le?(e.moveTo(l,s+h),e.lineTo(l+u,s+h)):(e.moveTo(l,s),e.lineTo(l+u,s)),e.stroke()),d)&&d.length){var y=He(n.axisLabel.font,Ed(Nd(),f,a,i));if(p&&p[0]&&p[1]){o=p[1]-p[0],c=[],ze(v=this.series).call(v,function(e,t){t=O.ui.seriesDatas[t];t&&t.length>c.length&&(c=Ge(t).call(t,function(e){return e[0]}))});var x=0,m=0,r=n.axisLabel.interval;if(o?(r=r||Math.max(Math.floor(u/(y.width+10)),1),x=u/r,m=o/r):x=u/2,x&&(this.unitWidth=x,1===c.length?this.axisInfos=[{position:l+x,label:Ed(c[0],f,a,i),value:c[0]}]:this.axisInfos=Ge(c).call(c,function(e,t){return{position:(E?l+(e-p[0])/o*u:l+t*x)+H*x/2,label:Ed(e,f,a,i),value:e}}),n.axisLabel.show||n.axisTick.show)){var b=n.axisLabel.font,w=n.axisLabel.color,k=n.axisLabel.align,C=n.axisTick.length,T=(this.position===Le?s:s+2+(n.axisTick.show?n.axisTick.length:0))+F,V=n.axisLabel.drawLabel;if(n.axisTick.show&&C){var D=l,I=n.axisTick.drawTick,S=p[0],L=0;if(I&&"function"==typeof I)if(o)for(;D<=l+u+2;)I(e,{x:D,y:s,tickLongness:C,label:S,index:L},t.data,t.view),D+=x,S+=m,L++;else I(e,{x:D+u/2,y:s,tickLongness:C,label:S,index:L},t.data,t.view);else{if(e.strokeStyle=n.axisTick.color,e.beginPath(),o)for(;D<=l+u+2;)e.moveTo(D,s),e.lineTo(D,s+C),D+=x;else e.moveTo(D+u/2,s),e.lineTo(D+u/2,s+C);e.stroke()}}if(n.axisLabel.show){var B=l+W,R=p[0];if(g)if(e.font=b,e.fillStyle=w,e.textAlign=0<g?Re:Pe,e.textBaseline=_e,o)for(;B<=l+u+2;)e.save(),e.translate(B,T),e.rotate(lr(-g)),e.fillText(Ed(R,f,a,i),0,0),B+=x,R+=m,e.restore();else e.save(),e.translate(B+u/2,T),e.rotate(lr(-g)),e.fillText(Ed(R,f,a,i),0,0),e.restore();else if(o)for(var N=0;B<=l+u+2;){var P={x:B-y.width/2,y:T,width:y.width,height:y.height};V&&"function"==typeof V?V(e,Ed(R,f,a,i),P,{data:a,view:i,index:N}):ht.Default.drawText(e,Ed(R,f,a,i),b,w,P.x,P.y,P.width,P.height,k),B+=x,R+=m,N++}else ht.Default.drawText(e,Ed(R,f,a,i),b,w,B+u/2-y.width/2,T,y.width,y.height,k)}if(e.save(),n.splitLine.show){var A=Fe(n.splitLine.interval)?n.splitLine.interval:1,h=(0===A&&(A=1),t.bounds.bodyRect),j=h.x,_=h.y,z=h.width,G=h.height,M=(e.strokeStyle=n.splitLine.color,e.lineWidth=n.splitLine.width||1,n.splitLine.pattern&&e.setLineDash(n.splitLine.pattern),e.beginPath(),j);if(p[0],o)for(;M<=j+z+2;)0%A==0&&(e.moveTo(M,_),e.lineTo(M,_+G)),M+=x;else{d=M+z/2;e.moveTo(d,_),e.lineTo(d,_+G)}e.stroke()}e.restore()}}}}},{key:"drawSlider",value:function(e,t){var a=this,o=(t.x,t.y),i=t.width,n=t.height,r=je(this.timeRange,2),l=r[0],s=r[1],r=this.ui,u=r.data,h=r.view,r=this.getDataZoomOption(),c=r.barBackground,c=void 0===c?"#eee":c,d=r.barValueBackground,d=void 0===d?"rgb(51,153,255)":d,g=r.barWidth,g=void 0===g?Math.min(12,i):g,f=r.barBorderRadius,f=void 0===f?0:f,p=r.min,p=void 0===p?l:p,v=r.max,v=void 0===v?s:v,y=r.sliderOffsetX,y=void 0===y?0:y,x=r.sliderOffsetY,x=void 0===x?0:x,m=r.sliderWidth,m=void 0===m?5:m,b=r.sliderHeight,b=void 0===b?14:b,w=r.sliderBackground,w=void 0===w?"#32D3EB":w,k=r.sliderBorderColor,k=void 0===k?"#32D3EB":k,C=r.sliderBorderWidth,C=void 0===C?1:C,T=r.sliderBorderRadius,T=void 0===T?0:T,V=r.sliderImage,D=r.sliderVisible,I=r.zoomIncrement,I=void 0===I?.05:I,S=r.onChange,L=s-l,p=Math.max(l,p),v=Math.min(s,v),B=(s<p&&(p=s),v<l&&(v=l),Yn(t)),o=(B.y=o+(n-g)/2,B.height=g,Yn(B)),n=(o.width*=(v-p)/L,o.x+=(p-l)/L*i,o.x-m/2+y),L=o.x+o.width-m/2+y,i=o.y+(g-b)/2+x;!1!==D&&(Un(e,B,c,f),Un(e,o,d,f),V?(Kn(e,ht.Default.getImage(V),n,i,m,b),Kn(e,ht.Default.getImage(V),L,i,m,b)):(T<1&&(T*=Math.min(m,b)),e.beginPath(),xe(e,n,i,m,b,T),e.closePath(),e.fillStyle=w,Ue(e).call(e),C&&(e.lineWidth=C,e.strokeStyle=k,e.stroke()),e.beginPath(),xe(e,L,i,m,b,T),e.closePath(),e.fillStyle=w,Ue(e).call(e),C&&(e.lineWidth=C,e.strokeStyle=k,e.stroke()))),this.ui.xAxisDataZoom={slider:{dataZoom:r,rect:t,barRect:B,valueBarRect:o,zoomIncrement:I,min:l,max:s,step:1,value:[p,v],setter:function(e){var t=a.ui.originalOption.xAxis[0].dataZoom,o=[t.min,t.max];e[0]===l?delete t.min:t.min=e[0],e[1]===s?delete t.max:t.max=e[1],S&&S(o,e,u,h)},sliderRect:{x:n,y:i,width:m,height:b},sliderRect2:{x:L,y:i,width:m,height:b}}}}},{key:"drawMarkLine",value:function(f){var p,v,e,y,x,m,b,w,k,C,t=this.axisOption,o=t.markLines;o&&(e=this.ui,p=e.data,v=e.view,e=e.bounds.bodyRect,y=e.x,x=e.y,m=e.width,b=e.height,this.axisInfos,w=this.position,k=this.formatter||t.axisLabel.formatter,C=this.zoomTimeRange,ze(o).call(o,function(e){var t,o,a,i,n,r,l,s,u=e.color,u=void 0===u?"rgba(242,83,75,0.7)":u,h=e.lineStyle,h=void 0===h?{}:h,c=e.itemStyle,c=void 0===c?{}:c,d=e.labelStyle,d=void 0===d?{}:d,g=e.arrowStyle,g=void 0===g?{}:g,e=e.value;e>C[1]||e<C[0]||(t=void 0===(t=c.show)||t,o=void 0===(o=c.radius)?2:o,c=void 0===(c=c.background)?u:c,s=void 0===(s=h.pattern)?[4,4]:s,a=void 0!==(a=d.show)&&a,i=void 0===(i=d.font)?Gd:i,n=void 0===(n=g.background)?u:n,g=void 0===(g=g.show)||g,r=h.color||u,h=h.width||1,u=d.color||u,d=d.formatter,l=y+(e-C[0])/(C[1]-C[0])*m,f.save(),s&&f.setLineDash(s),f.lineWidth=h,f.strokeStyle=r,f.beginPath(),f.moveTo(l,x),f.lineTo(l,x+b),f.stroke(),t&&(f.beginPath(),f.arc(l,w===Le?x:x+b,o,0,2*Math.PI),f.fillStyle=c,Ue(f).call(f)),f.beginPath(),w===Le?(g&&(f.moveTo(l,x+b+3),f.lineTo(l-3,x+b-4),f.quadraticCurveTo(l,x+b-1,l+3,x+b-4),f.closePath(),f.fillStyle=n,Ue(f).call(f)),a&&(e=Ed(e,k,p,v),d&&(e=d(e)),s=He(i,e),yr(f,e,i,u,l,x+b+6,s.width,s.height,Ae,_e))):(g&&(f.moveTo(l,x-3),f.lineTo(l-3,x+4),f.quadraticCurveTo(l,x+1,l+3,x+4),f.closePath(),f.fillStyle=n,Ue(f).call(f)),a&&(e=Ed(e,k,p,v),d&&(e=d(e)),h=He(i,e),yr(f,e,i,u,l-h.width/2,x-h.height,h.width,h.height,Ae,_e))),f.restore())}))}}]),i}(),fg=function(n,e,t,o,r){var a=r.seriesDatas[t],i=o.xAxis[e.xAxisIndex||0],l=i._axisObj.zoomTimeRange,t=vr(o.color,t),s=e.itemStyle||{},u=e.lineStyle||{},h=e.areaStyle||{},c=e.markArea||{},t=u.color||t;if(r.seriesColors.push(t),a&&a.length){var d,g,f,p,v,a=function(e,t,o,a){var i=Me(e).call(e,0);if(a){for(var n,r,l=a[0],s=a[1],u=0;u<i.length;u++)if(i[u][0]>=l){n=u;break}for(var h=i.length-1;0<=h;h--)if(i[h][0]<=s){r=h+1;break}i=Me(i).call(i,n,r)}if(!t)return i;var e=[],c=i.length;if(o){if(c<=o)return i;Array.prototype.push.apply(e,Ii(i).call(i,c-o,o))}var d=[];if(!(t<(c=i.length)))return o&&i.push.apply(i,e),i;var g=2*(c/t|0);if(g<3)return o&&i.push.apply(i,e),i;for(var f=0;f<c;f+=g){for(var p=Me(i).call(i,f,Math.min(f+g,c)),v=p.length,y=p[0],x=p[0],m=1;m<v;m++){var b=p[m];b[1]<x[1]&&(x=b),b[1]>y[1]&&(y=b)}y[0]>x[0]?(d.push(x),d.push(y)):(d.push(y),d.push(x))}return e=Ee(d).call(d,e)}(a,r.maxVisiblePoint,r.endProtectPoint,l),y=[],x=(e.name,r.data),m=r.view,b=r.bounds.bodyRect,w=b.x,k=b.y,C=b.width,T=b.height,V=o.yAxis[e.yAxisIndex||0]._axisObj.zoomValueRange,O=V[0],E=V[1],H=i._axisObj.axisInfos,W=l[0],F=l[1]-W,o=e.smooth,N=!!e.connectNulls,D=[],I=[],S=null,L=(c&&(i=c.data,g=c.itemStyle,Xn(i))&&ze(i).call(i,function(e){var t,o,a,i;Xn(e)&&2<=e.length&&(i=H[e[0].xAxisIndex].position,t=zn(e[0].yAxisValue,x,m),t=isNaN(t)?Wd([k,k+T],V,E,!0):Wd([k,k+T],V,t,!0),o=H[e[1].xAxisIndex].position,e=zn(e[1].yAxisValue,x,m),e=isNaN(e)?Wd([k,k+T],V,O,!0):Wd([k,k+T],V,e,!0),a=xr({x:i,y:t},{x:o,y:e}),i=function(){n.save(),n.rect(b.x,b.y,b.width,b.height),n.clip(),n.fillStyle=ir(n,g.color,a),n.fillRect(a.x,a.y,a.width,a.height),n.restore()},c.drawArea?(n.save(),n.rect(b.x,b.y,b.width,b.height),n.clip(),c.drawArea(n,a,{defaultDraw:i}),n.restore()):i())}),ze(a).call(a,function(e){var t=e[0],o=e[1];Fe(o)?(t={x:w+C*((t-W)/F),y:Wd([k,k+T],V,o,!0)},D.push(t),o=S?2:1,N&&1===o&&I.length&&(o=2),I.push(o),S=o,y.push(e)):S=null}),d=Me(D).call(D,0),o&&2<=D.length&&(f="number"==typeof o?o:void 0,p=[],ze(I).call(I,function(e,t){1===e&&(v=[],p.push(v)),v.push(D[t])}),D=[],I=[],ze(p).call(p,function(e){e=er(e,f);D=Ee(D).call(D,e.points),I=Ee(I).call(I,e.segments)})),D=Ge(D).call(D,function(e){return Qn(b,e)}),n.save(),n.beginPath(),n.rect(w,k,C,T),!1!==e.clip&&n.clip(),h.color&&1<D.length&&(l=D[0],i=D[D.length-1],a=Hd(b,O,E),qn(n,D,I),n.lineTo(i.x,a),n.lineTo(l.x,a),n.closePath(),n.fillStyle=ir(n,h.color,b),Ue(n).call(n)),n.lineWidth=u.width||2,n.strokeStyle=ir(n,t),u.pattern&&n.setLineDash(u.pattern),qn(n,D,I),n.stroke(),n.restore(),s.size||0),j=s.activeSize||3,o=(L||1!==D.length||(L=1),s.background),B=void 0===o?t:o,e=s.borderWidth,R=void 0===e?1:e,i=s.borderColor,P=void 0===i?t:i,A=s.visible,z=s.image,G=s.drawItem;if(!1!==A&&ze(d).call(d,function(e,t){n.beginPath();var o,a=L,i=y[t][0]===r.hoverTime;("function"!=typeof A||!i&&A(e,t,y,!1,x,m))&&(o={x:e.x-a,y:e.y-a,width:2*a,height:2*a},G?G(n,y[t],o,{index:t,data:x,view:m,active:i}):z?drawStretchImage(n,getImage(z),"uniform",e.x-a,e.y-a,2*a,2*a):(a&&Q(b,e)&&n.arc(e.x,e.y,a,0,2*Math.PI),n.closePath(),B&&(n.fillStyle=B,Ue(n).call(n)),R&&P&&(n.lineWidth=R,n.strokeStyle=P,n.stroke())))}),r.hoverTime&&j){var _,M,l=s.activeBackground,U=void 0===l?B:l,a=s.activeBorderColor,Y=void 0===a?P:a,h=s.activeBorderWidth,X=void 0===h?R:h;for(r._hoverHandlers||(r._hoverHandlers=[]),M=0;M<y.length;M++)if(y[M][0]===r.hoverTime){_=d[M];break}_&&("function"!=typeof A||A(_,M,y,!0,x,m))&&r._hoverHandlers.push(function(){n.beginPath(),n.arc(_.x,_.y,j,0,2*Math.PI),U&&(n.fillStyle=U,Ue(n).call(n)),X&&Y&&(n.lineWidth=X,n.strokeStyle=Y,n.stroke())})}}};var pg=function(S,e,i,t,o){var a,n,O,L,r,B,l,s,E,H,u,W,R,P,h,c,F,d,g,f,p,N,v,j,y=o.seriesDatas[i],x=e.name,m=e.itemStyle||{},b=e.lineStyle||{},A=o.bounds.bodyRect,w=A.x,k=A.y,C=A.width,z=A.height,G=vr(t.color,i),T=t.xAxis[e.xAxisIndex||0],V=t.yAxis[e.yAxisIndex||0],D=V._axisObj.zoomValueRange,U=D[0],Y=D[1],D=T._axisObj.zoomValueRange,X=D[0],Z=D[1],D=e.smooth,q=o.hitSeriesIndex,K=o.hitPointIndex,J=o.selectSeriesIndex,$=t.clipMode,_=o.data,M=o.view,I=e.markAreas||{},t=e.areaStyle||{};!Xn(y)&&Zn(y)&&(a=y.x||[],n=y.y||[],O=a.length>n,y=[],ze(e=O?a:n).call(e,function(e,t){O?y.push([e,n[t]]):y.push([a[t],e])})),y&&y.length&&(L=T._axisObj,r=V._axisObj,B=[],l=[],s=[],ze(y).call(y,function(e,t){var o=je(e,2),a=o[0],o=o[1],i=0<=Oe(i=[Le,Be]).call(i,L.position)?{x:L.getXByValue(a),y:r.getYByValue(o)}:{x:r.getXByValue(o),y:L.getYByValue(a)};$?(B.push(i),s.push(t?2:1),l.push(e)):E=Q(A,i)?(B.push(i),l.push(e),o=E?2:1,s.push(o),o):null}),o.pointsInfo[i]={values:l,name:x,points:B},e=Me(B).call(B,0),D&&2<=B.length&&(H="number"==typeof D?D:void 0,u=[],ze(s).call(s,function(e,t){1===e&&(W=[],u.push(W)),W.push(B[t])}),B=[],s=[],ze(u).call(u,function(e){e=er(e,H);B=Ee(B).call(B,e.points),s=Ee(s).call(s,e.segments)})),S.save(),S.beginPath(),S.rect(w,k,C,z),S.clip(),t&&1<B.length&&(T=t.markAreas,V=t.markLines,x=t.color,D=B[0],f=B[B.length-1],qn(S,B,s),0<=Oe(v=[Le,Be]).call(v,L.position)?(R=k+z,t.origin&&"end"===t.origin&&(R=k),S.lineTo(f.x,R),S.lineTo(D.x,R)):(P=w,t.origin&&"end"===t.origin&&(P=w+C),S.lineTo(P,f.y),S.lineTo(P,D.y)),S.closePath(),x&&(S.fillStyle=ir(S,x,A),Ue(S).call(S)),T&&0<T.length&&(h=X,c=Z,ze(T).call(T,function(e,t){function o(e){return e<0?0:1<e?1:e}var a=a=0<=Oe(a=[Le,Be]).call(a,L.position)?L.axisOption.inverse?S.createLinearGradient(w+C,k,w,k):S.createLinearGradient(w,k,w+C,k):L.axisOption.inverse?S.createLinearGradient(w,k,w,k+z):S.createLinearGradient(w,k+z,w,k),i="rgba(0, 0, 0, 0)";Fe(e.max)&&We(e.min)?(a.addColorStop(0,e.color),a.addColorStop(o((e.max-h)/(c-h)),e.color),a.addColorStop(o((e.max-h)/(c-h)),i),a.addColorStop(1,i)):We(e.max)&&Fe(e.min)?(a.addColorStop(0,i),a.addColorStop(o((e.min-h)/(c-h)),i),a.addColorStop(o((e.min-h)/(c-h)),e.color),a.addColorStop(1,e.color)):Fe(e.max)&&Fe(e.min)&&(a.addColorStop(0,i),a.addColorStop(o((e.min-h)/(c-h)),i),a.addColorStop(o((e.min-h)/(c-h)),e.color),a.addColorStop(o((e.max-h)/(c-h)),e.color),a.addColorStop(o((e.max-h)/(c-h)),i),a.addColorStop(1,i)),S.fillStyle=a,Ue(S).call(S)})),V)&&0<V.length&&ze(V).call(V,function(e){var i,n,r,l,s,u,h,c,d,g,f,p,v,y,x,m,b,w,t,o=e.value,a=e.color,k=e.name,C=e.nameStyle,C=void 0===C?{}:C,T=e.lineStyle,T=void 0===T?{}:T,V=e.itemStyle,V=void 0===V?{}:V,D=e.arrowStyle,D=void 0===D?{}:D,I=e.draw;o<X||Z<o||(t=V.show,i=void 0!==t&&t,t=V.radius,n=void 0===t?2:t,t=V.background,r=void 0===t?a:t,V=T.pattern,l=void 0===V?[4,4]:V,t=D.background,s=void 0===t?a:t,V=D.show,u=void 0!==V&&V,h=T.color||a,c=T.width||1,d=C.color||h,t=C.font,g=void 0===t?Gd:t,D=C.offsetX,f=void 0===D?12:D,V=C.offsetY,p=void 0===V?-3:V,a=C.borderWidth,v=void 0===a?1:a,T=C.borderColor,y=void 0===T?h:T,t=C.borderPattern,x=void 0===t?[]:t,m=C.background,w=0<=Oe(D=[Le,Be]).call(D,L.position)?(V=L.getXByValue(o),a=function(e,t){for(var o,a=0;a<=e.length-2;a++){var i=cr(e[a],e[a+1]),n=i.conditionY,i=i.lineY;if(n(t)){o=i(t);break}}return o}(B,V),b={x:V,y:R},{x:V,y:a}):(T=L.getYByValue(o),t=function(e,t){for(var o,a=0;a<=e.length-2;a++){var i=cr(e[a],e[a+1]),n=i.conditionX,i=i.lineX;if(n(t)){o=i(t);break}}return o}(B,T),b={x:P,y:T},{x:t,y:T}),C=function(){S.save(),l&&S.setLineDash(l),S.lineWidth=c,S.strokeStyle=h,S.beginPath(),S.moveTo(b.x,b.y),S.lineTo(w.x,w.y),S.stroke();var e,t,o,a=new ht.Math.Vector2(b.x,b.y).sub(new ht.Math.Vector2(w.x,w.y)).setLength(1);i&&(S.beginPath(),S.arc(w.x,w.y,n,0,2*Math.PI),S.fillStyle=r,Ue(S).call(S)),S.beginPath(),0<a.x?u&&(o=b.x-3,e=b.y,S.moveTo(3+o,e),S.lineTo(o-4,e-3),S.quadraticCurveTo(o-1,e,o-4,e+3),S.closePath(),S.fillStyle=s,Ue(S).call(S)):a.x<0?u&&(o=b.x+2,e=b.y,S.moveTo(o-3,e),S.lineTo(o+4,e-3),S.quadraticCurveTo(o+1,e,o+4,e+3),S.closePath(),S.fillStyle=s,Ue(S).call(S)):0<a.y?(o=b.x,e=b.y-2,u&&(S.moveTo(o,3+e),S.lineTo(o-3,e-4),S.quadraticCurveTo(o,e-1,o+3,e-4),S.closePath(),S.fillStyle=s,Ue(S).call(S))):a.y<0&&(o=b.x,e=b.y+3,u)&&(S.moveTo(o,e-3),S.lineTo(o-3,e+4),S.quadraticCurveTo(o,e+1,o+3,e+4),S.closePath(),S.fillStyle=s,Ue(S).call(S)),k&&(S.save(),S.translate(b.x,b.y),S.rotate(a.angle()-Math.PI),o=He(g,k),e=0+f,a=-o.height-c/2+p-6,t=o.width+6,o=o.height+6,m&&(S.save(),S.fillStyle=m,S.strokeStyle=y,S.lineWidth=v,S.setLineDash(x),S.beginPath(),xe(S,e,a,t,o,Math.min(o,t)/2),S.stroke(),Ue(S).call(S),S.restore()),yr(S,k,g,d,e,a,t,o,Ae,_e),S.restore()),S.restore()},I?(S.save(),I(S,_,M,{defaultDraw:C,bodyRect:A,originPoint:b,crossPoint:w,lineRect:xr(b,w),markLine:e}),S.restore()):C())}),I&&(v=I.data||[],F=I.itemStyle||{color:"rgba(255,0,0,.3)"},Xn(v))&&(g=0<=Oe(t=[Le,Be]).call(t,L.position)?(d=function(e){return{x:L.getXByValue(e),y:0}},function(e){return{x:0,y:r.getYByValue(e)}}):(d=function(e){return{x:0,y:L.getYByValue(e)}},function(e){return{x:r.getXByValue(e),y:0}}),ze(v).call(v,function(e){var t,o,a,i;Xn(e)&&2<=e.length&&(t=zn(e[0].xAxisValue,_,M),o=zn(e[0].yAxisValue,_,M),t=isNaN(t)?d(X):d(t),o=isNaN(o)?g(Y):g(o),t={x:t.x+o.x,y:t.y+o.y},o=zn(e[1].xAxisValue,_,M),i=zn(e[1].yAxisValue,_,M),o=isNaN(o)?d(Z):d(o),i=isNaN(i)?g(U):g(i),o={x:o.x+i.x,y:o.y+i.y},a=xr(t,o),i=function(){S.save(),S.fillStyle=ir(S,F.color,a),S.fillRect(a.x,a.y,a.width,a.height),S.restore()},I.drawArea?(S.save(),I.drawArea(S,a,{defaultDraw:i,info:e}),S.restore()):i())})),f=b.color||G,S.lineWidth=b.width||2,b.pattern&&S.setLineDash(b.pattern),i===J&&(f=b.activeColor||f,S.lineWidth=b.activeWidth||4,b.activePattern)&&S.setLineDash(b.activePattern),S.strokeStyle=ir(S,f),o.seriesColors.push(f),S.beginPath(),0!=b.width&&qn(S,B,s),S.stroke(),S.restore(),p=null!=(D=m.size)?D:2,N=null!=(x=m.activeSize)?x:4,p||1!==B.length||(p=1),V=void 0===(T=m.background)?f:T,v=void 0===(t=m.borderWidth)?1:t,J=void 0===(G=m.borderColor)?f:G,j=m.drawItem,p)&&(S.beginPath(),S.save(),ze(e).call(e,function(e,t){var o,a;Q(A,e)&&(o=q===i&&K===t?N:p,j?(a={x:e.x-o,y:e.y-o,width:2*o,height:2*o},j(S,y[t],a,{index:t,data:_,view:M,boundary:{x:e.x-o,y:A.y,width:2*o,height:A.height}})):o&&(S.moveTo(e.x,e.y),S.arc(e.x,e.y,o,0,2*Math.PI)))}),v&&J&&(S.lineWidth=v,S.strokeStyle=J,S.stroke()),V&&(S.fillStyle=V,Ue(S).call(S)),S.restore())};var vg=Math.log,yg=Math.LOG10E,yd=Math.log10||function(e){return vg(e)*yg};v({target:"Math",stat:!0},{log10:yd});function xg(e,t){if(t<=e)throw new Error("minValue should be less than maxValue");var o=((o=t-e)/.6-o)/2;return{axisMin:Math.floor(e-o),axisMax:Math.ceil(t+o)}}var mg=ue.Math.log10,bg={getNameBound:function(){var e=this.axisOption,t=e.name,e=(e.nameStyle||{}).font;return t?He(void 0===e?Gd:e,t).height:0},drawName:function(e){var t,o=this.axisOption,a=o.name,o=o.nameStyle||{},i=o.font,i=void 0===i?Gd:i,o=o.color,o=void 0===o?"#000":o,n=this.rect,r=n.x,l=n.y,s=n.width,n=n.height;a&&(t=He(i,a),this.position===Le?yr(e,a,i,o,r,l,s,t.height,Ae,_e):yr(e,a,i,o,r,l+n-t.height,s,t.height,Ae,_e))},drawLabelTick:function(a){var i,t,n,r,l,s,u,e,o,h,c,d,g,f=this,p=this.ui,v=p.data,y=p.view,x=this.axisOption,m=this.rect,b=this.getDataZoomOption(),w=this.zoomValueRange,k=x.axisLabel||{},C=k.rotate,T=k.showMaxLabel,T=void 0===T||T,k=k.showMinLabel,k=void 0===k||k,V=this.position,D=x.inverse,I=m=b&&(I={x:m.x,y:m.y+m.height-18,width:m.width,height:18},this.drawSlider(a,I),!1!==b.sliderVisible)?{x:m.x,y:m.y,width:m.width,height:m.height-18}:m,b=I.x,S=I.y,L=I.width,B=I.height;!1!==x.show&&(x.axisLine.show&&(a.strokeStyle=x.axisLine.color,a.lineWidth=x.axisLine.width,a.beginPath(),I={x:b,y:S},o={x:b+L,y:S},V===Le&&(I={x:b,y:S+B},o={x:b+L,y:S+B}),a.moveTo(I.x,I.y),a.lineTo(o.x,o.y),a.stroke()),x.axisLabel.show)&&(o=(I=je(w,2))[0],w=I[1],x.axisTick.minorTick?(I=kg(x.axisTick.minorTick.splitNumber,{rect:m,vmin:o,vmax:w}),i=ad(I),e=I.minScaleValues,p.fixedPoint=I.fixedPoint):i=this.getValuesByValueRange(),t=0,x.axisTick.show&&(t=x.axisTick.length)&&(a.save(),a.strokeStyle=x.axisTick.color,a.lineWidth=1,a.beginPath(),ze(i).call(i,function(e){e=f.getXByValue(e);V===Le?(a.moveTo(e,S+B),a.lineTo(e,S+B-t)):(a.moveTo(e,S),a.lineTo(e,S+t))}),a.stroke(),e&&(x.axisTick.minorTick.color&&(a.strokeStyle=x.axisTick.minorTick.color),a.beginPath(),x.axisTick.minorTick.show&&ze(e).call(e,function(e){var e=f.getXByValue(e),t=x.axisTick.minorTick.length||3*x.axisTick.length/5;V===Le?(a.moveTo(e,S+B),a.lineTo(e,S+B-t)):(a.moveTo(e,S),a.lineTo(e,S+t))}),a.stroke()),a.restore()),n=x.axisLabel.font,m=x.axisLabel.color,r=x.axisLabel.formatter,l=S+(V===Le?B-t:t),a.font=n,a.fillStyle=m,a.textBaseline=_e,a.testAlign=0<C?Re:Pe,u=(s=b)+L,k&&(o=i[0],w=this.getXByValue(o),"function"==typeof r&&(o=r(o,v,y)),w-=(I=$n(n,o,lr(C))).width/2,C?(a.save(),a.translate(w,l),a.rotate(lr(-C)),a.fillText(o.toString(),0,0),a.restore()):(a.textAlign="left",a.textBaseline=this.position===Be?Le:Be,a.fillText(o.toString(),w,l)),D?u=b+L-I.width/2:s=b+I.width/2),T&&(e=i[i.length-1],m=this.getXByValue(e),"function"==typeof r&&(e=r(e,v,y)),m+=(k=$n(n,e,lr(C))).width/2,C?(a.save(),a.translate(m,l),a.rotate(lr(-C)),a.fillText(e.toString(),0,0),a.restore()):(a.textAlign="right",a.textBaseline=V===Be?Le:Be,a.fillText(e.toString(),m,l)),D?s=b+k.width/2:u=b+L-k.width/2),ze(i).call(i,function(e,t){D&&(e=i[i.length-1-t]);var t=f.getXByValue(e),o=("function"==typeof r&&(e=r(e,v,y)),$n(n,e,lr(C)));t-o.width/2>s&&t+o.width/2<u&&(C?(a.save(),a.translate(t,l),a.rotate(lr(-C)),a.fillText(e.toString(),0,0),a.restore()):(a.textAlign=Ae,a.textBaseline=V===Be?Le:Be,a.fillText(e.toString(),t,l)),s=t+o.width/2)}),a.save(),x.splitLine.show&&((o=p.bounds.bodyRect).x,h=o.y,o.width,c=o.height,d=0===p.leftAxis.length,g=0===p.rightAxis.length,a.strokeStyle=x.splitLine.color,a.lineWidth=x.splitLine.width||1,x.splitLine.pattern&&a.setLineDash(x.splitLine.pattern),a.beginPath(),ze(i).call(i,function(e,t){!d&&0===t||!g&&t===i.length-1||(t=f.getXByValue(e),a.moveTo(t,h),a.lineTo(t,h+c))}),a.stroke()),a.restore())},drawSlider:function(e,t){var a=this,o=(t.x,t.y),i=t.width,n=t.height,r=je(this.valueRange,2),l=r[0],s=r[1],r=this.ui,u=r.data,h=r.view,r=this.getDataZoomOption(),c=r.barBackground,c=void 0===c?"#eee":c,d=r.barValueBackground,d=void 0===d?"rgb(51,153,255)":d,g=r.barWidth,g=void 0===g?Math.min(12,i):g,f=r.barBorderRadius,f=void 0===f?0:f,p=r.min,p=void 0===p?l:p,v=r.max,v=void 0===v?s:v,y=r.sliderOffsetX,y=void 0===y?0:y,x=r.sliderOffsetY,x=void 0===x?0:x,m=r.sliderWidth,m=void 0===m?5:m,b=r.sliderHeight,b=void 0===b?14:b,w=r.sliderBackground,w=void 0===w?"#32D3EB":w,k=r.sliderBorderColor,k=void 0===k?"#32D3EB":k,C=r.sliderBorderWidth,C=void 0===C?1:C,T=r.sliderBorderRadius,T=void 0===T?0:T,V=r.sliderImage,D=r.sliderVisible,I=r.zoomIncrement,I=void 0===I?.05:I,S=r.onChange,L=s-l,p=Math.max(l,p),v=Math.min(s,v),B=(s<p&&(p=s),v<l&&(v=l),Yn(t)),o=(B.y=o+(n-g)/2,B.height=g,Yn(B)),n=(o.width*=(v-p)/L,o.x+=(p-l)/L*i,o.x-m/2+y),L=o.x+o.width-m/2+y,i=o.y+(g-b)/2+x;!1!==D&&(Un(e,B,c,f),Un(e,o,d,f),V?(Kn(e,ht.Default.getImage(V),n,i,m,b),Kn(e,ht.Default.getImage(V),L,i,m,b)):(T<1&&(T*=Math.min(m,b)),e.beginPath(),xe(e,n,i,m,b,T),e.closePath(),e.fillStyle=w,Ue(e).call(e),C&&(e.lineWidth=C,e.strokeStyle=k,e.stroke()),e.beginPath(),xe(e,L,i,m,b,T),e.closePath(),e.fillStyle=w,Ue(e).call(e),C&&(e.lineWidth=C,e.strokeStyle=k,e.stroke()))),this.ui.xAxisDataZoom={slider:{dataZoom:r,rect:t,barRect:B,valueBarRect:o,zoomIncrement:I,min:l,max:s,value:[p,v],inverse:this.axisOption.inverse,setter:function(e){var t,o=a.boundHeight?[(t=a.ui.originalOption.xAxis[0].dataZoom).min,t.max]:[(t=a.ui.originalOption.yAxis[0].dataZoom).min,t.max];In(e[0],l)?delete t.min:t.min=Number(e[0].toFixed(isNaN(a.ui.fixedPoint)?2:a.ui.fixedPoint)),In(e[2],s)?delete t.max:t.max=Number(e[1].toFixed(isNaN(a.ui.fixedPoint)?2:a.ui.fixedPoint)),S&&S(o,e,u,h)},sliderRect:{x:n,y:i,width:m,height:b},sliderRect2:{x:L,y:i,width:m,height:b},axisObject:this}}},drawMarkLine:function(v){var y,x,m,b,e,t,w,k,C,T=this,o=this.axisOption.markLines;o&&((y=this.ui).data,y.view,(x=y.bounds.bodyRect).x,m=x.y,x.width,b=x.height,e=this.getDataZoomOption()||{},t=this.valueRange,w=Fe(e.min)?e.min:t[0],k=Fe(e.max)?e.max:t[1],C=this.position,ze(o).call(o,function(e){var t,o,a,i,n,r,l,s,u=e.color,u=void 0===u?"rgba(242,83,75,0.7)":u,h=e.lineStyle,h=void 0===h?{}:h,c=e.itemStyle,c=void 0===c?{}:c,d=e.labelStyle,d=void 0===d?{}:d,g=e.arrowStyle,g=void 0===g?{}:g,f=e.value,p=e.draw;k<f||f<w||(t=void 0===(t=c.show)||t,o=void 0===(o=c.radius)?2:o,c=void 0===(c=c.background)?u:c,a=void 0===(a=h.pattern)?[4,4]:a,i=void 0===(i=d.show)||i,n=void 0===(n=d.font)?Gd:n,r=void 0===(r=g.background)?u:r,g=void 0===(g=g.show)||g,l=h.color||u,h=h.width||1,u=d.color||u,d=d.formatter,s=T.getXByValue(f),v.save(),p?p(v,y.data,y.view,{bodyRect:x,lineRect:xr({x:s,y:m},{x:s,y:m+b}),data:e}):(a&&v.setLineDash(a),v.lineWidth=h,v.strokeStyle=l,v.beginPath(),v.moveTo(s,m),v.lineTo(s,m+b),v.stroke(),t&&(v.beginPath(),v.arc(s,C===Le?m:m+b,o,0,2*Math.PI),v.fillStyle=c,Ue(v).call(v)),v.beginPath(),C===Le?(g&&(v.moveTo(s,m+b+3),v.lineTo(s-3,m+b-4),v.quadraticCurveTo(s,m+b-1,s+3,m+b-4),v.closePath(),v.fillStyle=r,Ue(v).call(v)),i&&(d&&(f=d(f)),p=He(n,f),yr(v,f,n,u,s-p.width/2,m+b+3,p.width,p.height,Ae,_e))):(g&&(v.moveTo(s,m-3),v.lineTo(s-3,m+4),v.quadraticCurveTo(s,m+1,s+3,m+4),v.closePath(),v.fillStyle=r,Ue(v).call(v)),i&&(d&&(f=d(f)),e=He(n,f),yr(v,f,n,u,s-e.width/2,m-e.height,e.width,e.height,Ae,_e)))),v.restore())}))},drawAxisPointer:function(l,t,s){var u,h,o,e=this.axisOption.axisPointer||{},a=e.show,a=void 0!==a&&a,i=e.lineStyle,i=void 0===i?{}:i,n=e.label,c=void 0===n?{}:n,n=e.draw,r=i.color,d=void 0===r?"#000":r,r=i.pattern,g=void 0===r?[4,4]:r,r=i.width,f=void 0===r?1:r,i=this.ui,p=i.data,v=i.view,y=!Fe(c.show)||c.show,r=c.formatter||function(e){return Number(e.toFixed(2))},x=c.font||Gd,m=c.color||"#000",b=c.background||"#fff",w=c.draw,k={x:t.x,y:s.y},C={x:t.x,y:s.y+s.height};a&&(y&&(i=this.getValueByPoint(t),u=r(i),h=He(x,u)),o=this.position,a=function(){var i,n,e,r=this;l.save(),l.beginPath(),l.setLineDash(g),l.lineWidth=f,l.strokeStyle=d,l.moveTo(k.x,k.y),l.lineTo(C.x,C.y),l.stroke(),l.restore(),!y||o!==Be&&o!==Le||(i=t.x+f,n=s.y+s.height,o===Le&&(n=s.y),t.x+h.width+f>s.x+s.width&&(i=t.x-f),e=function(){l.save();var e=i,t=h.width+6,o=h.height+6,a=n-o-3;r.position===Le&&(a=n+3),e+t+3>s.x+s.width?e=e-t-3:e+=3,l.beginPath(),xe(l,e,a,t,o,o/2),l.stroke(),l.fillStyle=b,Ue(l).call(l),yr(l,u,x,m,e,a,t,o,"center","middle"),l.restore()},w?w(l,p,v,{defaultDraw:e,bodyRect:s,position:{x:t.x,y:n},axisPosition:o,value:u,textSize:h,label:c}):e())},n?n(l,p,v,{defaultDraw:a,bodyRect:s,lineRect:xr(k,C),axisPosition:this.position,point:t,data:e}):a())},getValueByPoint:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=a.x,n=(a.y,a.width);return a.height,this.axisOption.inverse?(1-(e.x-i)/n)*t+o:(e.x-i)/n*t+o},drawMarkArea:function(n){var r,l,s,u,e,t,h,c,d=this,o=this.axisOption.markAreas;o&&((r=this.ui).data,r.view,(l=r.bounds.bodyRect).x,s=l.y,l.width,u=l.height,e=this.getDataZoomOption()||{},t=this.valueRange,h=Fe(e.min)?e.min:t[0],c=Fe(e.max)?e.max:t[1],this.position,ze(o).call(o,function(e){var t=e.color,t=void 0===t?"rgba(242,83,75,0.7)":t,o=e.range,a=e.draw,i=isNaN(o.start)?h:Math.max(h,o.start),o=isNaN(o.end)?c:Math.min(c,o.end);o<i||(i=d.getXByValue(i),o=d.getXByValue(o),o={x:i,y:s,width:o-i,height:u},a?(n.save(),a(n,r.data,r.view,{bodyRect:l,areaRect:o,data:e})):(n.save(),n.fillStyle=t,n.fillRect(o.x,o.y,o.width,o.height)),n.restore())}))}},wg={getNameBound:function(){var e=this.axisOption,t=e.name,e=(e.nameStyle||{}).font;return t?He(void 0===e?Gd:e,t).height:0},drawName:function(e){var t,o=this.axisOption,a=o.name,o=o.nameStyle||{},i=o.font,i=void 0===i?Gd:i,o=o.color,o=void 0===o?"#000":o,n=this.rect,r=n.x,l=n.y,s=n.width,n=n.height;a&&(t=He(i,a),e.save(),this.position===Pe?e.translate(r+t.height/2,l+n/2):e.translate(r+s-t.height/2,l+n/2),e.rotate(-Math.PI/2),yr(e,a,i,o,-t.width/2,-t.height/2,t.width,t.height,Ae,_e),e.restore())},drawLabelTick:function(n){var r,a,e,l,t,o,s,u,h,c,d,g,f,p,v,y,x,m,b,w,k,C,T,V,D,I,S,L,E,H,W,B=this,R=this.ui,P=R.data,A=R.view,_=this.axisOption,M=_.inverse,O=this.rect;!1!==_.show&&(e=this.getDataZoomOption(),k=this.zoomValueRange,I=_.axisLabel||{},r=I.rotate,T=void 0===(T=I.showMaxLabel)||T,I=void 0===(I=I.showMinLabel)||I,t=O=e&&(t={x:O.x,y:O.y,width:18,height:O.height},this.drawSlider(n,t),!1!==e.sliderVisible)?{x:O.x+18,y:O.y,width:O.width-18,height:O.height}:O,a=t.x,e=t.y,l=t.width,t=t.height,_.axisLine.show&&(n.save(),n.strokeStyle=_.axisLine.color,n.lineWidth=_.axisLine.width,_.axisLine.pattern&&n.setLineDash(_.axisLine.pattern),n.beginPath(),this.position===Re?(n.moveTo(a,e),n.lineTo(a,e+t)):(n.moveTo(a+l,e),n.lineTo(a+l,e+t)),n.stroke(),n.restore()),k=je(k,3),o=k[0],s=k[1],k[2],u=s-o,_.axisTick.minorTick?(k=kg(_.axisTick.minorTick.splitNumber,{rect:O,vmin:o,vmax:s,isVertical:!0}),h=ad(k),w=k.minScaleValues,R.fixedPoint=k.fixedPoint):h=this.getValuesByValueRange(),c=0,_.axisTick.show&&(c=_.axisTick.length)&&((d=_.axisTick.drawTick)&&"function"==typeof d?ze(h).call(h,function(e,t){var o=B.getYByValue(e);B.position===Re?d(n,{x:a,y:o,tickLongness:c,label:e,index:t},R.data,R.view):d(n,{x:a+l,y:o,tickLongness:c,label:e,index:t},R.data,R.view)}):(n.save(),n.strokeStyle=_.axisTick.color,n.lineWidth=1,n.beginPath(),ze(h).call(h,function(e){e=B.getYByValue(e);B.position===Re?(n.moveTo(a,e),n.lineTo(a+c,e)):(n.moveTo(a+l,e),n.lineTo(a+l-c,e))}),n.stroke(),w&&(_.axisTick.minorTick.color&&(n.strokeStyle=_.axisTick.minorTick.color),n.beginPath(),_.axisTick.minorTick.show&&ze(w).call(w,function(e){var e=B.getYByValue(e),t=_.axisTick.minorTick.length||3*_.axisTick.length/5;B.position===Re?(n.moveTo(a,e),n.lineTo(a+t,e)):(n.moveTo(a+l,e),n.lineTo(a+l-t,e))}),n.stroke()),n.restore())),_.axisLabel.show&&(O=l-2-(_.axisTick.show?c:0),g=_.axisLabel.font,f=_.axisLabel.color,p=_.axisLabel.offsetX,v=_.axisLabel.offsetY,y=_.axisLabel.formatter,x=a+(this.position===Re?c:O),n.font=g,n.textAlign=this.position===Pe?Re:Pe,n.textBaseline=_e,b=(m=e)+t,I&&(k=h[0],w=this.getYByValue(k),n.save(),n.translate(x,w),n.rotate(lr(-r)),"function"==typeof y&&(k=y(k,P,A)),O=$n(g,k,lr(r)),"function"==typeof(I=f)&&(I=f(k,i)),n.fillStyle=I,n.fillText(k,p,v),n.restore(),M?m=e+O.height/2:b=e+t-O.height/2),T&&(w=h[h.length-1],I=this.getYByValue(w),n.save(),n.translate(x,I),n.rotate(lr(-r)),"function"==typeof y&&(w=y(w,P,A)),k=$n(g,w,lr(r)),"function"==typeof(O=f)&&(O=f(w,i)),n.fillStyle=O,n.fillText(w,p,v),n.restore(),M?b=e+t-k.height/2:m=e+k.height/2),ze(h).call(h,function(e,t){M&&(e=h[h.length-1-t]),"function"==typeof y&&(e=y(e,P,A));var o,a=$n(g,e,lr(r)),i=B.getYByValue(e);i-a.height/2>m&&i+a.height/2<b&&(n.save(),n.translate(x,i),n.rotate(lr(-r)),"function"==typeof(o=f)&&(o=f(e,t)),n.fillStyle=o,n.fillText(e,p,v),n.restore(),b=i-a.height/2)})),_.splitLine.splitColors&&(C=_.splitLine.splitColors,T=R.bounds.bodyRect,V=T.x,T.y,D=T.width,T.height,ze(h).call(h,function(e,t){var o=h[t+1],e=B.getYByValue(e);dy2=B.getYByValue(o),(color=C[t%C.length])&&(n.fillStyle=color,n.beginPath(),n.moveTo(V,e),n.lineTo(V+D,e),n.lineTo(V+D,dy2),n.lineTo(V,dy2),Ue(n).call(n))})),_.splitLine.show&&(n.save(),I=R.bounds.bodyRect,S=I.x,L=I.y,E=I.width,H=I.height,W=_.splitLine.interval,n.strokeStyle=_.splitLine.color,n.lineWidth=_.splitLine.width||1,_.splitLine.pattern&&n.setLineDash(_.splitLine.pattern),n.beginPath(),ze(h).call(h,function(e,t){t%W!=0||0===t&&R.bottomAxis.length||t===h.length-1&&R.topAxis.length||(n.moveTo(S,t=L+H*(1-(e-o)/u)),n.lineTo(S+E,t))}),n.stroke(),n.restore()),_.zeroLine.show)&&0<=s&&o<=0&&(O=e+t*(1-(0-o)/u),n.save(),n.strokeStyle=_.zeroLine.color,n.lineWidth=_.zeroLine.width||1,_.zeroLine.pattern&&n.setLineDash(_.zeroLine.pattern),n.beginPath(),n.moveTo(R.bounds.bodyRect.x,O),n.lineTo(R.bounds.bodyRect.x+R.bounds.bodyRect.width,O),n.stroke(),n.restore())},drawSlider:function(e,t){var a=this,o=t.x,i=(t.y,t.width),n=t.height,r=je(this.valueRange,2),l=r[0],s=r[1],r=this.ui,u=r.data,h=r.view,r=this.getDataZoomOption(),c=this.getDataZoomOption(),d=c.barBackground,d=void 0===d?"#eee":d,g=c.barValueBackground,g=void 0===g?"rgb(51,153,255)":g,f=c.barWidth,f=void 0===f?Math.min(12,i):f,p=c.barBorderRadius,p=void 0===p?0:p,v=c.min,v=void 0===v?l:v,y=c.max,y=void 0===y?s:y,x=c.sliderOffsetX,x=void 0===x?0:x,m=c.sliderOffsetY,m=void 0===m?0:m,b=c.sliderWidth,b=void 0===b?14:b,w=c.sliderHeight,w=void 0===w?5:w,k=c.sliderBackground,k=void 0===k?"#32D3EB":k,C=c.sliderBorderColor,C=void 0===C?"#32D3EB":C,T=c.sliderBorderWidth,T=void 0===T?1:T,V=c.sliderBorderRadius,V=void 0===V?0:V,D=c.sliderImage,I=c.sliderVisible,S=c.zoomIncrement,S=void 0===S?.05:S,L=c.onChange,c=s-l,v=Math.max(l,v),y=Math.min(s,y),B=(s<v&&(v=s),y<l&&(y=l),Yn(t)),o=(B.x=o+(i-f)/2,B.width=f,Yn(B)),i=(o.height*=(y-v)/c,o.y+=(s-y)/c*n,B.x+(f-b)/2+x),c=o.y+o.height-w/2+m,n=o.y-w/2+m;!1!==I&&(Un(e,B,d,p),Un(e,o,g,p),D?(Kn(e,ht.Default.getImage(D),i,c,b,w),Kn(e,ht.Default.getImage(D),i,n,b,w)):(V<1&&(V*=Math.min(b,w)),e.beginPath(),xe(e,i,c,b,w,V),e.closePath(),e.fillStyle=k,Ue(e).call(e),T&&(e.lineWidth=T,e.strokeStyle=C,e.stroke()),e.beginPath(),xe(e,i,n,b,w,V),e.closePath(),e.fillStyle=k,Ue(e).call(e),T&&(e.lineWidth=T,e.strokeStyle=C,e.stroke()))),this.ui.yAxisDataZoom={slider:{dataZoom:r,rect:t,barRect:B,zoomIncrement:S,min:l,max:s,value:[v,y],inverse:this.axisOption.inverse,setter:function(e){var t,o=a.boundHeight?[(t=a.ui.originalOption.xAxis[0].dataZoom).min,t.max]:[(t=a.ui.originalOption.yAxis[0].dataZoom).min,t.max];In(e[0],l)?delete t.min:t.min=Number(e[0].toFixed(isNaN(a.ui.fixedPoint)?2:a.ui.fixedPoint)),In(e[1],s)?delete t.max:t.max=Number(e[1].toFixed(isNaN(a.ui.fixedPoint)?2:a.ui.fixedPoint)),L&&L(o,e,u,h)},valueBarRect:o,sliderRect:{x:i,y:c,width:b,height:w},sliderRect2:{x:i,y:n,width:b,height:w},axisObject:this}}},drawAxisPointer:function(l,t,s){var u,h,o,e=this.axisOption.axisPointer||{},a=e.show,a=void 0!==a&&a,i=e.lineStyle,i=void 0===i?{}:i,n=e.label,c=void 0===n?{}:n,n=e.draw,r=i.color,d=void 0===r?"#000":r,r=i.pattern,g=void 0===r?[4,4]:r,r=i.width,f=void 0===r?1:r,i=this.ui,p=i.data,v=i.view,y=!Fe(c.show)||c.show,r=c.formatter||function(e){return Number(e.toFixed(2))},x=c.font||Gd,m=c.color||"#000",b=c.background||"#fff",w=c.draw,k={x:s.x,y:t.y},C={x:s.x+s.width,y:t.y};a&&(y&&(i=this.getValueByPoint(t),u=r(i),h=He(x,u)),o=this.position,a=function(){var i,n,e,r=this;l.save(),l.beginPath(),l.setLineDash(g),l.lineWidth=f,l.strokeStyle=d,l.moveTo(k.x,k.y),l.lineTo(C.x,C.y),l.stroke(),l.restore(),!y||o!==Pe&&o!==Re||(i=s.x,n=t.y-f,o===Re&&(i=s.x+s.width),t.y-h.height-f<s.y&&(n=t.y+f),e=function(){l.save();var e=i+3,t=h.width+6,o=h.height+6,a=n-o-3;a<s.y&&(a=n+3),r.position===Re&&(e=i-t-3),l.beginPath(),xe(l,e,a,t,o,o/2),l.stroke(),l.fillStyle=b,Ue(l).call(l),yr(l,u,x,m,e,a,t,o,"center","middle"),l.restore()},w?w(l,p,v,{defaultDraw:e,bodyRect:s,position:{x:i,y:t.y},axisPosition:o,value:u,textSize:h,label:c}):e())},n?n(l,p,v,{defaultDraw:a,bodyRect:s,lineRect:xr(k,C),axisPosition:this.position,point:t,data:e}):a())},drawMarkLine:function(v){var y,x,m,b,e,t,w,k,C,T=this,o=this.axisOption.markLines;o&&(y=this.ui,x=y.bounds.bodyRect,m=x.x,x.y,b=x.width,x.height,e=this.getDataZoomOption()||{},t=this.valueRange,w=Fe(e.min)?e.min:t[0],k=Fe(e.max)?e.max:t[1],C=this.position,ze(o).call(o,function(e){var t,o,a,i,n,r,l,s,u=e.color,u=void 0===u?"rgba(242,83,75,0.7)":u,h=e.lineStyle,h=void 0===h?{}:h,c=e.itemStyle,c=void 0===c?{}:c,d=e.labelStyle,d=void 0===d?{}:d,g=e.arrowStyle,g=void 0===g?{}:g,f=e.value,p=e.draw;k<f||f<w||(t=void 0===(t=c.show)||t,o=void 0===(o=c.radius)?2:o,c=void 0===(c=c.background)?u:c,a=void 0===(a=h.pattern)?[4,4]:a,i=void 0===(i=d.show)||i,n=void 0===(n=d.font)?Gd:n,r=void 0===(r=g.background)?u:r,g=void 0===(g=g.show)||g,l=h.color||u,h=h.width||1,u=d.color||u,d=d.formatter,s=T.getYByValue(f),v.save(),p?p(v,y.data,y.view,{bodyRect:x,lineRect:xr({x:m,y:s},{x:m+b,y:s}),data:e}):(a&&v.setLineDash(a),v.lineWidth=h,v.strokeStyle=l,v.beginPath(),v.moveTo(m,s),v.lineTo(m+b,s),v.stroke(),t&&(v.beginPath(),v.arc(C===Pe?m:m+b,s,o,0,2*Math.PI),v.fillStyle=c,Ue(v).call(v)),v.beginPath(),C===Pe?(g&&(v.moveTo(m+b+3,s),v.lineTo(m+b-4,s-3),v.quadraticCurveTo(m+b-1,s,m+b-4,s+3),v.closePath(),v.fillStyle=r,Ue(v).call(v)),i&&(d&&(f=d(f)),p=He(n,f),yr(v,f,n,u,m+b+6,s-p.height/2,p.width,p.height,Ae,_e))):(g&&(v.moveTo(m-3,s),v.lineTo(m+4,s-3),v.quadraticCurveTo(m+1,s,m+4,s+3),v.closePath(),v.fillStyle=r,Ue(v).call(v)),i&&(d&&(f=d(f)),e=He(n,f),yr(v,f,n,u,m-e.width-6,s-e.height/2,e.width,e.height,Ae,_e)))),v.restore())}))},getValueByPoint:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=(a.x,a.y),a=(a.width,a.height);return this.axisOption.inverse?(e.y-i)/a*t+o:(1-(e.y-i)/a)*t+o},drawMarkArea:function(n){var r,l,s,u,e,t,h,c,d=this,o=this.axisOption.markAreas;o&&((r=this.ui).data,r.view,l=r.bounds.bodyRect,s=l.x,l.y,u=l.width,l.height,e=this.getDataZoomOption()||{},t=this.valueRange,h=Fe(e.min)?e.min:t[0],c=Fe(e.max)?e.max:t[1],this.position,ze(o).call(o,function(e){var t=e.color,t=void 0===t?"rgba(242,83,75,0.7)":t,o=e.range,o=void 0===o?{}:o,a=e.draw,i=isNaN(o.start)?h:Math.max(h,o.start),o=isNaN(o.end)?c:Math.min(c,o.end);o<i||(i=d.getYByValue(i),o=d.getYByValue(o),o={x:s,y:i,width:u,height:o-i},a?(n.save(),a(n,r.data,r.view,{bodyRect:l,areaRect:o,data:e})):(n.save(),n.fillStyle=t,n.fillRect(o.x,o.y,o.width,o.height)),n.restore())}))}},kg=function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10,t=1<arguments.length?arguments[1]:void 0,o=t.rect,a=t.vmin,i=t.vmax,t=t.isVertical,n=i-a,r=[a],l=[],s=o.width,u=o.height,h=(o.x,o.y,n/((o=void 0!==t&&t?Math.floor(u/3/e):Math.floor(s/3/e))*e)),t=Math.floor(mg(h)),u=(h/=Math.pow(10,t),3===(h=Math.ceil(h-1/o))?h=4:7===h?h=8:9===h?h=10:0===h&&(h=1),h*=Math.pow(10,t),Math.floor(mg(h*e))),c=u<0?-u:0,s=a%h,d=a-s+h,g=Math.round(d/h)%e,f=Math.floor(n/h),p=h/2<s?1:0;p<f;p++)((p+g)%e==0&&e/2<p&&e/2<f-p?r:l).push((p*h+d).toFixed(c));return r.push(i),{values:r,minScaleValues:l,fixedPoint:c}},Cg=function(){d(n,lg);var i=g(n);function n(e,t,o){var a;return c(this,n),(a=i.call(this,e,t,o)).axisIndex=Oe(o=t.xAxis).call(o,e),ze(o=t.series).call(o,function(e,t){(e.xAxisIndex||0)===a.axisIndex&&(a.series.push(e),a.seriesIndexs.push(t))}),a.position=e.position||(a.axisIndex?Le:Be),a.labelHeight=a.getMaxValueBound().height,a.boundHeight=a.getBoundHeight()+a.getNameBound(),a}return s(n,[{key:"getNameBound",value:function(){var e,t=this.position;return(0<=Oe(e=[Le,Be]).call(e,t)?bg:wg).getNameBound.apply(this,arguments)}},{key:"caluValueRange",value:function(e){this.axisOption.autofit?this.caluValueRange2(e):this.caluValueRange1(e)}},{key:"caluValueRange1",value:function(e){var t,o=this.axisOption,a=o.max,i=o.min,n=o.splitNumber||5,o=Math.max.apply(this,e),r=Math.min.apply(this,e),l=o=o<0?0:o,s=r,u=r<0?(Fe(a)?a:o)-(Fe(i)?i:r):Fe(a)?a:o;if(Fe(i)&&Fe(a))t=(a-i)/n;else if(Fe(a)&&a/n%1==0){var h=Fe(i)?i:s;We(i)&&0<s&&(h=0),t=(a-(Fe(h)?h:s))/n}else if(1<o||o<=0){for(var c=1,d=u/c;100<=Aa(d);)d=u/(c*=10);for(d=Math.ceil(d)*c;d%n!=0||d/n%c!=0;)d+=c;t=(o=d)/n}else t=0<r?o/n:((Fe(a)?a:o)-r)/n;if(t=t||1,We(i))if(0<=r)i=0;else{for(var g=0;r<g;)g-=t;r=g}if(We(a))for(a=o+(r<0?r:0);a<l;)a+=t;(i=We(i)?r:i)||a||(t=a=1),this.valueRange=[i,a,t];h=this.getDataZoomOption();h&&e.length?((s=this.zoomValueRange=[Fe(h.min)?Math.max(i,h.min):i,Fe(h.max)?Math.min(a,h.max):a])[1]-s[0]==0&&(s[0]===i?s[1]+=t/1e3:s[0]-=t/1e3),s.push(this.getUnitFromMaxAndMin(s[1],s[0])||1)):this.zoomValueRange=this.valueRange}},{key:"caluValueRange2",value:function(e){var t=this.axisOption,o=t.max,t=t.min,a=Math.max.apply(this,e),i=Math.min.apply(this,e),i=(a=a<0?0:a,xg(i,a)),a=i.axisMin,i=i.axisMax,i=(We(o)&&(o=i),We(t)&&(t=a),this.valueRange=[t,o,void 0],this.getDataZoomOption());i&&e.length?this.zoomValueRange=[Fe(i.min)?Math.max(t,i.min):t,Fe(i.max)?Math.min(o,i.max):o]:this.zoomValueRange=this.valueRange}},{key:"getAxisValues",value:function(){var r=this,e=this.series,l=this.seriesIndexs,s=[],t=(ze(e).call(e,function(e,t){t=r.ui.seriesDatas[l[t]];if(t)if(Xn(t))s=Ee(s).call(s,t);else if(Zn(t)){for(var o=t.x,t=t.y,a=Math.min(o.length,t.length),i=[],n=0;n<a;n++)i.push([o[n],0]);s=Ee(s).call(s,i)}}),[]);return ze(s).call(s,function(e){t.push(e[0])}),t}},{key:"getBoundHeight",value:function(){var e,t,o,a,i,n,r,l=this.axisOption;return l.show?l.size||(i=l.axisLabel.rotate,e=l.axisTick.show?l.axisTick.length:0,t=this.getDataZoomOption(),o=0,r=this.position,t&&!1!==t.sliderVisible&&(o+=18),a=Qi,(n=this.getAxisValues())&&ze(n).call(n,function(e){e.toString().length>a.length&&(a=e)}),r===Le||r===Be?i?(i=Math.max(-45,i),i=Math.min(45,i),o+$n(l.axisLabel.font,a,i).height+2*$i+e):o+He(l.axisLabel.font,Qi).height+2*$i+e:(n=l.axisLabel.show?this.getMaxValueBound():{width:0,height:0},r=0,t&&!1!==t.sliderVisible&&(r+=18),r+n.width+e+2*$i)):$i}},{key:"draw",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?(bg.drawLabelTick.apply(this,arguments),bg):(wg.drawLabelTick.apply(this,arguments),wg)).drawName.apply(this,arguments)}},{key:"getXByValue",value:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=a.x,n=(a.y,a.width);return a.height,this.axisOption.inverse?i+n*(1-(e-o)/t):i+n*((e-o)/t)}},{key:"getYByValue",value:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=(a.x,a.y),a=(a.width,a.height);return this.axisOption.inverse?i+a*((e-o)/t):i+a*(1-(e-o)/t)}},{key:"getValueByPoint",value:function(e){var t,o=this.position;return(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).getValueByPoint.apply(this,arguments)}},{key:"drawSlider",value:function(e,t){var o,a=this.position;(0<=Oe(o=[Le,Be]).call(o,a)?bg:wg).drawSlider.apply(this,arguments)}},{key:"drawMarkLine",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).drawMarkLine.apply(this,arguments)}},{key:"drawAxisPointer",value:function(e,t,o){var a,i=this.position;(0<=Oe(a=[Le,Be]).call(a,i)?bg:wg).drawAxisPointer.apply(this,arguments)}},{key:"drawMarkArea",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).drawMarkArea.apply(this,arguments)}}]),n}(),Tg=function(){d(i,ug);var a=g(i);function i(e,t,o){return c(this,i),(e=a.call(this,e,t,o)).boundWidth=e.getBoundWidth()+e.getNameBound(),e}return s(i,[{key:"getNameBound",value:function(){var e,t=this.position;return(0<=Oe(e=[Le,Be]).call(e,t)?bg:wg).getNameBound.apply(this,arguments)}},{key:"caluValueRange",value:function(e){this.axisOption.autofit?this.caluValueRange2(e):this.caluValueRange1(e)}},{key:"caluValueRange1",value:function(e){var t,o=this.axisOption,a=o.max,i=o.min,n=o.splitNumber||5,o=Math.max.apply(this,e),r=Math.min.apply(this,e),l=o=o<0?0:o,s=r,u=r<0?(Fe(a)?a:o)-(Fe(i)?i:r):Fe(a)?a:o;if(Fe(i)&&Fe(a))t=(a-i)/n;else if(Fe(a)&&a/n%1==0){var h=Fe(i)?i:s;We(i)&&0<s&&(h=0),t=(a-(Fe(h)?h:s))/n}else if(1<o||o<=0){for(var c=1,d=u/c;100<=Aa(d);)d=u/(c*=10);for(d=Math.ceil(d)*c;d%n!=0||d/n%c!=0;)d+=c;t=(o=d)/n}else t=0<r?o/n:((Fe(a)?a:o)-r)/n;if(t=t||1,We(i))if(0<=r)i=0;else{for(var g=0;r<g;)g-=t;r=g}if(We(a))for(a=o+(r<0?r:0);a<l;)a+=t;(i=We(i)?r:i)||a||(t=a=1),this.valueRange=[i,a,t];h=this.getDataZoomOption();h&&e.length?((s=this.zoomValueRange=[Fe(h.min)?Math.max(i,h.min):i,Fe(h.max)?Math.min(a,h.max):a])[1]-s[0]==0&&(s[0]===i?s[1]+=t/1e3:s[0]-=t/1e3),s.push(this.getUnitFromMaxAndMin(s[1],s[0])||1)):this.zoomValueRange=this.valueRange}},{key:"caluValueRange2",value:function(e){var t=this.axisOption,o=t.max,t=t.min,a=Math.max.apply(this,e),i=Math.min.apply(this,e),i=(a=a<0?0:a,xg(i,a)),a=i.axisMin,i=i.axisMax,i=(We(o)&&(o=i),We(t)&&(t=a),this.valueRange=[t,o,void 0],this.getDataZoomOption());i&&e.length?this.zoomValueRange=[Fe(i.min)?Math.max(t,i.min):t,Fe(i.max)?Math.min(o,i.max):o]:this.zoomValueRange=this.valueRange}},{key:"getMaxValueBound",value:function(){var e,o=this.axisOption,t=this.getAxisValues(),a=this.ui,i=a.data,n=a.view,a=(this.valueRange||this.caluValueRange(t),this.getValuesByValueRange(!0)),r=o.axisLabel.formatter,l={width:0,height:0};return o.axisTick.minorTick&&(e=(t=je(this.valueRange,2))[0],t=t[1],e=kg(o.axisTick.minorTick.splitNumber,{rect:this.ui.rect,vmin:e,vmax:t,isVertical:!0}),a=ad(e)),ze(a).call(a,function(e){var t=e,e=(r&&(t=r(e,i,n)),$n(o.axisLabel.font,t,o.axisLabel.rotate));l=e.width>=l.width?e:l}),l}},{key:"getBoundWidth",value:function(){var e,t,o,a,i,n,r,l=this.axisOption;return l.show?l.size||(i=l.axisLabel.rotate,e=l.axisTick.show?l.axisTick.length:0,t=this.getDataZoomOption(),o=0,r=this.position,t&&!1!==t.sliderVisible&&(o+=18),a=Qi,(n=this.getAxisValues())&&ze(n).call(n,function(e){e.toString().length>a.length&&(a=e)}),r===Le||r===Be?i?(i=Math.max(-45,i),i=Math.min(45,i),o+$n(l.axisLabel.font,a,i).height+2*$i+e):o+He(l.axisLabel.font,Qi).height+2*$i+e:(n=l.axisLabel.show?this.getMaxValueBound():{width:0,height:0},r=0,t&&!1!==t.sliderVisible&&(r+=18),r+n.width+e+2*$i)):$i}},{key:"draw",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?(bg.drawLabelTick.apply(this,arguments),bg):(wg.drawLabelTick.apply(this,arguments),wg)).drawName.apply(this,arguments)}},{key:"getXByValue",value:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=a.x,n=(a.y,a.width);return a.height,this.axisOption.inverse?i+n*(1-(e-o)/t):i+n*((e-o)/t)}},{key:"getYByValue",value:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=(a.x,a.y),a=(a.width,a.height);return this.axisOption.inverse?i+a*((e-o)/t):i+a*(1-(e-o)/t)}},{key:"getValueByPoint",value:function(e){var t,o=this.position;return(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).getValueByPoint.apply(this,arguments)}},{key:"drawSlider",value:function(e,t){var o,a=this.position;(0<=Oe(o=[Le,Be]).call(o,a)?bg:wg).drawSlider.apply(this,arguments)}},{key:"drawMarkLine",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).drawMarkLine.apply(this,arguments)}},{key:"drawAxisPointer",value:function(e,t,o){var a,i=this.position;(0<=Oe(a=[Le,Be]).call(a,i)?bg:wg).drawAxisPointer.apply(this,arguments)}},{key:"drawMarkArea",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).drawMarkArea.apply(this,arguments)}}]),i}();function Vg(e,t){var o,a,i,n,r=t.isEmphasis,l=t.type,t=t.outFormatter,s=e.name,u=e.value,h=e.percent,c=e.seriesName,d=e.labelEmphasis,g=e.labelNormal,f=e.labelLineNormal,p=e.labelLineEmphasis,d=("label"===l?r?(o=d.font,"function"==typeof d.formatter&&(a=d.formatter(e.source,e.data,e.view))):(o=g.font,"function"==typeof g.formatter&&(a=g.formatter(e.source,e.data,e.view))):"labelLine"===l&&(r?(o=p.font,"function"==typeof p.formatter&&(a=p.formatter(e.source,e.data,e.view))):(o=f.font,"function"==typeof f.formatter&&(a=f.formatter(e.source,e.data,e.view)))),t&&(a=t),s.toString()),g=(d=a?(a=a.replace(/\n/g,"<br>")).replace(/\{(\w)\}/g,function(e,t){return"a"===t?c:"b"===t?s:"c"===t?u:"d"===t?(100*h).toFixed(1)+"%":e}):d).split("<br>");return o&&(n=(i=He(o,"e").height+1)*g.length/2),{labelTextArray:g,textHeight:i,beginHeight:n}}var Dg=ht.Default.isBoolean,Ig=function(){function t(e){c(this,t),this.initGLabel(e),this.initGLabelLine(e)}return s(t,[{key:"initGLabel",value:function(e){var t=e.getValue("label.normal.show"),o=e.getValue("label.normal.position"),a=e.getValue("label.normal.formatter"),i=e.getValue("label.normal.color"),n=e.getValue("label.normal.font"),t=(this.gLabelNormal={show:!Dg(t)||t,position:o||"center",formatter:a||function(){return""},color:i,font:n||"12px serif"},e.getValue("label.emphasis.show")),o=e.getValue("label.emphasis.position"),a=e.getValue("label.emphasis.formatter"),i=e.getValue("label.emphasis.color"),n=e.getValue("label.emphasis.font");this.gLabelEmphasis={show:!Dg(t)||t,position:o||"center",formatter:a||function(){return""},color:i,font:n||"13px serif"}}},{key:"initGLabelLine",value:function(e){var t=e.getValue("labelLine.normal.show"),o=e.getValue("labelLine.normal.length"),a=e.getValue("labelLine.normal.length2"),i=e.getValue("labelLine.normal.formatter"),n=e.getValue("labelLine.normal.width"),r=e.getValue("labelLine.normal.type"),l=e.getValue("labelLine.normal.font"),s=e.getValue("labelLine.normal.lineColor"),u=e.getValue("labelLine.normal.textColor"),t=(this.gLabelLineNormal={show:!Dg(t)||t,length:void 0===o?15:o,length2:void 0===a?10:a,formatter:i||function(){return""},width:void 0===n?1:n,type:r||"dashed",font:l||"12px serif",lineColor:s,textColor:u},e.getValue("labelLine.emphasis.show")),o=e.getValue("labelLine.emphasis.length"),a=e.getValue("labelLine.emphasis.length2"),i=e.getValue("labelLine.emphasis.formatter"),n=e.getValue("labelLine.emphasis.width"),r=e.getValue("labelLine.emphasis.type"),l=e.getValue("labelLine.emphasis.font"),s=e.getValue("labelLine.emphasis.lineColor"),u=e.getValue("labelLine.emphasis.textColor");this.gLabelLineEmphasis={show:!Dg(t)||t,length:void 0===o?15:o,length2:void 0===a?10:a,formatter:i||function(){return""},width:void 0===n?2:n,type:r||"dashed",font:l||"13px serif",lineColor:s,textColor:u}}}]),t}(),Sg=Object.assign,Lg=Object.defineProperty,Bg=a([].concat),e=!Sg||b(function(){var e,t,o,a;return ae&&1!==Sg({b:1},Sg(Lg({},"a",{enumerable:!0,get:function(){Lg(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},a="abcdefghijklmnopqrst",(e={})[o=Symbol()]=7,a.split("").forEach(function(e){t[e]=e}),7!=Sg({},e)[o])||lo(Sg({},t)).join("")!=a})?function(e,t){for(var o=qe(e),a=arguments.length,i=1,n=vs.f,r=Pt.f;i<a;)for(var l,s=P(arguments[i++]),u=n?Bg(lo(s),n(s)):lo(s),h=u.length,c=0;c<h;)l=u[c++],ae&&!Te(r,s,l)||(o[l]=s[l]);return o}:Sg;v({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e});var Rg=ue.Object.assign,Pg=ht.Default.isEmptyObject,Ag=function(){function o(e,t){c(this,o),Rg(this,e),this.initDefaultValue(t)}return s(o,[{key:"initDefaultValue",value:function(e){var t=this.source,o=this.index,a=this.color,i=t.name,n=t.value,n=void 0===n?0:n,r=t.itemStyle,r=void 0===r?{}:r,l=t.labelLine,l=void 0===l?{}:l,t=t.label,t=void 0===t?{}:t,s=e.gLabelNormal,u=e.gLabelEmphasis,h=e.gLabelLineNormal,e=e.gLabelLineEmphasis,o=a[o%a.length];this.name=void 0===i?"系列名":i,this.value=n,this.itemStyle=Rg({color:o,borderColor:"#000"},r),this.labelNormal=Rg({},s,t.normal||{}),this.labelEmphasis=Rg({},u,t.emphasis||{}),this.labelLineNormal=Rg({},h,l.normal||{}),this.labelLineEmphasis=Rg({},e,l.emphasis||{}),Pg(this.labelNormal.color)&&(a=this.labelNormal.position,this.labelNormal.color="center"===a?o:"black"),Pg(this.labelEmphasis.color)&&(i=this.labelEmphasis.position,this.labelEmphasis.color="center"===i?o:"black"),Pg(this.labelLineNormal.lineColor)&&(this.labelLineNormal.lineColor=o),Pg(this.labelLineNormal.textColor)&&(this.labelLineNormal.textColor=o),Pg(this.labelLineEmphasis.lineColor)&&(this.labelLineEmphasis.lineColor=o),Pg(this.labelLineEmphasis.textColor)&&(this.labelLineEmphasis.textColor=o),this.pieColor=o}},{key:"getLabelPoints",value:function(){var e=this.centerX,t=this.centerY,o=this.roseType,a=this.roseRadius,i=this.innerRadius,n=this.outerRadius,r=this.lineAngle,l=e+(o?a+i:n)*Math.cos(r),o=t+(o?a+i:n)*Math.sin(r);return{textX:(l+(e+i*Math.cos(r)))/2,textY:(o+(t+i*Math.sin(r)))/2}}},{key:"getLabelInfo",value:function(e){return Vg(this,{isEmphasis:e,type:"label"})}},{key:"getLabelLinePoints",value:function(e){var t,o=this.labelLineNormal,a=this.labelLineEmphasis,i=this.centerX,n=this.centerY,r=this.roseType,l=this.roseRadius,s=this.innerRadius,u=this.outerRadius,h=this.lineAngle,c=this.hoverOffset,o=o.length,a=a.length,s=e?s+l+c:s+l,l=e?u+c:u,d=i+(r?s:l)*Math.cos(h),r=n+(r?s:l)*Math.sin(h);return e=e?(t=i+(s=u+c+a)*Math.cos(h),n+s*Math.sin(h)):(t=i+(l=u+o)*Math.cos(h),n+l*Math.sin(h)),{x0:d,y0:r,x1:t,y1:e}}},{key:"getLabelLineLabelInfo",value:function(e){return Vg(this,{isEmphasis:e,type:"labelLine"})}}]),o}(),_g=ht.Default.isBoolean,Mg=Math.PI,Og=Mg/180;function Eg(e,t){for(var o=0;o<e.length;o++)if(Q(e[o].rect,t))return o}var Hg=new qc,ce=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onMove",value:function(e,t,o,a,i,n){var r=t,t=o,o=a,l=Ye(t,r,a=this);if(l){var s,u,h,c=l.arcPoints,d=l.arcAngles,g=l.center,f=l.radius,p=l.foucusArcNum,v=l.hoverOffset,y=l.tooltip,y=void 0===y?{}:y,x=l.pieItems,m=H(t,r,a,o);if(c){var b=ht.Math.Vector2,w=2*Math.PI,k=new b(g),a=f.outerRadius,C=f.innerRadius,T=ht.Default.getDistance(m,g);if(C<T&&T<(void 0!==p?a+v:a))for(var V=0,D=d.length;V<D;V++){var I=x[V],S=I.roseType,I=I.roseRadius;if(S&&(V===p?C+I+v:C+I)<T)V===p&&(delete l.foucusArcNum,r.iv());else{var S=new b(c[V]).sub(k),I=new b(m).sub(k),L=S.clone().normalize().dot(I.normalize()),L=Math.acos(L);if(0<S.x*I.y-I.x*S.y){if(L<d[V]){p!=V&&(l.foucusArcNum=V,r.iv());break}}else if(w-L<d[V]){p!=V&&(l.foucusArcNum=V,r.iv());break}p===V&&(delete l.foucusArcNum,r.iv())}}else void 0!==p&&(delete l.foucusArcNum,r.iv())}y.show&&(void 0!==(o=l.foucusArcNum)?(g=(f=x[o]).value,a=f.percent,o=f.name,s=f.seriesName,h=y.formatter,u=[],h?(h=Vg(f,{outFormatter:h(f.source,r,t)}).labelTextArray,ze(h).call(h,function(e,t){u.push([null,e])})):u=[["名称",o],["百分比",(100*a).toFixed(1)+"%"],["数值",g]],Hg.setInfo({label:s,datas:u},t),Hg.setAttr({labelFont:y.font,itemFont:y.font}),Hg._tipNode.a("drawTooltip",y.drawTooltip),y.drawTooltip?(B._container.style.padding=0,B._container.style.backgroundColor="unset",Hg.setScrollBarVisible(!1)):(B._container.style.padding=null,B._container.style.backgroundColor=null,Hg.setScrollBarVisible(!0)),B.show(Hg.getView(),e)):B.hide())}}},{key:"onUp",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.foucusArcNum,s=r.pieItems,r=r.onSelected;void 0!==r&&void 0!==l&&r((r=s[l]).name,r.value,r.percent,t,o)}},{key:"onLeave",value:function(e,t,o,a,i,n){o=Ye(o,t,this);void 0!==o.foucusArcNum&&(delete o.foucusArcNum,t.iv(),B.hide())}}]),t}(),Wg=document.createElement("div"),yd=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.ui,s=r.option;if(l&&s&&!r.dragging){var u=l.bounds,h=H(o,t,this,a,e),a=u.bodyRect,u=l.xAxisDataZoom,c=l.yAxisDataZoom,u=u?u.slider:null,c=c?c.slider:null;if(r._dragging||r.dragging)delete r.hoverTime,delete r.hoverPositionX,t.iv(),B.hide();else if(Q(a,h)){var d,g,f,p,v,y=6/(o.getZoom?o.getZoom():1),x=l.pointsInfo,a=s.tooltip.formatter,m=1/0;if(s.tooltip.show){for(var b in x)!function(o){var e=x[o],t=e.points,a=ad(e),i=e.name;ze(t).call(t,function(e,t){e=ar(e,h);e<y&&e<m&&(d=Aa(o),p=i,f=a[g=t])})}(b);if(Fe(f)){var l=f.join(",");a?l=a({name:p,value:f},t,o).toString():p&&(l=Ee(a="".concat(p,"<br/>")).call(a,l)),Wg.innerHTML=l,B.show(Wg,e)}else if(B.hide(),s.series)for(var w=s.series.length-1;0<=w;w--){var k=s.series[w],C=k.lineStyle||{};if((!C.width||0!=C.width)&&x[w]){C=x[w].points;if(C)if(dr(C,null,h)<((k.lineStyle||{}).width||2)/2+y){v=w;break}}}a=r.hitSeriesIndex,l=r.hitPointIndex,e=(r.hitSeriesIndex=d,r.hitPointIndex=g,r.selectSeriesIndex);r.selectSeriesIndex=v,l===g&&a===d&&e===v||t.iv()}r.axisPointerPoint!=(r.axisPointerPoint=h)&&t.iv(),(u||c)&&(l=r.sliderInfo={info:[],body:!0},u&&l.info.push({axis:Ji,info:u}),c)&&l.info.push({axis:he,info:c})}else r.axisPointerPoint&&(delete r.axisPointerPoint,t.iv()),u&&0!=u.dataZoom.sliderVisible&&(Q(Nn(u.sliderRect,3),h)||Q(Nn(u.sliderRect2,3),h)||Q(u.valueBarRect,h))?(E(o,"ew-resize"),r.sliderInfo={axis:Ji,info:u}):c&&0!=c.dataZoom.sliderVisible&&(Q(Nn(c.sliderRect,3),h)||Q(Nn(c.sliderRect2,3),h)||Q(c.valueBarRect,h))?(E(o,"ns-resize"),r.sliderInfo={axis:he,info:c}):(delete r.sliderInfo,E(o,"default"))}}},{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.ui,s=r.option;l&&s&&!r.dragging&&(s=l.xAxisDataZoom,l=l.yAxisDataZoom,o=H(o,t,this,a,e),a=s?s.slider:null,s=l?l.slider:null,a&&0!=a.dataZoom.sliderVisible&&Q(a.barRect,o)&&!r.sliderInfo&&(Ad(a.setter,a,o,a.barRect),t.iv()),s&&0!=s.dataZoom.sliderVisible&&Q(s.barRect,o)&&!r.sliderInfo&&(_d(s.setter,s,o,s.barRect),t.iv()),Dn(e))&&(a&&a.setter([a.min,a.max]),s&&s.setter([s.min,s.max]),t.iv())}},{key:"onLeave",value:function(e,t,o,a,i,n){var r=Ye(o,t,this);Fe(r.axisPointerPoint)&&(delete r.axisPointerPoint,t.iv()),Fe(r.hitPointIndex)&&(delete r.hitSeriesIndex,delete r.hitPointIndex,B.hide(),t.iv()),r.dragging||E(o,"default")}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var r,l,s,u=Wn(o,t,this,e),h=Ye(o,t,this),c=h.sliderInfo,d=h.ui,g=h.option;if(h&&g.onRectSelected){void 0!==h.hoverIndex&&(delete h.hoverIndex,t.iv(),B.hide());var g=d.bounds.bodyRect,d={x:a.x+u.rect.x,y:a.y+u.rect.y};if(Q(g,d))return h._dragging=!0,void(h.rectPoint1=d)}c&&(g=(u=c.info).sliderRect,d=u.sliderRect2,r=u.valueBarRect,l=u.value,u=u.barRect,s=H(o,t,this,a,e),h.dragging=!0,c.body?ze(o=c.info).call(o,function(e){e.draggingValue=Md(e.info.value[0],e.info.value[1],e.info.barRect,s,e.axis===he)}):Q(Nn(g,3),s)?c.fixed=l[1]:Q(Nn(d,3),s)?c.fixed=l[0]:Q(r,s)&&(Ji===c.axis?c.draggingValue=Ad(null,c.info,s,u,null,!0):c.draggingValue=_d(null,c.info,s,u,null,!0)))}},{key:"onDrag",value:function(e,t,o,a,i,n){var l,r,s,u,h=Wn(o,t,this,e),c=Ye(o,t,this),d=c.sliderInfo,g=c.option,f=c.ui.bounds.bodyRect;c&&c._dragging&&(h={x:a.x+h.rect.x,y:a.y+h.rect.y},c.rectPoint2=Qn(f,h),c._drawTimer&&clearTimeout(c._drawTimer),c._drawTimer=Wa(function(){t.iv(),delete c._drawTimer},2)),c.dragging&&d&&(u=(h=d.info).barRect,s=h.setter,h.sliderRect,h.sliderRect2,h.valueBarRect,h.value,h.dataZoom,l=H(o,t,this,a,e),h=d.axis===Ji?Ad:_d,Q(f,l)?c.axisPointerPoint=l:c.axisPointerPoint&&delete c.axisPointerPoint,r=Ji===d.axis?g.xAxis[0].axisLabel?g.xAxis[0].axisLabel.formatter:null:g.yAxis[0].axisLabel?g.yAxis[0].axisLabel.formatter:null,Fe(d.fixed)?(a=h(s,d.info,l,u,d.fixed),B.show(r?r(a,t,o):a,e)):Fe(d.draggingValue)?(f=d.draggingValue,g=h(null,d.info,l,u,null,!0)-f,s=d.info.value,a=d.info.min,h=d.info.max,(u=[s[0]+g,s[1]+g])[0]<a?u=[a,a+(s[1]-s[0])]:u[1]>h&&(u=[h-(s[1]-s[0]),h]),d.info.setter(u),f=u.join(","),r&&(f=Ge(u).call(u,function(e){return r(e,t,o)}).join(", ")),B.show(f,e)):d.body&&ze(g=d.info).call(g,function(e){var t=e.info,o=t.barRect,a=t.setter,i=t.min,t=t.max,n=e.info.value,r=e.draggingValue,n=Md(n[0],n[1],o,l,e.axis===he)-r,o=e.info.inverse,r=(e.axis!==he||o||(n=-n),e.axis!==he&&o&&(n=-n),e.info.value),o=[r[0]+n,r[1]+n];o[0]<i?o=[i,i+(r[1]-r[0])]:o[1]>t&&(o=[t-(r[1]-r[0]),t]),a(o)}),t.iv())}},{key:"onEndDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d,g,f,p=Ye(o,t,this);delete p.sliderInfo,delete p.dragging,B.hide(),p._dragging&&(r=p.ui,l=p.option,s=r.rectPoint1,u=r.rectPoint2,h=r.valueAxis,c=l.xAxis,d=l.yAxis,g=xr(s,u),delete p._dragging,delete p.rectPoint1,delete p.rectPoint2,t.iv(),g)&&(f={x:[],y:[]},ze(c).call(c,function(e){e.type;var t,o,a,i,n=[],e=(f.x.push(n),e._axisObj.zoomValueRange);e&&(t=(e=je(e,2))[0],o=(e=e[1])-t,i=r.bounds.bodyRect,a=Math.floor((g.x-i.x)/i.width*o+t),i=Math.floor((g.x-i.x+g.width)/i.width*o+t),a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),ze(d).call(d,function(e){var t,o,a,i,n=[];f.y.push(n),he===h&&(t=(e=je(e._axisObj.zoomValueRange,2))[0],e=e[1],a=((i=r.bounds.bodyRect).height-g.height-g.y+i.y)/i.height*(o=e-t)+t,i=(i.height-g.y+i.y)/i.height*o+t,a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),l.onRectSelected(f,t,o))}},{key:"onScroll",value:function(e,t,o,a,i,n){Od(e,t,o,this,a)&&(delete(e=Ye(o,t,this)).hitSeriesIndex,delete e.hitPointIndex,t.iv())}}]),t}(),Fg=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.apply(this,arguments)}return s(t,[{key:"onLeave",value:function(e,t,o,a,i,n){E(o,"default")}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.uiInfos;l&&l.length&&(t=H(o,t,this,a,o),a=Eg(l,t),E(o,Fe(a)?"pointer":r.defaultCursor||"default"))}},{key:"onDown",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d=Ye(o,t,this),g=d.uiInfos;g&&g.length&&(a=H(o,t,this,a,o),g=Eg(g,a),a=X(this,"value",t),Fe(g))&&(r=d.onChange,h=d.dataSource,l=d.value,c=d.dataValue,u=d.multiple,s=h[g].value,u?(u=h[g].value,c=Me(h=c).call(h,0),0<=Oe(c).call(c,u)?Ii(c).call(c,Oe(c).call(c,u),1):c.push(u),t.a(a,c.join(",")),r&&r(h,c,t,o)):g!==d.activeIndex&&(t.a(a,s),r)&&r(l,s,t,o))}}]),t}();function Ng(e,t){for(var o=0;o<e.length;o++)if(!e[o].active&&Q(e[o].rect,t))return e[o].value}var jg=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.apply(this,arguments)}return s(t,[{key:"onLeave",value:function(e,t,o,a,i,n){E(o,"default")}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.uiInfos;l&&l.length&&(t=H(o,t,this,a,o),a=Ng(l,t),E(o,Fe(a)?"pointer":r.defaultCursor||"default"))}},{key:"onDown",value:function(e,t,o,a,i,n){var r,l=Ye(o,t,this),s=l.uiInfos;s&&s.length&&(a=H(o,t,this,a,o),s=Ng(s,a),a=X(this,"value",t),Fe(s))&&s!==l.value&&(r=l.onChange,l=l.value,a&&t.a(a,s),r)&&r(l,s,t,o)}}]),t}();function zg(e,t){0===t?(e.textBaseline=Be,e.textAlign=Ae):0<t&&t<.25?(e.textBaseline=Be,e.textAlign=Pe):.25===t?(e.textBaseline=_e,e.textAlign=Pe):.25<t&&t<.5?(e.textBaseline=Le,e.textAlign=Pe):.5===t?(e.textBaseline=Le,e.textAlign=Ae):.5<t&&t<.75?(e.textBaseline=Le,e.textAlign=Re):.75===t?(e.textBaseline=_e,e.textAlign=Re):.75<t&&(e.textBaseline=Be,e.textAlign=Re)}function Gg(e,t){var o=Ma(arguments),a=Jg(t);if(K(a)||void 0!==e&&!nt(e))return o[1]=function(e,t){if(K(a)&&(t=Te(a,this,$g(e),t)),!nt(t))return t},jt(Qg,null,o)}function Ug(e,t,o){var a=tf(o,t-1),o=tf(o,t+1);return ef(lf,e)&&!ef(sf,o)||ef(sf,e)&&!ef(lf,a)?"\\u"+nf(of(e,0),16):e}var Yg,Xg,Zg,qg=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onLeave",value:function(e,t,o,a,i,n){}},{key:"onMove",value:function(e,t,o,a,i,n){}},{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.labelDatas,s=r.rects,r=r.labelHandleClick,s=function(e,t){for(var o=e.length,a=0;a<o;a++)if(Q(e[a],t))return a}(s,H(o,t,this,a,e));Fe(s)&&r&&r(e,l[s].ind,t,o)}}]),t}(),Kg=a([].push),Jg=function(e){if(K(e))return e;if(ha(e)){for(var t=e.length,a=[],o=0;o<t;o++){var i=e[o];"string"==typeof i?Kg(a,i):"number"!=typeof i&&"Number"!=D(i)&&"String"!=D(i)||Kg(a,ka(i))}var n=a.length,r=!0;return function(e,t){if(r)return r=!1,t;if(ha(this))return t;for(var o=0;o<n;o++)if(a[o]===e)return t}}},$g=String,Qg=pe("JSON","stringify"),ef=a(/./.exec),tf=a("".charAt),of=a("".charCodeAt),af=a("".replace),nf=a(1..toString),rf=/[\uD800-\uDFFF]/g,lf=/^[\uD800-\uDBFF]$/,sf=/^[\uDC00-\uDFFF]$/,uf=!fe||b(function(){var e=pe("Symbol")();return"[null]"!=Qg([e])||"{}"!=Qg({a:e})||"{}"!=Qg(Object(e))}),hf=b(function(){return'"\\udf06\\ud834"'!==Qg("\udf06\ud834")||'"\\udead"'!==Qg("\udead")}),cf=(Qg&&v({target:"JSON",stat:!0,arity:3,forced:uf||hf},{stringify:function(e,t,o){var a=Ma(arguments),a=jt(uf?Gg:Qg,null,a);return hf&&"string"==typeof a?af(a,rf,Ug):a}}),ue.JSON||(ue.JSON={stringify:JSON.stringify}),function(e,t,o){return jt(ue.JSON.stringify,null,arguments)}),df={chart:{modified:"Tue Feb 20 2024 10:02:53 GMT+0800 (GMT+08:00)",width:300,height:260,func:"__ht__function(g, rect, comp, data, view) {\nht.vector.comp.chart.apply(null, arguments);\n}",properties:{series:{valueType:"Object",defaultValue:[{type:"bar",data:[10,30,20]},{type:"line",data:[40,50,10]}],name:"系列"},xAxis:{valueType:"Object",defaultValue:[{data:["2017","2018","2019"]}],name:"横轴"},yAxis:{valueType:"Object",name:"纵轴"},colors:{valueType:"ColorArray",defaultValue:["rgb(51,153,255)","rgb(93,217,174)","#FEB64D","rgb(241,125,164)","rgb(135,144,204)","rgb(124,145,155)","rgb(48,242,120)","rgb(212,0,0)","#32D3EB","#c4ccd3"],name:"颜色数组"},background:{valueType:"Color",defaultValue:null,name:"背景"},backgroundIncludeAxis:{valueType:"Boolean",defaultValue:!0,name:"坐标轴背景"},boundaryGap:{valueType:"Boolean",defaultValue:!0,name:"坐标轴留白"},hoverDraw:{valueType:"Function",name:"移入绘制",extraInfo:{arguments:["g","rect","data","view","option"]}},rectSelectBorderColor:{valueType:"Color",defaultValue:"rgb(61,61,61)",name:"框选边框色",group:"选择"},rectSelectBackground:{valueType:"Color",defaultValue:"rgba(61,61,61,0.30)",name:"框选背景色"},onRectSelected:{valueType:"Function",name:"框选事件",extraInfo:{arguments:["ranges","data","view"]}},onXAxisLabelClicked:{valueType:"Function",name:"横轴文本点击事件",extraInfo:{arguments:["info","data","view"]}},onItemClicked:{valueType:"Function",name:"点击移入区域",extraInfo:{arguments:["info","data","view"]}},tooltip:{valueType:"Boolean",defaultValue:!0,name:"提示",group:"提示"},tooltipOffsetX:{valueType:"Number",defaultValue:8,name:"横偏移"},tooltipOffsetY:{valueType:"Number",defaultValue:8,name:"纵偏移"},tooltipLineColor:{valueType:"Color",defaultValue:"rgb(124,145,155)",name:"线颜色"},tooltipLineWidth:{valueType:"PositiveNumber",defaultValue:1,name:"线宽"},tooltipLinePattern:{valueType:"NumberArray",name:"线虚线样式"},tooltipPointerType:{valueType:"String",defaultValue:"auto",name:"提示类型",extraInfo:{enum:{values:["auto","line","shadow"]}}},tooltipFormatter:{valueType:"Function",name:"格式化",extraInfo:{arguments:["info","data","view"]}},drawTooltip:{valueType:"Function",name:"自定义绘制",extraInfo:{arguments:["g","rect","option"]}}},events:{onClick:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onClick.apply(this, arguments);\n}",onDown:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onDown.apply(this, arguments);\n}",onUp:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onUp.apply(this, arguments);\n}",onMove:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onMove.apply(this, arguments);\n}",onEnter:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onEnter.apply(this, arguments);\n}",onLeave:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onLeave.apply(this, arguments);\n}",onBeginDrag:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onBeginDrag.apply(this, arguments);\n}",onDrag:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onDrag.apply(this, arguments);\n}",onEndDrag:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartInteractor.onEndDrag.apply(this, arguments);\n}"}},comboBox:{modified:"Sun Apr 23 2023 17:32:40 GMT+0800 (GMT+08:00)",width:180,height:38,func:"__ht__function(g, rect, comp, data, view) {\nht.vector.comp.comboBox.apply(this, arguments);\n}",properties:{value:{valueType:"String",name:"属性值"},placeholder:{valueType:"String",name:"占位符"},placeholderColor:{valueType:"Color",defaultValue:"rgb(115,115,115)",name:"占位符颜色"},dataSource:{valueType:"Object",name:"数据源"},disabled:{valueType:"Boolean",name:"禁用"},format:{valueType:"String",name:"格式化"},formatSeparator:{valueType:"String",defaultValue:"~",name:"时间区间分隔符"},borderWidth:{valueType:"PositiveNumber",defaultValue:1,name:"边框宽度"},borderColor:{valueType:"Color",defaultValue:"#737373",name:"边框颜色"},disabledBorderColor:{valueType:"Color",defaultValue:"#ebebeb",name:"禁用边框颜色"},focusBorderColor:{valueType:"Color",defaultValue:"rgb(51,153,255)",name:"编辑边框颜色"},borderRadius:{valueType:"String",defaultValue:"0",name:"边框角度"},padding:{valueType:"String",defaultValue:"0",name:"内边距"},background:{valueType:"Color",name:"背景"},disabledBackground:{valueType:"Color",defaultValue:"#fafafa",name:"禁用背景"},focusBackground:{valueType:"Color",name:"编辑背景"},icon:{valueType:"String",name:"图标"},iconWidth:{valueType:"PositiveNumber",defaultValue:20,name:"图标宽度"},iconHeight:{valueType:"PositiveNumber",defaultValue:"20",name:"图标高度"},iconAlign:{valueType:"Align",defaultValue:"left",name:"图标水平位置"},font:{valueType:"Font",defaultValue:"12px arial, sans-serif",name:"字体"},textAlign:{valueType:"Align",defaultValue:"left",name:"文本水平对齐"},textColor:{valueType:"Color",defaultValue:"#737373",name:"文本颜色"},disabledTextColor:{valueType:"Color",defaultValue:"#ebebeb",name:"禁用文本颜色"},dropDownIcon:{valueType:"String",name:"下拉图标"},dropDownIconColor:{valueType:"Color",defaultValue:"#737373",name:"下拉图标颜色"},dropDownIconWidth:{valueType:"PositiveNumber",defaultValue:20,name:"下拉图标宽度"},dropDownIconHeight:{valueType:"PositiveNumber",defaultValue:20,name:"下拉图标高度"},drawUnMatchValue:{valueType:"Boolean",defaultValue:!1,name:"显示无效值"},searchInputVisible:{valueType:"Boolean",name:"显示搜索框"},searchInputStyle:{valueType:"Object",name:"搜索框样式"},onChange:{valueType:"Function",name:"改变事件",extraInfo:{arguments:["oldValue","newValue","data","view"]}},dropIconWidth:{valueType:"PositiveNumber",defaultValue:20,name:"选项下拉框图标宽度",group:"下拉"},dropIconHeight:{valueType:"PositiveNumber",defaultValue:20,name:"选项下拉框图标高度"},dropRowHeight:{valueType:"PositiveNumber",defaultValue:26,name:"下拉框项行高"},dropWidth:{valueType:"PositiveNumber",defaultValue:200,name:"下拉框宽度"},dropBackground:{valueType:"Color",defaultValue:"rgb(255,255,255)",name:"下拉框背景"},dropLabelFont:{valueType:"Font",defaultValue:"12px Arial, sans-serif",name:"下拉框文本字体"},dropLabelColor:{valueType:"Color",defaultValue:"#333",name:"下拉框文本颜色"},dropActiveLabelColor:{valueType:"Color",defaultValue:"rgb(247,247,247)",name:"下拉框选中文本色"},dropActiveBackground:{valueType:"Color",defaultValue:"rgb(51,153,255)",name:"下拉框选中背景"},dropLabelHoverColor:{valueType:"Color",name:"下拉框悬停文本颜色"},dropHoverBackground:{valueType:"Color",defaultValue:"#60ACFC",name:"下拉框悬停背景"},dropMaxHeight:{valueType:"PositiveNumber",defaultValue:280,name:"下拉框最大高度"},dropDownSyncZoom:{valueType:"Boolean",name:"同步缩放"},dropBorderColor:{valueType:"Color",defaultValue:null,name:"下拉框边框颜色"},dropBorderWidth:{valueType:"PositiveNumber",defaultValue:1,name:"下拉框边框宽度"},textDisableColor:{valueType:"Color",defaultValue:"rgb(232,232,232)",name:"选项禁用颜色"},dropBoxBorderWidth:{valueType:"PositiveNumber",name:"盒子边框宽度"},dropBoxBorderColor:{valueType:"Color",name:"盒子边框颜色"},dropBoxBorderType:{valueType:"String",name:"盒子边框样式",extraInfo:{enum:{values:["dotted","solid","double","dashed"]}}},dropBoxBorderRadius:{valueType:"PositiveNumber",name:"盒子角度"},scrollSpeed:{valueType:"PositiveNumber",defaultValue:1,name:"滚动速度"},autoApply:{valueType:"Boolean",defaultValue:!0,name:"选中填充",group:"日期下拉框"},applyText:{valueType:"String",defaultValue:"Apply",name:"确定按钮文本"},cancelText:{valueType:"String",defaultValue:"Cancel",name:"取消按钮文本"},buttonAlign:{valueType:"String",defaultValue:"right",name:"按钮位置",extraInfo:{enum:{values:["left","center","right"]}}},buttonGap:{valueType:"Number",defaultValue:5,name:"按钮间距"},dateType:{valueType:"String",defaultValue:"date",name:"日期类型",extraInfo:{enum:{values:["date","datetime"]}}},selectableFunc:{valueType:"Function",name:"可选过滤",extraInfo:{arguments:["date"]}},dropDownStyle:{valueType:"Object",name:"下拉框样式"},dropDownBackground:{valueType:"Color",name:"下拉框背景颜色",group:"多选日期下拉框"},dropDownBorderWidth:{valueType:"PositiveNumber",name:"下拉框边框宽度"},dropDownBorderColor:{valueType:"Color",name:"下拉框边框颜色"},dropDownBorderType:{valueType:"String",name:"下拉框边框样式",extraInfo:{enum:{values:["dotted","solid","double","dashed"]}}},dropDownBorderRadius:{valueType:"PositiveNumber",name:"下拉框圆角"},okButtonTextFont:{valueType:"Font",name:"确定按钮字体"},okButtonTextColor:{valueType:"Color",name:"确定按钮字色"},okButtonBackground:{valueType:"Color",name:"确定按钮背景颜色"},cancelButtonTextFont:{valueType:"Font",name:"取消按钮字体"},cancelButtonTextColor:{valueType:"Color",name:"取消按钮字色"},cancelButtonBackground:{valueType:"Color",name:"取消按钮背景颜色"},timeButtonTextFont:{valueType:"Font",name:"时间按钮字体"},timeButtonTextColor:{valueType:"Color",name:"时间按钮字色"},dateRangePaneLabelFont:{valueType:"Font",name:"面板字体"},dateRangePaneLabelColor:{valueType:"Color",name:"面板字色"},shortcutListLabelFont:{valueType:"Font",name:"快捷面板字体"},shortcutListLabelColor:{valueType:"Color",name:"快捷面板字色"}},events:{onDown:"__ht__function(event, data, view, point, width, height) {\nht.vector.comboBoxInteractor.onDown.apply(this, arguments);\n}",onUp:"__ht__function(event, data, view, point, width, height) {\nht.vector.comboBoxInteractor.onUp.apply(this, arguments);\n}",onMove:"__ht__function(event, data, view, point, width, height) {\nht.vector.comboBoxInteractor.onMove.apply(this, arguments);\n}",onEnter:"__ht__function(event, data, view, point, width, height) {\nht.vector.comboBoxInteractor.onEnter.apply(this, arguments);\n}",onLeave:"__ht__function(event, data, view, point, width, height) {\nht.vector.comboBoxInteractor.onLeave.apply(this, arguments);\n}",onDrag:"__ht__function(event, data, view, point, width, height) {\nht.vector.comboBoxInteractor.onDrag.apply(this, arguments);\n}"},snapshotURL:"symbols/ht/snapshot/comboBox.json"},chartLegend:{modified:"Tue Nov 08 2022 17:12:25 GMT+0800 (GMT+08:00)",width:300,height:100,func:"__ht__function(g, rect, comp, data, view) {\nht.vector.comp.chartLegend.apply(this, arguments);\n}",properties:{dataSource:{valueType:"Object",defaultValue:[{name:"上海2"},{name:"厦门34"},{name:"天津14"},{name:"大连37"},{name:"青岛5"}],name:"数据"},colors:{valueType:"ColorArray",defaultValue:["rgb(51,153,255)","rgb(93,217,174)","#FEB64D","rgb(241,125,164)","rgb(135,144,204)","rgb(124,145,155)","rgb(48,242,120)","rgb(212,0,0)","#32D3EB","#c4ccd3"],name:"颜色数组"},align:{valueType:"Align",defaultValue:"left",name:"水平对齐"},vAlign:{valueType:"VAlign",defaultValue:"top",name:"垂直对齐"},vertical:{valueType:"Boolean",defaultValue:!1,name:"垂直显示"},hGap:{valueType:"Number",defaultValue:8,name:"横间距"},vGap:{valueType:"Number",defaultValue:8,name:"纵间距"},hPadding:{valueType:"Number",defaultValue:16,name:"横边距"},vPadding:{valueType:"Number",defaultValue:16,name:"纵边距"},orientation:{valueType:"Orientation",defaultValue:"left",name:"朝向",group:"图标"},disabledIconColor:{valueType:"Color",defaultValue:"rgb(217,217,217)",name:"禁用颜色"},iconWidth:{valueType:"Number",defaultValue:22,name:"宽度"},iconHeight:{valueType:"Number",defaultValue:12,name:"高度"},drawIcon:{valueType:"Function",name:"自定义绘制",extraInfo:{arguments:["g","rect","item","itemIndex","color","data","view"]}},textGap:{valueType:"Number",defaultValue:5,name:"文字图标间距",group:"标签"},useItemColorOnLabel:{valueType:"Boolean",defaultValue:!0,name:"使用图标颜色"},font:{valueType:"Font",defaultValue:"12px sans-serif, Arial",name:"字体"},labelColor:{valueType:"Color",defaultValue:"rgb(61,61,61)",name:"颜色"},disabledLabelColor:{valueType:"Color",defaultValue:"rgb(217,217,217)",name:"禁用颜色"},handleHover:{valueType:"Function",name:"悬浮事件",group:"事件",extraInfo:{arguments:["index","info","data","view"]}},handleClick:{valueType:"Function",name:"点击事件",extraInfo:{arguments:["index","info","data","view"]}}},events:{onDown:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartLegendInteractor.onDown.apply(this, arguments);\n}",onMove:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartLegendInteractor.onMove.apply(this, arguments);\n}",onLeave:"__ht__function(event, data, view, point, width, height) {\nht.vector.chartLegendInteractor.onLeave.apply(this, arguments);\n}"}},button:{modified:"Mon Jun 07 2021 11:34:01 GMT+0800 (GMT+08:00)",width:100,height:38,func:"__ht__function(g, rect, comp, data, view) {\nht.vector.comp.button(g, rect, comp, data, view);\n}",properties:{text:{valueType:"String",name:"文本"},disabled:{valueType:"Boolean",defaultValue:!1,name:"禁用"},font:{valueType:"Font",defaultValue:"12px arial, sans-serif",name:"字体"},icon:{valueType:"String",name:"图标"},iconPosition:{valueType:"Orientation",defaultValue:"left",name:"图标位置"},iconWidth:{valueType:"PositiveNumber",defaultValue:20,name:"图标宽度"},iconHeight:{valueType:"PositiveNumber",defaultValue:20,name:"图标高度"},iconGap:{valueType:"PositiveNumber",defaultValue:0,name:"图标间距"},iconColor:{valueType:"Color",name:"图标染色"},hoverIconColor:{valueType:"Color",name:"悬停图标染色"},activeIconColor:{valueType:"Color",name:"按下图标染色"},textColor:{valueType:"Color",defaultValue:"rgb(61,61,61)",name:"文本颜色"},hoverTextColor:{valueType:"Color",name:"悬停文本颜色"},activeTextColor:{valueType:"Color",name:"按下文本颜色"},disabledTextColor:{valueType:"Color",defaultValue:"#ebebeb",name:"禁用文本颜色"},borderWidth:{valueType:"PositiveNumber",defaultValue:0,name:"边框宽度"},borderColor:{valueType:"Color",defaultValue:"#737373",name:"边框颜色"},hoverBorderColor:{valueType:"Color",name:"悬停边框颜色"},activeBorderColor:{valueType:"Color",name:"按下边框颜色"},disabledBorderColor:{valueType:"Color",defaultValue:"#ebebeb",name:"禁用边框颜色"},background:{valueType:"Color",defaultValue:"rgb(51,153,255)",name:"背景"},hoverBackground:{valueType:"Color",name:"悬停背景"},activeBackground:{valueType:"Color",name:"按下背景"},disabledBackground:{valueType:"Color",defaultValue:"#fafafa",name:"禁用背景"},borderRadius:{valueType:"String",defaultValue:"0",name:"边框角度"},handleClick:{valueType:"Function",name:"点击事件",extraInfo:{arguments:["event","data","view"]}}},events:{onDown:"__ht__function(event, data, view, point, width, height) {\nht.vector.buttonInteractor.onDown.apply(this, arguments);\n}",onUp:"__ht__function(event, data, view, point, width, height) {\nht.vector.buttonInteractor.onUp.apply(this, arguments);\n}",onEnter:"__ht__function(event, data, view, point, width, height) {\nht.vector.buttonInteractor.onEnter.apply(this, arguments);\n}",onLeave:"__ht__function(event, data, view, point, width, height) {\nht.vector.buttonInteractor.onLeave.apply(this, arguments);\n}"},snapshotURL:"symbols/ht/snapshot/button.json"},input:{modified:"Wed Nov 24 2021 14:37:24 GMT+0800 (中国标准时间)",width:180,height:38,func:"__ht__function(g, rect, comp, data, view) {\nht.vector.comp.input.apply(this, arguments);\n}",properties:{value:{valueType:"String",name:"属性值"},placeholder:{valueType:"String",name:"占位符"},placeholderColor:{valueType:"Color",defaultValue:"#737373",name:"占位符颜色"},disabled:{valueType:"Boolean",defaultValue:!1,name:"禁用"},disabledLayerColor:{valueType:"Color",defaultValue:"rgba(255,255,255,0.35)",name:"禁用蒙层颜色"},borderWidth:{valueType:"PositiveNumber",defaultValue:1,name:"边框宽度"},borderColor:{valueType:"Color",defaultValue:"#737373",name:"边框颜色"},borderPattern:{valueType:"NumberArray",name:"线虚线样式"},focusBorderColor:{valueType:"Color",defaultValue:null,name:"编辑边框颜色"},borderRadius:{valueType:"String",defaultValue:"0",name:"边框角度"},padding:{valueType:"String",defaultValue:"0",name:"内边距"},background:{valueType:"Color",name:"背景"},focusBackground:{valueType:"Color",name:"编辑背景"},icon:{valueType:"String",name:"图标"},iconWidth:{valueType:"PositiveNumber",defaultValue:20,name:"图标宽度"},iconHeight:{valueType:"PositiveNumber",defaultValue:"20",name:"图标高度"},iconAlign:{valueType:"Align",defaultValue:"left",name:"图标水平位置"},font:{valueType:"Font",defaultValue:"12px arial, sans-serif",name:"字体"},textAlign:{valueType:"Align",defaultValue:"left",name:"文本水平对齐"},textColor:{valueType:"Color",defaultValue:"#737373",name:"文本颜色"},maxLength:{valueType:"PositiveNumber",name:"最大长度"},inputType:{valueType:"String",defaultValue:"text",name:"输入类型",extraInfo:{enum:{values:["text","password"]}}},enterEndInputable:{valueType:"Boolean",defaultValue:!0,name:"可回车结束编辑"},selectTextOnFocus:{valueType:"Boolean",defaultValue:!1,name:"聚焦时选中"},formatter:{valueType:"Function",name:"格式",extraInfo:{arguments:["value","data","view"]}},onKeyDown:{valueType:"Function",name:"按键按下事件",extraInfo:{arguments:["event","data","view"]}},onKeyUp:{valueType:"Function",name:"按键松开事件",extraInfo:{arguments:["event","data","view"]}},onChange:{valueType:"Function",name:"改变事件",extraInfo:{arguments:["value","data","view"]}},onBlur:{valueType:"Function",name:"失焦事件",extraInfo:{arguments:["event","data","view"]}},onFocus:{valueType:"Function",name:"聚焦事件",extraInfo:{arguments:["event","data","view"]}}},events:{onDown:"__ht__function(event, data, view, point, width, height) {\nht.vector.inputInteractor.onDown.apply(this, arguments);\n}",onUp:"__ht__function(event, data, view, point, width, height) {\nht.vector.inputInteractor.onUp.apply(this, arguments);\n}",onEnter:"__ht__function(event, data, view, point, width, height) {\nht.vector.inputInteractor.onEnter.apply(this, arguments);\n}",onLeave:"__ht__function(event, data, view, point, width, height) {\nht.vector.inputInteractor.onLeave.apply(this, arguments);\n}",onDrag:"__ht__function(event, data, view, point, width, height) {\nht.vector.inputInteractor.onDrag.apply(this, arguments);\n}"},snapshotURL:"symbols/ht/snapshot/input.json"}};for(Yg in df)delete(Zg=df[Xg=Yg]).modified,delete Zg.snapshotURL,ht.Default.setCompType("ht.vector.".concat(Xg),ht.Default.parse(cf(Zg)));function gf(e,t,o){var a=e.x,i=(e.y,e.width),e=(e.height,o-t);return 0<=t?a+i:o<=0?a:a+i*(1-Math.abs(t)/e)}function ff(e,t,o,a){e.save();var i=t.x,n=t.y,r=t.width,t=t.height,l=[],s=t/3;"left"==a?(l[0]={x:i,y:n},l[1]={x:i-s,y:n+t/2},l[2]={x:i,y:n+t},l[3]={x:i+s,y:n+t/2},l[4]={x:i+r-s,y:n},l[5]={x:i+r-2*s,y:n+t/2},l[6]={x:i+r-s,y:n+t},l[7]={x:i+r,y:n+t/2},e.beginPath(),e.strokeStyle=o,e.lineWidth=1,e.fillStyle=ht.Default.brighter(o),e.beginPath(),e.moveTo(l[0].x,l[0].y),e.bezierCurveTo(l[0].x,l[0].y,l[1].x,l[1].y,l[2].x,l[2].y),e.bezierCurveTo(l[2].x,l[2].y,l[3].x,l[3].y,l[0].x,l[0].y),e.closePath(),e.stroke(),Ue(e).call(e),e.beginPath(),e.moveTo(l[2].x,l[2].y),e.bezierCurveTo(l[2].x,l[2].y,l[3].x,l[3].y,l[0].x,l[0].y),e.lineTo(l[4].x,l[4].y),e.bezierCurveTo(l[4].x,l[4].y,l[7].x,l[7].y,l[6].x,l[6].y)):(l[0]={x:i+s,y:n},l[1]={x:i,y:n+t/2},l[2]={x:i+s,y:n+t},l[3]={x:i+2*s,y:n+t/2},l[4]={x:i+r,y:n},l[5]={x:i+r-s,y:n+t/2},l[6]={x:i+r,y:n+t},l[7]={x:i+r+s,y:n+t/2},e.beginPath(),e.strokeStyle=o,e.lineWidth=1,e.fillStyle=ht.Default.brighter(o),e.moveTo(l[4].x,l[4].y),e.bezierCurveTo(l[4].x,l[4].y,l[5].x,l[5].y,l[6].x,l[6].y),e.bezierCurveTo(l[6].x,l[6].y,l[7].x,l[7].y,l[4].x,l[4].y),e.closePath(),e.stroke(),Ue(e).call(e),e.beginPath(),e.moveTo(l[2].x,l[2].y),e.bezierCurveTo(l[2].x,l[2].y,l[1].x,l[1].y,l[0].x,l[0].y),e.lineTo(l[4].x,l[4].y),e.bezierCurveTo(l[4].x,l[4].y,l[5].x,l[5].y,l[6].x,l[6].y)),e.closePath(),e.globalAlpha=.6,Ue(e).call(e),e.globalAlpha=1,e.stroke(),e.restore()}function pf(e){var t,o,a,i,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length?arguments[2]:void 0,l=3<arguments.length?arguments[3]:void 0,s=4<arguments.length?arguments[4]:void 0,u=5<arguments.length?arguments[5]:void 0,h=6<arguments.length?arguments[6]:void 0,c=7<arguments.length?arguments[7]:void 0,d=8<arguments.length&&void 0!==arguments[8]?arguments[8]:"right",s=s[u],r=vr(r,u),d=n.position||d,u="function"==typeof n.color?n.color(s,u,r,h,c):n.color||r,r=("left"===d?(t=l.x,o=l.y+l.height/2,a="middle",i="right"):"right"===d?(t=l.x+l.width,o=l.y+l.height/2,a="middle",i="left"):"top"===d?(t=l.x+l.width/2,o=l.y,a="bottom",i="center"):"bottom"===d&&(t=l.x+l.width/2,o=l.y+l.height,a="top",i="center"),{x:t,y:o,value:s=n.formatter&&"function"==typeof n.formatter?n.formatter(s,h,c):s,stackValue:s,textBaseline:a,textAlign:i,labelColor:u});e.push(r)}var vf=function(e){return"ht.vector.".concat(e)},yf=function(e){return"object"===Xe(e)?e:ht.Default.getCompType(vf(e))},xf={},mf=function(l,s,e,u,h){var n,r,c,d,g,f,p,v,y,x,O,E,m,b=h.seriesDatas[e],H=s.name,t=h.bounds,o=t.bodyRect,t=t.bodySplitRect,a=o,w=a.x,W=(a.y,a.width),k=(a.height,s.color||vr(u.color,e)),a=u.xAxis[s.xAxisIndex||0],i=u.yAxis[s.yAxisIndex||0],C=i._axisObj.unitWidth,T=a._axisObj.valueRange,a=T[0],F=T[1],V=i._axisObj.axisInfos,D=s.shadow,I=s.round||{},S=s.barWidth||.8,i=h.barSeries,L=(h.hoverIndex,h.leftSeries),B=h.rightSeries,R=i.length,N=Oe(i).call(i,s),P=h.barCategoryGap||0,A=(C-2*(1<=P?P:C*P))/R,_=s.drawBar,M=h.view&&h.view.getZoom?h.view.getZoom():1;We(t)||(A=(N=s.renderArea===Pe?(R=L.length,Oe(L).call(L,s)):(R=B.length,Oe(B).call(B,s)),(C-2*(1<=P?P:C*P))/R)),S<1&&(S*=A),b&&b.length&&V&&(We(t)?(n=[],r=h.interactiveInfo.axisInfos[h.valueAxis===he?s.xAxisIndex||0:s.yAxisIndex||0],c=gf(o,a,F),d=[w,w+W],g=[],ze(b).call(b,function(e,t){var o,a,i="function"==typeof k?k(e,t,vr(u.color,t),h.data,h.view):k;V[t]&&(o={x:Wd(d,T,e),y:V[t].position},a={x:w,y:o.y-C/2+A*N+(A-S)/2+(1<=P?P:C*P),width:Math.abs(o.x-c),height:S},n.push(a),r[t].series.push([H,Fe(e)?e:"-",i,o.x,o.y,a]),pf(g,s.label,u.color,a,b,t,h.data,h.view,"right"))}),h.labelInfo[e]=g,h.seriesColors.push(vr(u.color,e)),l.save(),ze(n).call(n,function(n,e){function t(){var e,t,o,a;function i(e){return e<1?(n.width>n.height?n.height:n.width)*e:e}"cylinder"===s.type?ff(l,n,r):(l.fillStyle=r,D&&(t=D.color||wn(r),o=D.opacity,Fe(o)&&(a=or(t),e=Ii(a).call(a,3,1)[0]||255,t=Ee(a="rgba(".concat(a.join(","),",")).call(a,e/255*o,")")),l.shadowColor=t,l.shadowBlur=D.blur||0,l.shadowOffsetX=(D.offsetX||0)*M,l.shadowOffsetY=(D.offsetY||0)*M),e=void 0===(a=I.topLeftRadius)?0:a,t=void 0===(o=I.topRightRadius)?null:o,o=void 0===(a=I.bottomLeftRadius)?null:a,a=void 0===(a=I.bottomRightRadius)?null:a,l.beginPath(),We(t)&&We(o)&&We(a)?xe(l,n.x,n.y,n.width,n.height,i(e)):xe(l,n.x,n.y,n.width,n.height,i(e),i(t),i(o),i(a)),l.closePath(),Ue(l).call(l))}var r=ir(l,"function"==typeof k?k(b[e],e,vr(u.color,e),h.data,h.view):k,n);_?_(l,b[e],n,{defaultDraw:t,index:e,boundary:{x:w,y:n.y,width:W,height:n.height},color:r,data:h.data,view:h.view}):t()})):(f=s.renderArea==Pe?(o=t[0],Oe(L).call(L,s)):(o=t[1],Oe(B).call(B,s)),p=(i=o).x,i.y,v=i.width,i.height,y=[],x=h.interactiveInfo.axisInfos[h.valueAxis===he?s.xAxisIndex||0:s.yAxisIndex||0],O=gf(o,a,F),E=[p,p+v],m=[],ze(b).call(b,function(e,t){var o,a,i="function"==typeof k?k(e,t,vr(u.color,t),h.data,h.view):k;V[t]&&(o={x:Wd(E,T,e),y:V[t].position},a={x:p,y:o.y-C/2+A*f+(A-S)/2+(1<=P?P:C*P),width:Math.abs(o.x-O),height:S},y.push(a),x[t].series.push([H,Fe(e)?e:"-",i,o.x,o.y,a]),s.renderArea==Pe?pf(m,s.label,u.color,{x:a.x+v-a.width,y:a.y,width:a.width,height:a.height},b,t,h.data,h.view,s.renderArea):pf(m,s.label,u.color,a,b,t,h.data,h.view,s.renderArea))}),h.labelInfo[e]=m,h.seriesColors.push(vr(u.color,e)),l.save(),ze(y).call(y,function(n,e){function t(){var e,t,o,a;function i(e){return e<1?(n.width>n.height?n.height:n.width)*e:e}"cylinder"===s.type?(t=s.renderArea==Pe?{x:n.x+v-n.width,y:n.y,width:n.width,height:n.height}:n,ff(l,t,r,s.renderArea)):(l.fillStyle=r,D&&(t=D.color||wn(r),o=D.opacity,Fe(o)&&(a=or(t),e=Ii(a).call(a,3,1)[0]||255,t=Ee(a="rgba(".concat(a.join(","),",")).call(a,e/255*o,")")),l.shadowColor=t,l.shadowBlur=D.blur||0,l.shadowOffsetX=(D.offsetX||0)*M,l.shadowOffsetY=(D.offsetY||0)*M),e=void 0===(a=I.topLeftRadius)?0:a,t=void 0===(o=I.topRightRadius)?null:o,o=void 0===(a=I.bottomLeftRadius)?null:a,a=void 0===(a=I.bottomRightRadius)?null:a,l.beginPath(),s.renderArea==Pe?We(t)&&We(o)&&We(a)?xe(l,n.x+v-n.width,n.y,n.width,n.height,i(e)):xe(l,n.x+v-n.width,n.y,n.width,n.height,i(e),i(t),i(o),i(a)):We(t)&&We(o)&&We(a)?xe(l,n.x,n.y,n.width,n.height,i(e)):xe(l,n.x,n.y,n.width,n.height,i(e),i(t),i(o),i(a)),l.closePath(),Ue(l).call(l))}var r=ir(l,"function"==typeof k?k(b[e],e,vr(u.color,e),h.data,h.view):k,n);_?s.renderArea==Pe?_(l,b[e],{x:n.x+v-n.width,y:n.y,width:n.width,height:n.height},{defaultDraw:t,index:e,boundary:{x:p,y:n.y,width:v,height:n.height},color:r,data:h.data,view:h.view}):_(l,b[e],n,{defaultDraw:t,index:e,boundary:{x:p,y:n.y,width:v,height:n.height},color:r,data:h.data,view:h.view}):t()})),l.restore())},bf=function(t,e){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],a=e.offsetX,i=void 0===a?0:a,a=e.offsetY,n=void 0===a?0:a,a=e.font,r=void 0===a?"12px arial":a,a=e.shadowOffsetX,l=void 0===a?0:a,a=e.shadowOffsetY,s=void 0===a?0:a,u=e.shadowBlur,h=e.shadowColor,a=e.useStack,c=void 0===a||a;ze(o).call(o,function(e){t.save(),t.translate(i,n),t.font=r,t.shadowBlur=u,t.shadowColor=h,t.shadowOffsetX=l,t.shadowOffsetY=s,t.fillStyle=e.labelColor,t.textBaseline=e.textBaseline,t.textAlign=e.textAlign,t.fillText(c?e.stackValue:e.value,e.x,e.y),t.restore()})};var wf={show:!0,type:"category",data:[],bodyGap:0,axisLine:{show:!0,width:1,color:"rgb(61,61,61)"},axisLabel:{show:!0,rotate:0,align:"auto",font:"12px arial",color:"rgb(61,61,61)",offsetX:0,offsetY:0},axisTick:{show:!0,color:"rgb(61,61,61)",length:5},splitLine:{show:!1,color:"#cccccc",width:1,pattern:null,splitColors:null}},kf={show:!0,type:"value",splitNumber:5,bodyGap:0,axisLine:{show:!0,width:1,color:"rgb(61,61,61)"},axisLabel:{show:!0,rotate:0,align:"auto",font:"12px arial",color:"rgb(61,61,61)",offsetX:0,offsetY:0},axisTick:{show:!0,color:"rgb(61,61,61)",length:5},splitLine:{show:!0,color:"#cccccc",width:1,pattern:null}},Cf=["rgb(51,153,255)","rgb(93,217,174)","#FEB64D","rgb(241,125,164)","rgb(135,144,204)","rgb(124,145,155)","rgb(48,242,120)","rgb(212,0,0)","#32D3EB","#c4ccd3"],Tf=function(){d(l,lg);var r=g(l);function l(e,t,o){c(this,l),(i=r.call(this,e,t,o)).axisIndex=Oe(a=t.xAxis).call(a,e),i.isValueAxis=o.valueAxis===he,i.position=e.position||(i.axisIndex?Le:Be),ze(a=t.series).call(a,function(e){(e.xAxisIndex||0)===i.axisIndex&&i.series.push(e)}),i.boundHeight=i.getBoundHeight();var a,i,e=o.seriesDatas,n=[];return ze(e).call(e,function(e){n=Ee(n).call(n,e)}),i.caluValueRange(n),i}return s(l,[{key:"getBoundHeight",value:function(){var e,t,o,a,i,n,r=this.axisOption;return r.size||(e=(t=this.ui).data,t=t.view,r.show?(o=r.axisLabel.rotate,a=r.axisTick.show?r.axisTick.length:0,(i=this.getDataZoomOption())&&!1!==i.sliderVisible&&(a+=18),r.axisLabel.show?(i=zn(r.data,e,t),n=Qi,i&&ze(i).call(i,function(e){Fe(e)&&e.toString().length>n.length&&(n=e)}),r.axisLabel.formatter&&(n=r.axisLabel.formatter(n)),o?a+$n(r.axisLabel.font,n,o).height+2*$i:a+He(r.axisLabel.font,n).height+2*$i):a+$i):$i)}},{key:"draw",value:function(n){var i,r,l,s,u,h,c,d,e,g,f,p,v,y,t,x,m,b,w,k,a,C,o=this.ui,T=o.data,V=o.view,D=(o.seriesDatas,o.bounds),I=this.axisOption,S=this.axisIndex,S=o.bounds.xAxisRects[S],L=this.position;!1!==I.show&&(t=this.zoomValueRange,i=I.axisLabel.rotate,r=S.x,l=S.y,s=S.width,u=S.height,!1!==I.show&&I.axisLine.show&&(n.strokeStyle=I.axisLine.color,n.lineWidth=I.axisLine.width,n.beginPath(),L==Le?(n.moveTo(r,l+u),n.lineTo(r+s,l+u)):(n.moveTo(r,l),n.lineTo(r+s,l)),n.stroke()),!1!==I.show)&&(S=je(t,3),h=S[0],t=S[1],S[2],c=t-h,S=this.getValuesByValueRange(!0),d=0,I.axisTick.show&&(d=I.axisTick.length)&&(n.strokeStyle=I.axisTick.color,n.beginPath(),ze(S).call(S,function(e){var t,o,a;We(D.bodySplitRect)?(t=r+s*((e-h)/c),L==Le?(n.moveTo(t,l+u),n.lineTo(t,l+u-d)):(n.moveTo(t,l),n.lineTo(t,l+d))):(o=r+(t=s/2),L==Le?(n.moveTo(a=o+(e-h)/c*t,l+u),n.lineTo(a,l+u-d),n.moveTo(a=o-(e-h)/c*t,l+u),n.lineTo(a,l+u-d)):(n.moveTo(a=o+(e-h)/c*t,l),n.lineTo(a,l+d),n.moveTo(a=o-(e-h)/c*t,l),n.lineTo(a,l+d)))}),n.stroke()),t=I.axisLabel.font,e=I.axisLabel.color,g=I.axisLabel.offsetX,f=I.axisLabel.offsetY,p=I.axisLabel.formatter,v=He(t,"1"),y=l+v.height,n.font=t,n.fillStyle=e,n.textAlign=Ae,n.textBaseline=_e,I.axisLabel.show&&ze(S).call(S,function(e){var t,o,a;We(D.bodySplitRect)?(t=r+s*((e-h)/c),n.save(),L==Le?n.translate(t,l+u-v.height):n.translate(t,y)):(a=(o=r+(t=s/2))+(e-h)/c*t,n.save(),L==Le?n.translate(a,l+u-v.height):n.translate(a,y),n.rotate(lr(-i)),"function"==typeof p&&(e=p(e,T,V)),n.fillText(e,g,f),n.restore(),n.save(),a=o-(e-h)/c*t,L==Le?n.translate(a,l+u-v.height):n.translate(a,y)),n.rotate(lr(-i)),"function"==typeof p&&(e=p(e,T,V)),n.fillText(e,g,f),n.restore()}),n.save(),I.splitLine.show&&(t=o.bounds.bodyRect,x=t.x,m=t.y,b=t.width,w=t.height,n.rect(x,m,b,w),n.clip(),k=I.splitLine.drawLine,n.strokeStyle=I.splitLine.color,n.lineWidth=I.splitLine.width||1,I.splitLine.pattern&&n.setLineDash(I.splitLine.pattern),n.beginPath(),We(D.bodySplitRect)?(a=b/(S.length-1)/2,ze(S).call(S,function(e,t){var o=x+b*((e-h)/c);"function"==typeof k?k(n,{x:o-a/2,y:m,width:a,height:w},e):(n.moveTo(o,m),n.lineTo(o,m+w))})):(C=b/(S.length-1)/2/2,ze(S).call(S,function(e,t){var o,a,i;e-h!=0&&(i=(a=x+(o=b/2))+(e-h)/c*o,"function"==typeof k?(k(n,{x:i-C/2,y:m,width:C,height:w},e),k(n,{x:a-(e-h)/c*o-C/2,y:m,width:C,height:w},e)):(n.moveTo(i,m),n.lineTo(i,m+w),n.moveTo(i=a-(e-h)/c*o,m),n.lineTo(i,m+w)))})),n.stroke()),n.restore())}}]),l}(),Vf=function(){d(r,lg);var n=g(r);function r(e,t,o){var a,i;return c(this,r),(i=n.call(this,e,t,o)).axisIndex=Oe(a=t.yAxis).call(a,e),i.isValueAxis=o.valueAxis===he,i.position=e.position||(i.axisIndex?Re:Pe),ze(a=t.series).call(a,function(e,t){(e.yAxisIndex||0)===i.axisIndex&&(i.series.push(e),i.seriesIndexs.push(t))}),i.labelHeight=i.getLabelHeight(),i.boundWidth=i.getBoundWidth(),i}return s(r,[{key:"getLabelHeight",value:function(){return this.getMaxValueBound().height}},{key:"getBoundWidth",value:function(){var e,t,o=this.axisOption,a=(o.data,o.axisLabel.offsetX),i=o.axisLabel.rotate;return o.size||(o.axisLabel.show?(e=zn(o.data,this.ui.data,this.ui.view),t=Qi,e&&ze(e).call(e,function(e){Fe(e)&&e.toString().length>t.length&&(t=e)}),o.axisLabel.formatter&&(t=o.axisLabel.formatter(t)),i?0+$n(o.axisLabel.font,t,i).width+o.axisTick.length+$i:0+He(o.axisLabel.font,t).width+o.axisTick.length+$i):0+a+o.axisTick.length+$i)}},{key:"draw",value:function(i){var n=this,e=this.ui,r=e.data,l=e.view,s=this.axisOption,t=this.axisIndex,o=e.bounds.yAxisRects[t],u=[];if(!1!==s.show){this.zoomValueRange;var h=s.axisLabel.rotate,c=o.x,d=o.y,g=o.width,f=o.height,p=(s.axisLine.show&&(i.strokeStyle=s.axisLine.color,i.lineWidth=s.axisLine.width,i.beginPath(),this.position===Re?(i.moveTo(c,d),i.lineTo(c,d+f)):(i.moveTo(c+g,d),i.lineTo(c+g,d+f)),i.stroke()),this.data||[]),v=0;if(s.axisTick.show&&(v=s.axisTick.length)){i.strokeStyle=s.axisTick.color,i.beginPath();for(var a=0;a<=p.length;a++){var y=d+f*(a/p.length);this.position===Re?(i.moveTo(c,y),i.lineTo(c+v,y)):(i.moveTo(c+g,y),i.lineTo(c+g-v,y))}i.stroke()}var x=g-(s.axisTick.show?v:0),m=s.axisLabel.font,b=s.axisLabel.color,w=s.axisLabel.offsetX,k=s.axisLabel.offsetY,C=s.axisLabel.formatter,T=s.axisLabel.drawLabel,V=c+x,D=(i.font=m,i.fillStyle=b,i.textAlign=this.position===Pe?Re:Pe,i.textBaseline=_e,0),x=1,I=(ze(p).call(p,function(e){C&&(e=C(e,r,l));e=$n(m,e);D+=e.height}),D>o.height&&!t&&(x=Math.ceil(D/o.height)),Fe(s.axisLabel.interval)?s.axisLabel.interval:x);if(0===I&&(I=1),ze(p).call(p,function(e,t){var o,a=d+f*((2*t+1)/(2*p.length));t%I==0&&s.axisLabel.show&&(i.save(),T&&"function"==typeof T?(o=f/p.length,T(i,e,{x:c,y:d+o*t,width:g,height:o},{data:r,view:l,index:t})):(n.position===Re?i.translate(c+(s.axisTick.show?v:0),a):i.translate(V,a),i.rotate(lr(-h)),"function"==typeof C&&(e=C(e,r,l)),i.fillText(e,w,k)),i.restore()),u.push({position:a,label:p[t]})}),this.axisInfos=u,this.unitWidth=f/p.length,i.save(),s.splitLine.show){var b=e.bounds.bodyRect,S=b.x,L=b.y,B=b.width,R=b.height;s.splitLine.interval,i.strokeStyle=s.splitLine.color,i.lineWidth=s.splitLine.width||1,s.splitLine.pattern&&i.setLineDash(s.splitLine.pattern),i.beginPath();for(var P=0;P<=p.length;P++){var A=L+R*(P/p.length);i.moveTo(S,A),i.lineTo(S+B,A)}i.stroke()}i.restore()}}}]),r}(),Df=ht.Default,If=Df.clone;Df.unionPoint;var Sf=new qc,Df=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.ui,r=r.option;if(r&&l){r=r.clickBar;if(r&&ht.Default.isFunction(r)){var s=l.interactiveInfo,l=l.bounds.bodyRect,s=s.axisInfos,a=H(o,t,this,a,e);if(Q(l,a)&&s.length){for(var u,h,c=a.y,d=1/0,g=s[0],f=0;f<g.length;f++){var p=Math.abs(g[f].position-c);p<d&&(d=p,u=f)}g[u]&&(h=[],ze(s).call(s,function(e){var t,e=e[u],o=[];ze(t=e.series).call(t,function(e){o.push({name:e[0],value:e[1]})}),h.push({category:e.label,datas:o,index:u})}),r(h[0],t,o))}}}}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.ui,s=r.option;if(s&&l&&(r._moveTimer&&clearTimeout(r._moveTimer),s)&&s.tooltip.show&&!r._dragging){var u=l.interactiveInfo,h=l.bounds.bodyRect,u=u.axisInfos,c=H(o,t,this,a,e),d=s.tooltip.formatter;if(Q(h,c)&&u.length){for(var g,f,p,v=c.y,y=1/0,x=u[0],m=0;m<x.length;m++){var b=Math.abs(x[m].position-v);b<y&&(y=b,g=m)}x[g]&&(f=[],p=Me(h=l.seriesColors).call(h,0),ze(u).call(u,function(e){e=e[g];f.push({label:e.label,datas:e.series,colors:Ii(p).call(p,0,e.series.length),index:g})}),f=Yn(f),Sf._tipNode.a("labelFont",null),d&&d(f,t,o),Sf.setInfo(f,o),B.show(Sf.getView(),e)),r.hoverIndex!==g&&(r.hoverIndex=g,t.iv())}else delete r.hoverIndex,t.iv(),B.hide();c=s.yAxis[0].axisLabel.showTooltip;if(c){h=l.interactiveInfo,u=l.bounds.yAxisRects,d=h.axisInfos,s=H(o,t,this,a,e);if(Q(u[0],s)){for(var w,k,C,T=s.y,V=1/0,D=d[0],I=0;I<D.length;I++){var S=Math.abs(D[I].position-T);S<V&&(V=S,w=I)}D[w]&&(k=[],C=Me(h=l.seriesColors).call(h,0),ze(d).call(d,function(e){e=e[w];k.push({label:e.label,datas:[],colors:Ii(C).call(C,0,e.series.length),index:w})}),k=Yn(k),Sf._tipNode.a("labelFont","14px arial, sans-serif"),Zn(c)&&Sf._tipNode.a("labelFont",c.font),Sf.setInfo(k,o),B.show(Sf.getView(),e)),r.labelIndex!==w&&(r.labelIndex=w,t.iv())}}}}},{key:"onLeave",value:function(e,t,o,a,i,n){o=Ye(o,t,this);void 0!==o.hoverIndex?(delete o.hoverIndex,t.iv(),B.hide()):void 0!==o.labelIndex&&(delete o.labelIndex,t.iv(),B.hide())}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){}},{key:"onDrag",value:function(e,t,o,a,i,n){}},{key:"onEndDrag",value:function(e,t,o,a,i,n){}}]),t}(),qc=ht.Default,Lf=qc.setImage,Bf=qc.unionRect,Rf=qc.clone,Pf=(Lf("__navIcon__",{modified:"Fri Sep 03 2021 13:37:02 GMT+0800 (中国标准时间)",width:128,height:128,comps:[{type:"rect",background:"rgb(5,5,5)",borderColor:"rgb(5,5,5)",rect:[20.29635,52.52925,87.40729,62.80703]},{type:"rect",background:"rgb(255,255,255)",borderColor:"#979797",rect:[49.34496,80.3872,29.31008,34.94908]},{type:"shape",background:"rgb(0,0,0)",borderColor:"#979797",closePath:!0,points:[63.65632,5.50116,77.08178,16.83094,113.95268,53.70184,113.95268,53.70184,14.40781,53.70184],segments:[1,4,2]}]}),function(){d(a,ht.Data);var o=g(a);function a(e){var t;return c(this,a),(t=o.call(this)).menuLevel=e,t}return s(a,[{key:"draw",value:function(e,t,o){this.isHoverDraw()&&this.hoverDraw(e,t,o),this.normalDraw(e,t,o)}},{key:"normalDraw",value:function(e,t,o){var a=this.getRect(),i=a.x,n=a.y,a=(a.width,a.height),r=o.font,l=o.fontColor,s=o.iconSize,u=o.iconGap,i={x:i+u+o.itemPadding,y:n,height:a,width:s},o={x:i.x+i.width+u,y:n,height:a,width:He(r,t.name).width};this.drawIcon(e,i),yr(e,t.name,r,l,o.x,o.y,o.width,o.height,"left","middle")}},{key:"hoverDraw",value:function(e,t,o){var a=this.getRect(),o=o.hoverColor;e.save(),e.fillStyle=o,e.fillRect(a.x,a.y,a.width,a.height),e.restore()}},{key:"isHoverDraw",value:function(){var e=this.dm(),t=e._hoverData,o=e.sm().ld();return 1==this.menuLevel?e.sm().co(this)||t===this||this.isRelatedTo(t)||this.isRelatedTo(o):2==this.menuLevel&&(e.sm().co(this)||t===this)}},{key:"isDrawChildren",value:function(){var e=this.dm()._hoverData;return this.hasChildren()&&(e===this||this.isRelatedTo(e))}},{key:"drawChildrenBg",value:function(e,t){for(var o,a=Ge(o=this.getChildren().toArray()).call(o,function(e){return e.getRect()}),i=Rf(a[0]),n=1;n<a.length;n++)i=Bf(i,a[n]);return e.save(),e.shadowColor="rgb(124,145,155)",e.shadowBlur=10,e.shadowOffsetX=0,e.shadowOffsetY=0,e.fillStyle=t,e.beginPath(),e.rect(i.x,i.y,i.width,i.height),e.closePath(),Ue(e).call(e),e.restore(),i}},{key:"setRect",value:function(e){this._rect=e}},{key:"getRect",value:function(){var e=this.menuLevel,t=this._rect;return 2==e?(e=Ge(e=this.dm().getSiblings(this).toArray()).call(e,function(e){return e._rect.width}),e=Math.max.apply(null,e),{x:t.x,y:t.y,width:e,height:t.height}):this._rect}},{key:"drawIcon",value:function(e,t){var o=this.getIcon(),o=wr(o),a=t.x,i=t.y,n=t.width,t=t.height;mr(e,o,"centerUniform",a,i,n,t,this)}},{key:"setMenuInfo",value:function(e){this._menuInfo=e}},{key:"getMenuInfo",value:function(){return this._menuInfo}}]),a}());var Af=ht.Default.containsPoint,qc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,a,i,t,o,n){var r=H(i,a,this,t,e),l=Ye(i,a,this).dm;l&&l.getDatas().each(function(e){var t=e.getRect(),o=e.getMenuInfo();Af(t,r)&&!e.hasChildren()&&(o.onClick&&o.onClick(o.name,a,i),l.sm().ss(e),a.iv())})}},{key:"onMove",value:function(e,o,a,t,i,n){var r=H(a,o,this,t,e),l=Ye(a,o,this).dm,t=l.a("mainMenuRect");l&&(Af(t,r)&&(l._hoverData=null,o.iv()),a.setCursor("default"),l.getDatas().each(function(e){var t=e.getRect();Af(t,r)&&(l._hoverData=e,a.setCursor("pointer"),o.iv())}))}},{key:"onLeave",value:function(e,t,o,a,i,n){a=H(o,t,this,a,e),e=Ye(o,t,this).dm;if(e){var r=e._hoverData;if(r&&1==r.menuLevel&&r.hasChildren()){var r=r.getRect(),l=r.x,s=r.y,r=(r.height,r.width);if(l<a.x&&a.x<a.x+r&&a.y>s)return}e._hoverData=null,o.setCursor("default"),t.iv()}}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){}},{key:"onDrag",value:function(e,t,o,a,i,n){}},{key:"onEndDrag",value:function(e,t,o,a,i,n){}},{key:"onScroll",value:function(e,t,o,a,i,n){}}]),t}();function _f(e){var t;return ae?(t=Rp(p,e))&&t.value:p[e]}function Mf(t){try{return Wp(t)}catch(e){return t}}function Of(e){var t,o=Gp(e,qp," "),a=4;try{return Wp(o)}catch(e){for(;a;)o=Gp(o,(t=a--,Kp[t-1]||(Kp[t-1]=Ep("((?:%[\\da-f]{2}){"+t+"})","gi"))),Mf);return o}}function Ef(e){return $p[e]}function Hf(e){return Gp(Fp(e),Jp,Ef)}function Wf(e){this.entries=[],this.url=null,void 0!==e&&(ee(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Np(e,0)?Zp(e,1):e:ka(e)))}function Ff(){yu(this,ev);var e=Sp(this,new Wf(0<arguments.length?arguments[0]:void 0));ae||(this.length=e.entries.length)}function Nf(e){var t,o,a,i;if("number"==typeof e){for(t=[],o=0;o<4;o++)Cv(t,e%256),e=hv(e/256);return fv(t,".")}if("object"!=typeof e)return e;for(t="",a=function(e){for(var t=null,o=1,a=null,i=0,n=0;n<8;n++)0!==e[n]?(o<i&&(t=a,o=i),a=null,i=0):(null===a&&(a=n),++i);return o<i&&(t=a,o=i),t}(e),o=0;o<8;o++)i&&0===e[o]||(i=i&&!1,a===o?(t+=o?":":"::",i=!0):(t+=pv(e[o],16),o<7&&(t+=":")));return"["+t+"]"}function jf(e,t){var o=av(e,0);return 32<o&&o<127&&!et(t,e)?e:encodeURIComponent(e)}function zf(e,t){return 2==e.length&&gv(Iv,dv(e,0))&&(":"==(e=dv(e,1))||!t&&"|"==e)}function Gf(e){return 1<e.length&&zf(wv(e,0,2))&&(2==e.length||"/"===(e=dv(e,2))||"\\"===e||"?"===e||"#"===e)}function Uf(e,t,o){var a,i,e=ka(e);if(t){if(i=this.parse(e))throw sv(i);this.searchParams=null}else{if(void 0!==o&&(a=new Uf(o,!0)),i=this.parse(e,null,a))throw sv(i);(t=lv(new rv)).bindURL(this),this.searchParams=t}}function Yf(e,t){return{get:function(){return nv(this)[e]()},set:t&&function(e){return nv(this)[t](e)},configurable:!0,enumerable:!0}}var Xf,Zf,qf,Kf,Lf=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onBeginDrag",value:function(e,t,o,a,i,n){_l.apply(this,arguments)}},{key:"onDrag",value:function(e,t,o,a,i,n){Ml.apply(this,arguments)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){Ol.apply(this,arguments)}},{key:"onScroll",value:function(e,t,o,a,i,n){El.apply(this,arguments)}}]),t}(),Jf=se("iterator"),$f=!b(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),o=e.searchParams,a="";return e.pathname="c%20d",o.forEach(function(e,t){o.delete("b"),a+=t+e}),!(e.toJSON&&o.size&&o.sort&&"http://a/c%20d?a=1&c=3"===e.href&&"3"===o.get("c")&&"a=1"===String(new URLSearchParams("?a=1"))&&o[Jf]&&"a"===new URL("https://a@b").username&&"b"===new URLSearchParams(new URLSearchParams("a=b")).get("a")&&"xn--e1aybc"===new URL("http://тест").host&&"#%D0%B1"===new URL("http://a#б").hash&&"a1c3"===a&&"x"===new URL("http://x",void 0).host)}),Qf=function(t,e,o,a){try{return a?e(gt(o)[0],o[1]):e(o)}catch(e){As(t,"throw",e)}},ep=Array,tp=2147483647,op=36,ap=1,ip=26,np=72,rp=128,lp="-",sp=/[^\0-\u007E]/,up=/[.\u3002\uFF0E\uFF61]/g,hp="Overflow: input needs wider integers to process",cp=op-ap,dp=RangeError,gp=a(up.exec),fp=Math.floor,pp=String.fromCharCode,vp=a("".charCodeAt),yp=a([].join),xp=a([].push),mp=a("".replace),bp=a("".split),wp=a("".toLowerCase),kp=function(e){for(var t=[],o=0,a=e.length;o<a;){var i,n=vp(e,o++);55296<=n&&n<=56319&&o<a?56320==(64512&(i=vp(e,o++)))?xp(t,((1023&n)<<10)+(1023&i)+65536):(xp(t,n),o--):xp(t,n)}return t},Cp=function(e){return e+22+75*(e<26)},Tp=function(e,t,o){var a=0;for(e=o?fp(e/700):e>>1,e+=fp(e/t);cp*ip>>1<e;)e=fp(e/cp),a+=op;return fp(a+(1+cp)*e/(e+38))},Vp=function(e,t,o){for(var a in t)o&&o.unsafe&&e[a]?e[a]=t[a]:wo(e,a,t[a],o);return e},se=se("iterator"),Dp="URLSearchParams",Ip=Dp+"Iterator",Sp=de.set,Lp=de.getterFor(Dp),Bp=de.getterFor(Ip),Rp=Object.getOwnPropertyDescriptor,Pp=_f("fetch"),Ap=_f("Request"),_p=_f("Headers"),Mp=Ap&&Ap.prototype,Op=_p&&_p.prototype,Ep=p.RegExp,Hp=p.TypeError,Wp=p.decodeURIComponent,Fp=p.encodeURIComponent,Np=a("".charAt),jp=a([].join),zp=a([].push),Gp=a("".replace),Up=a([].shift),Yp=a([].splice),Xp=a("".split),Zp=a("".slice),qp=/\+/g,Kp=Array(4),Jp=/[!'()~]|%20/g,$p={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Qp=jo(function(e,t){Sp(this,{type:Ip,iterator:Ps(Lp(e).entries),kind:t})},"Iterator",function(){var e=Bp(this),t=e.kind,e=e.iterator.next(),o=e.value;return e.done||(e.value="keys"===t?o.key:"values"===t?o.value:[o.key,o.value]),e},!0),ev=(Wf.prototype={type:Dp,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,o,a,i,n,r,l=Ls(e);if(l)for(o=(t=Ps(e,l)).next;!(a=Te(o,t)).done;){if(i=(a=Ps(gt(a.value))).next,(n=Te(i,a)).done||(r=Te(i,a)).done||!Te(i,a).done)throw Hp("Expected sequence with length 2");zp(this.entries,{key:ka(n.value),value:ka(r.value)})}else for(var s in e)et(e,s)&&zp(this.entries,{key:s,value:ka(e[s])})},parseQuery:function(e){if(e)for(var t,o=Xp(e,"&"),a=0;a<o.length;)(t=o[a++]).length&&(t=Xp(t,"="),zp(this.entries,{key:Of(Up(t)),value:Of(jp(t,"="))}))},serialize:function(){for(var e,t=this.entries,o=[],a=0;a<t.length;)e=t[a++],zp(o,Hf(e.key)+"="+Hf(e.value));return jp(o,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},Ff.prototype),se=(Vp(ev,{append:function(e,t){Oa(arguments.length,2);var o=Lp(this);zp(o.entries,{key:ka(e),value:ka(t)}),ae||this.length++,o.updateURL()},delete:function(e){Oa(arguments.length,1);for(var t=Lp(this),o=t.entries,a=ka(e),i=0;i<o.length;)o[i].key===a?Yp(o,i,1):i++;ae||(this.length=o.length),t.updateURL()},get:function(e){Oa(arguments.length,1);for(var t=Lp(this).entries,o=ka(e),a=0;a<t.length;a++)if(t[a].key===o)return t[a].value;return null},getAll:function(e){Oa(arguments.length,1);for(var t=Lp(this).entries,o=ka(e),a=[],i=0;i<t.length;i++)t[i].key===o&&zp(a,t[i].value);return a},has:function(e){Oa(arguments.length,1);for(var t=Lp(this).entries,o=ka(e),a=0;a<t.length;)if(t[a++].key===o)return!0;return!1},set:function(e,t){Oa(arguments.length,1);for(var o,a=Lp(this),i=a.entries,n=!1,r=ka(e),l=ka(t),s=0;s<i.length;s++)(o=i[s]).key===r&&(n?Yp(i,s--,1):(n=!0,o.value=l));n||zp(i,{key:r,value:l}),ae||(this.length=i.length),a.updateURL()},sort:function(){var e=Lp(this);xd(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,o=Lp(this).entries,a=Ut(e,1<arguments.length?arguments[1]:void 0),i=0;i<o.length;)a((t=o[i++]).value,t.key,this)},keys:function(){return new Qp(this,"keys")},values:function(){return new Qp(this,"values")},entries:function(){return new Qp(this,"entries")}},{enumerable:!0}),wo(ev,se,ev.entries,{name:"entries"}),wo(ev,"toString",function(){return Lp(this).serialize()},{enumerable:!0}),ae&&Gs(ev,"size",{get:function(){return Lp(this).entries.length},configurable:!0,enumerable:!0}),Mo(Ff,Dp),v({global:!0,constructor:!0,forced:!$f},{URLSearchParams:Ff}),!$f&&K(_p)&&(Xf=a(Op.has),Zf=a(Op.set),qf=function(e){if(ee(e)){var t,o=e.body;if(Ro(o)===Dp)return t=e.headers?new _p(e.headers):new _p,Xf(t,"content-type")||Zf(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),mo(e,{body:kt(0,ka(o)),headers:kt(0,t)})}return e},K(Pp)&&v({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Pp(e,1<arguments.length?qf(arguments[1]):{})}}),K(Ap))&&((Mp.constructor=Vp=function(e){return yu(this,Mp),new Ap(e,1<arguments.length?qf(arguments[1]):{})}).prototype=Mp,v({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Vp})),{URLSearchParams:Ff,getState:Lp}),tv=function(e){var t,o,a,i,n,r,l=qe(e),e=ca(this),s=arguments.length,u=1<s?arguments[1]:void 0,h=void 0!==u,s=(h&&(u=Ut(u,2<s?arguments[2]:void 0)),Ls(l)),c=0;if(!s||this===ep&&Rs(s))for(t=oo(l),o=e?new this(t):ep(t);c<t;c++)r=h?u(l[c],c):l[c],Na(o,c,r);else for(n=(i=Ps(l,s)).next,o=e?new this:[];!(a=Te(n,i)).done;c++)r=h?Qf(i,u,[a.value,c],!0):a.value,Na(o,c,r);return o.length=c,o},ov=function(e){for(var t,o=[],a=bp(mp(wp(e),up,"."),"."),i=0;i<a.length;i++)t=a[i],xp(o,gp(sp,t)?"xn--"+function(e){var t,o=[],a=(e=kp(e)).length,i=rp,n=0,r=np;for(h=0;h<e.length;h++)(t=e[h])<128&&xp(o,pp(t));var l=o.length,s=l;for(l&&xp(o,lp);s<a;){for(var u=tp,h=0;h<e.length;h++)i<=(t=e[h])&&t<u&&(u=t);var c=s+1;if(u-i>fp((tp-n)/c))throw dp(hp);for(n+=(u-i)*c,i=u,h=0;h<e.length;h++){if((t=e[h])<i&&++n>tp)throw dp(hp);if(t==i){for(var d=n,g=op;;){var f=g<=r?ap:r+ip<=g?ip:g-r;if(d<f)break;var p=d-f,v=op-f;xp(o,pp(Cp(f+p%v))),d=fp(p/v),g+=op}xp(o,pp(Cp(d))),r=Tp(n,c,s==l),n=0,s++}}n++,i++}return yp(o,"")}(t):t);return yp(o,".")},av=ru.codeAt,iv=de.set,nv=de.getterFor("URL"),rv=se.URLSearchParams,lv=se.getState,Op=p.URL,sv=p.TypeError,uv=p.parseInt,hv=Math.floor,cv=Math.pow,dv=a("".charAt),gv=a(/./.exec),fv=a([].join),pv=a(1..toString),vv=a([].pop),yv=a([].push),xv=a("".replace),mv=a([].shift),bv=a("".split),wv=a("".slice),kv=a("".toLowerCase),Cv=a([].unshift),Tv="Invalid scheme",Vv="Invalid host",Dv="Invalid port",Iv=/[a-z]/i,Sv=/[\d+-.a-z]/i,Lv=/\d/,Bv=/^0x/i,Rv=/^[0-7]+$/,Pv=/^\d+$/,Av=/^[\da-f]+$/i,_v=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Mv=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ov=/^[\u0000-\u0020]+/,Ev=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Hv=/[\t\n\r]/g,Wv={},Fv=e({},Wv,{" ":1,'"':1,"<":1,">":1,"`":1}),Nv=e({},Fv,{"#":1,"?":1,"{":1,"}":1}),jv=e({},Nv,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),zv={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Gv={},Uv={},Yv={},Xv={},Zv={},qv={},Kv={},Jv={},$v={},Qv={},ey={},ty={},oy={},ay={},iy={},ny={},ry={},ly={},sy={},uy={},hy={},cy=(Uf.prototype={type:"URL",parse:function(e,t,o){var a,i,n,r,l=this,s=t||Gv,u=0,h="",c=!1,d=!1,g=!1;for(e=ka(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=xv(e,Ov,""),e=xv(e,Ev,"$1")),e=xv(e,Hv,""),a=tv(e);u<=a.length;){switch(i=a[u],s){case Gv:if(!i||!gv(Iv,i)){if(t)return Tv;s=Yv;continue}h+=kv(i),s=Uv;break;case Uv:if(i&&(gv(Sv,i)||"+"==i||"-"==i||"."==i))h+=kv(i);else{if(":"!=i){if(t)return Tv;h="",s=Yv,u=0;continue}if(t&&(l.isSpecial()!=et(zv,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,t)return void(l.isSpecial()&&zv[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?s=ay:l.isSpecial()&&o&&o.scheme==l.scheme?s=Xv:l.isSpecial()?s=Jv:"/"==a[u+1]?(s=Zv,u++):(l.cannotBeABaseURL=!0,yv(l.path,""),s=sy)}break;case Yv:if(!o||o.cannotBeABaseURL&&"#"!=i)return Tv;if(o.cannotBeABaseURL&&"#"==i){l.scheme=o.scheme,l.path=gd(o.path),l.query=o.query,l.fragment="",l.cannotBeABaseURL=!0,s=hy;break}s="file"==o.scheme?ay:qv;continue;case Xv:if("/"!=i||"/"!=a[u+1]){s=qv;continue}s=$v,u++;break;case Zv:if("/"==i){s=Qv;break}s=ly;continue;case qv:if(l.scheme=o.scheme,i==Kf)l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,l.path=gd(o.path),l.query=o.query;else if("/"==i||"\\"==i&&l.isSpecial())s=Kv;else if("?"==i)l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,l.path=gd(o.path),l.query="",s=uy;else{if("#"!=i){l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,l.path=gd(o.path),l.path.length--,s=ly;continue}l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,l.path=gd(o.path),l.query=o.query,l.fragment="",s=hy}break;case Kv:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,s=ly;continue}s=Qv}else s=$v;break;case Jv:if(s=$v,"/"!=i||"/"!=dv(h,u+1))continue;u++;break;case $v:if("/"==i||"\\"==i)break;s=Qv;continue;case Qv:if("@"==i){c&&(h="%40"+h);for(var c=!0,f=tv(h),p=0;p<f.length;p++){var v=f[p];":"!=v||g?(v=jf(v,jv),g?l.password+=v:l.username+=v):g=!0}h=""}else if(i==Kf||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(c&&""==h)return"Invalid authority";u-=tv(h).length+1,h="",s=ey}else h+=i;break;case ey:case ty:if(t&&"file"==l.scheme){s=ny;continue}if(":"!=i||d){if(i==Kf||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(l.isSpecial()&&""==h)return Vv;if(t&&""==h&&(l.includesCredentials()||null!==l.port))return;if(n=l.parseHost(h))return n;if(h="",s=ry,t)return;continue}"["==i?d=!0:"]"==i&&(d=!1),h+=i}else{if(""==h)return Vv;if(n=l.parseHost(h))return n;if(h="",s=oy,t==ty)return}break;case oy:if(!gv(Lv,i)){if(i==Kf||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()||t){if(""!=h){var y=uv(h,10);if(65535<y)return Dv;l.port=l.isSpecial()&&y===zv[l.scheme]?null:y,h=""}if(t)return;s=ry;continue}return Dv}h+=i;break;case ay:if(l.scheme="file","/"==i||"\\"==i)s=iy;else{if(!o||"file"!=o.scheme){s=ly;continue}if(i==Kf)l.host=o.host,l.path=gd(o.path),l.query=o.query;else if("?"==i)l.host=o.host,l.path=gd(o.path),l.query="",s=uy;else{if("#"!=i){Gf(fv(gd(a,u),""))||(l.host=o.host,l.path=gd(o.path),l.shortenPath()),s=ly;continue}l.host=o.host,l.path=gd(o.path),l.query=o.query,l.fragment="",s=hy}}break;case iy:if("/"==i||"\\"==i){s=ny;break}o&&"file"==o.scheme&&!Gf(fv(gd(a,u),""))&&(zf(o.path[0],!0)?yv(l.path,o.path[0]):l.host=o.host),s=ly;continue;case ny:if(i==Kf||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&zf(h))s=ly;else{if(""==h){if(l.host="",t)return}else{if(n=l.parseHost(h))return n;if("localhost"==l.host&&(l.host=""),t)return;h=""}s=ry}continue}h+=i;break;case ry:if(l.isSpecial()){if(s=ly,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=Kf&&(s=ly,"/"!=i))continue}else l.fragment="",s=hy;else l.query="",s=uy;break;case ly:if(i==Kf||"/"==i||"\\"==i&&l.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(y=kv(y=h))||"%2e."===y||".%2e"===y||"%2e%2e"===y?(l.shortenPath(),"/"==i||"\\"==i&&l.isSpecial()||yv(l.path,"")):"."===(r=h)||"%2e"===kv(r)?"/"==i||"\\"==i&&l.isSpecial()||yv(l.path,""):("file"==l.scheme&&!l.path.length&&zf(h)&&(l.host&&(l.host=""),h=dv(h,0)+":"),yv(l.path,h)),h="","file"==l.scheme&&(i==Kf||"?"==i||"#"==i))for(;1<l.path.length&&""===l.path[0];)mv(l.path);"?"==i?(l.query="",s=uy):"#"==i&&(l.fragment="",s=hy)}else h+=jf(i,Nv);break;case sy:"?"==i?(l.query="",s=uy):"#"==i?(l.fragment="",s=hy):i!=Kf&&(l.path[0]+=jf(i,Wv));break;case uy:t||"#"!=i?i!=Kf&&("'"==i&&l.isSpecial()?l.query+="%27":l.query+="#"==i?"%23":jf(i,Wv)):(l.fragment="",s=hy);break;case hy:i!=Kf&&(l.fragment+=jf(i,Fv))}u++}},parseHost:function(e){var t,o,a;if("["==dv(e,0))return"]"==dv(e,e.length-1)&&(t=function(e){function t(){return dv(e,d)}var o,a,i,n,r,l,s,u=[0,0,0,0,0,0,0,0],h=0,c=null,d=0;if(":"==t()){if(":"!=dv(e,1))return;d+=2,c=++h}for(;t();){if(8==h)return;if(":"==t()){if(null!==c)return;d++,c=++h}else{for(o=a=0;a<4&&gv(Av,t());)o=16*o+uv(t(),16),d++,a++;if("."==t()){if(0==a)return;if(d-=a,6<h)return;for(i=0;t();){if(n=null,0<i){if(!("."==t()&&i<4))return;d++}if(!gv(Lv,t()))return;for(;gv(Lv,t());){if(r=uv(t(),10),null===n)n=r;else{if(0==n)return;n=10*n+r}if(255<n)return;d++}u[h]=256*u[h]+n,2!=++i&&4!=i||h++}if(4!=i)return;break}if(":"==t()){if(d++,!t())return}else if(t())return;u[h++]=o}}if(null!==c)for(l=h-c,h=7;0!=h&&0<l;)s=u[h],u[h--]=u[c+l-1],u[c+--l]=s;else if(8!=h)return;return u}(wv(e,1,-1)))?void(this.host=t):Vv;if(this.isSpecial())return e=ov(e),gv(_v,e)||null===(t=function(e){var t,o,a,i,n,r,l,s=bv(e,".");if(s.length&&""==s[s.length-1]&&s.length--,4<(t=s.length))return e;for(o=[],a=0;a<t;a++){if(""==(i=s[a]))return e;if(n=10,1<i.length&&"0"==dv(i,0)&&(n=gv(Bv,i)?16:8,i=wv(i,8==n?1:2)),""===i)r=0;else{if(!gv(10==n?Pv:8==n?Rv:Av,i))return e;r=uv(i,n)}yv(o,r)}for(a=0;a<t;a++)if(r=o[a],a==t-1){if(r>=cv(256,5-t))return null}else if(255<r)return null;for(l=vv(o),a=0;a<o.length;a++)l+=o[a]*cv(256,3-a);return l}(e))?Vv:void(this.host=t);if(gv(Mv,e))return Vv;for(t="",o=tv(e),a=0;a<o.length;a++)t+=jf(o[a],Wv);this.host=t},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return et(zv,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&zf(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,o=e.username,a=e.password,i=e.host,n=e.port,r=e.path,l=e.query,s=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=o+(a?":"+a:"")+"@"),u+=Nf(i),null!==n&&(u+=":"+n)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?r[0]:r.length?"/"+fv(r,"/"):"",null!==l&&(u+="?"+l),null!==s&&(u+="#"+s),u},setHref:function(e){e=this.parse(e);if(e)throw sv(e);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new cy(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Nf(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(ka(e)+":",Gv)},getUsername:function(){return this.username},setUsername:function(e){var t=tv(ka(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var o=0;o<t.length;o++)this.username+=jf(t[o],jv)}},getPassword:function(){return this.password},setPassword:function(e){var t=tv(ka(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var o=0;o<t.length;o++)this.password+=jf(t[o],jv)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Nf(e):Nf(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ey)},getHostname:function(){var e=this.host;return null===e?"":Nf(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ty)},getPort:function(){var e=this.port;return null===e?"":ka(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=ka(e))?this.port=null:this.parse(e,oy))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+fv(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,ry))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=ka(e))?this.query=null:("?"==dv(e,0)&&(e=wv(e,1)),this.query="",this.parse(e,uy)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""==(e=ka(e))?this.fragment=null:("#"==dv(e,0)&&(e=wv(e,1)),this.fragment="",this.parse(e,hy))},update:function(){this.query=this.searchParams.serialize()||null}},function(e){var t=yu(this,dy),o=1<Oa(arguments.length,1)?arguments[1]:void 0,e=iv(t,new Uf(e,!1,o));ae||(t.href=e.serialize(),t.origin=e.getOrigin(),t.protocol=e.getProtocol(),t.username=e.getUsername(),t.password=e.getPassword(),t.host=e.getHost(),t.hostname=e.getHostname(),t.port=e.getPort(),t.pathname=e.getPathname(),t.search=e.getSearch(),t.searchParams=e.getSearchParams(),t.hash=e.getHash())}),dy=cy.prototype,gy=(ae&&(Gs(dy,"href",Yf("serialize","setHref")),Gs(dy,"origin",Yf("getOrigin")),Gs(dy,"protocol",Yf("getProtocol","setProtocol")),Gs(dy,"username",Yf("getUsername","setUsername")),Gs(dy,"password",Yf("getPassword","setPassword")),Gs(dy,"host",Yf("getHost","setHost")),Gs(dy,"hostname",Yf("getHostname","setHostname")),Gs(dy,"port",Yf("getPort","setPort")),Gs(dy,"pathname",Yf("getPathname","setPathname")),Gs(dy,"search",Yf("getSearch","setSearch")),Gs(dy,"searchParams",Yf("getSearchParams")),Gs(dy,"hash",Yf("getHash","setHash"))),wo(dy,"toJSON",function(){return nv(this).serialize()},{enumerable:!0}),wo(dy,"toString",function(){return nv(this).serialize()},{enumerable:!0}),Op&&(Vp=Op.createObjectURL,ru=Op.revokeObjectURL,Vp&&wo(cy,"createObjectURL",Ut(Vp,Op)),ru)&&wo(cy,"revokeObjectURL",Ut(ru,Op)),Mo(cy,"URL"),v({global:!0,constructor:!0,forced:!$f,sham:!ae},{URL:cy}),pe("URL")),de=$f&&b(function(){gy.canParse()});v({target:"URL",stat:!0,forced:!de},{canParse:function(e){var t=Oa(arguments.length,1),e=ka(e),t=t<2||void 0===arguments[1]?void 0:ka(arguments[1]);try{return!!new gy(e,t)}catch(e){return!1}}});var fy=ue.URL;function py(e,t){function r(e,t,o,a,i){for(var n=Math.max(0,Math.min(t,e.width)),r=Math.max(0,Math.min(o,e.height)),l=Math.max(0,Math.min(a,e.width-n)),s=Math.max(0,Math.min(i,e.height-r)),u=new Uint8ClampedArray(l*s*4),h=0;h<s;h++)for(var c=0;c<l;c++)for(var d=4*((r+h)*e.width+(n+c)),g=4*(h*l+c),f=0;f<4;f++)u[g+f]=e.data[d+f];return new ImageData(u,l,s)}function a(e){this.data=e,this.len=e.length,this.pos=0}function l(e){for(var t=[],o=7;0<=o;o--)t.push(!!(e&1<<o));return t}function s(e){return e.reduce(function(e,t){return 2*e+t},0)}function i(e,a){var i=0;var t=[],o=1<<e,n=1+o,r=e+1,l=[];for(var s,u=null;;)if(s=u,(u=function(e){for(var t=0,o=0;o<e;o++)a.charCodeAt(i>>3)&1<<(7&i)&&(t|=1<<o),i++;return t}(r))===o){h=void 0,l=[],r=e+1;for(var h=0;h<o;h++)l[h]=[h];l[o]=[],l[n]=null}else{if(u===n)break;if(u<l.length)s!==o&&l.push(l[s].concat(l[u][0]));else{if(u!==l.length)throw new Error("Invalid LZW code.");l.push(l[s].concat(l[s][0]))}t.push.apply(t,l[u]),l.length===1<<r&&r<12&&r++}return t}function o(){this.frameList=[],this.gifInfo={},this.stream=null,this.lastDisposaMethod=null,this.currentFrameIndex=-1,this.transparency=null,this.loaded=!1,this.delayTimes=[],this.preImageData=null}a.prototype.readByte=function(){if(!(this.pos>=this.data.length))return this.data instanceof Uint8Array?this.data[this.pos++]:255&this.data.charCodeAt(this.pos++)},a.prototype.readBytes=function(e){for(var t=[],o=0;o<e;o++)t.push(this.readByte());return t},a.prototype.read=function(e){for(var t="",o=0;o<e;o++)t+=String.fromCharCode(this.readByte());return t},a.prototype.readUnsigned=function(){var e=this.readBytes(2);return(e[1]<<8)+e[0]},o.prototype.load=function(e){var o=this,t=new XMLHttpRequest;t.open("GET",e,!0),"overrideMimeType"in t?t.overrideMimeType("text/plain; charset=x-user-defined"):"responseType"in t?t.responseType="arraybuffer":t.setRequestHeader("Accept-Charset","x-user-defined"),t.onload=function(e){"response"in this||(this.response=new VBArray(this.responseText).toArray().map(String.fromCharCode).join(""));var t=this.response;0<t.toString().indexOf("ArrayBuffer")&&(t=new Uint8Array(t)),404===e.target.status?postMessage({type:"unfound"}):(o.stream=new a(t),o.parseHeader(),o.parseBlock())},t.onerror=function(e){postMessage({type:"unfound"})},t.send()},o.prototype.isLoaded=function(){return this.loaded},o.prototype.getFrameLength=function(){return this.frameList.length},o.prototype.parseHeader=function(){var e=this.stream,t=this.gifInfo;if(this.currentFrameIndex=-1,t.sig=e.read(3),t.ver=e.read(3),"GIF"!==t.sig)throw new Error("Not a GIF file.");t.width=e.readUnsigned(),t.height=e.readUnsigned();var o=l(e.readByte());t.gctFlag=o.shift(),t.colorRes=s(o.splice(0,3)),t.sorted=o.shift(),t.gctSize=s(o.splice(0,3)),t.bgColor=e.readByte(),t.pixelAspectRatio=e.readByte(),t.gctFlag&&(t.gct=this.parseCT(1<<t.gctSize+1)),postMessage({type:"header",data:t})},o.prototype.parseBlock=function(){var e=this.stream,t={};switch(t.sentinel=e.readByte(),String.fromCharCode(t.sentinel)){case"!":t.type="ext",this.parseExt(t);break;case",":t.type="img",this.parseImg(t);break;case";":t.type="eof",this.loaded=!0,postMessage({type:"loaded"});break;default:throw new Error("Unknown block: 0x"+t.sentinel.toString(16))}"eof"!==t.type&&this.parseBlock()},o.prototype.parseExt=function(e){function t(e){var t;n.readByte(),e.identifier=n.read(8),e.authCode=n.read(3),"NETSCAPE"===e.identifier?(t=e,n.readByte(),t.unknown=n.readByte(),t.iterations=n.readUnsigned(),t.terminator=n.readByte()):e.appData=i.readSubBlocks()}var o,a,i=this,n=this.stream;switch(e.label=n.readByte(),e.label){case 249:e.extType="gce",o=e,n.readByte(),a=l(n.readByte()),o.reserved=a.splice(0,3),o.disposalMethod=s(a.splice(0,3)),o.userInput=a.shift(),o.transparencyGiven=a.shift(),o.delayTime=n.readUnsigned(),o.transparencyIndex=n.readByte(),o.terminator=n.readByte(),i.delayTimes.push(o.delayTime),i.transparency=o.transparencyGiven?o.transparencyIndex:null,postMessage({type:"global",data:{delayTimes:i.delayTimes,transparency:i.transparency,lastDisposaMethod:i.lastDisposaMethod}}),i.currentDisposaMethod=o.disposalMethod;break;case 254:e.extType="com",e.comment=i.readSubBlocks();break;case 1:e.extType="pte",a=e,n.readByte(),a.ptHeader=n.readBytes(12),a.ptData=i.readSubBlocks();break;case 255:e.extType="app",t(e);break;default:e.extType="unknown",e.data=i.readSubBlocks()}},o.prototype.parseImg=function(e){function t(e,t){for(var o=new Array(e.length),a=e.length/t,i=[0,4,2,1],n=[8,8,4,2],r=0,l=0;l<4;l++)for(var s=i[l];s<a;s+=n[l]){var u=s,h=r;h=e.slice(h*t,(h+1)*t),o.splice.apply(o,[u*t,t].concat(h)),r++}return o}var o=this.stream,a=(e.leftPos=o.readUnsigned(),e.topPos=o.readUnsigned(),e.width=o.readUnsigned(),e.height=o.readUnsigned(),l(o.readByte())),a=(e.lctFlag=a.shift(),e.interlaced=a.shift(),e.sorted=a.shift(),e.reserved=a.splice(0,2),e.lctSize=s(a.splice(0,3)),e.lctFlag&&(e.lct=this.parseCT(1<<e.lctSize+1)),e.lzwMinCodeSize=o.readByte(),this.readSubBlocks());e.pixels=i(e.lzwMinCodeSize,a),e.interlaced&&(e.pixels=t(e.pixels,e.width)),this.doImg(e)},o.prototype.parseCT=function(e){for(var t=this.stream,o=[],a=0;a<e;a++)o.push(t.readBytes(3));return o},o.prototype.doImg=function(e){var o,t=this.gifInfo,a=this.transparency,i=this.lastDisposaMethod,n=e.lctFlag?e.lct:t.gct;this.currentFrameIndex++,o=0===this.currentFrameIndex||2===i?new ImageData(e.width,e.height):r(this.preImageData,e.leftPos,e.topPos,e.width,e.height),e.pixels.forEach(function(e,t){e!==a&&(o.data[4*t+0]=n[e][0],o.data[4*t+1]=n[e][1],o.data[4*t+2]=n[e][2],o.data[4*t+3]=255)}),this.preImageData&&2!==i?this.preImageData=function(e,t,o,a){for(var i=t.width,n=t.height,r=0;r<n;r++)for(var l=0;l<i;l++){var s=4*(r*i+l),u=4*((a+r)*e.width+(o+l));if(a+r<e.height&&o+l<e.width)for(var h=0;h<4;h++)e.data[u+h]=t.data[s+h]}return e}(this.preImageData,o,e.leftPos,e.topPos):this.preImageData=o,this.lastDisposaMethod=this.currentDisposaMethod,postMessage({type:"img",data:{img:e,imageData:r(this.preImageData,0,0,this.preImageData.width,this.preImageData.height)}})},o.prototype.readSubBlocks=function(){for(var e,t=this.stream,o="";e=t.readByte(),o+=t.read(e),0!==e;);return o},onmessage=function(e){e=e.data;(new o).load(e)}}var vy=function(){function e(){c(this,e)}return s(e,[{key:"create",value:function(){var e=fy.createObjectURL(new Blob(["(".concat(py.toString(),")()")]));(this.worker=new Worker(e,{})).onmessage=Hr(e=this.onWorkerMsg).call(e,this)}},{key:"getWorker",value:function(){return this.worker}},{key:"destroy",value:function(){this.worker&&this.worker.terminate()}},{key:"sendMsgToWorker",value:function(e){this.worker.postMessage(e)}},{key:"onWorkerMsg",value:function(e){}}]),e}(),yy=function(){function t(e){c(this,t),this.data=e,this.len=e.length,this.pos=0}return s(t,[{key:"readByte",value:function(){if(!(this.pos>=this.data.length))return this.data instanceof Uint8Array?this.data[this.pos++]:255&this.data.charCodeAt(this.pos++)}},{key:"readBytes",value:function(e){for(var t=[],o=0;o<e;o++)t.push(this.readByte());return t}},{key:"read",value:function(e){for(var t="",o=0;o<e;o++)t+=String.fromCharCode(this.readByte());return t}},{key:"readUnsigned",value:function(){var e=this.readBytes(2);return(e[1]<<8)+e[0]}}]),t}();function xy(e){for(var t=[],o=7;0<=o;o--)t.push(!!(e&1<<o));return t}function my(e){return zi(e).call(e,function(e,t){return 2*e+t},0)}function by(e,a){var i=0;var t=[],o=1<<e,n=1+o,r=e+1,l=[];for(var s,u,h=null;;)if(s=h,(h=function(e){for(var t=0,o=0;o<e;o++)a.charCodeAt(i>>3)&1<<(7&i)&&(t|=1<<o),i++;return t}(r))===o){c=void 0,l=[],r=e+1;for(var c=0;c<o;c++)l[c]=[c];l[o]=[],l[n]=null}else{if(h===n)break;if(h<l.length)s!==o&&l.push(Ee(u=l[s]).call(u,l[h][0]));else{if(h!==l.length)throw new Error("Invalid LZW code.");l.push(Ee(u=l[s]).call(u,l[s][0]))}t.push.apply(t,l[h]),l.length===1<<r&&r<12&&r++}return t}function wy(e){return Ty[e]}function ky(e,t,o){2===arguments.length&&(ht.Default.isFunction(t)?Vy(e,ht.Default.convertURL(e),t):/\.gif$/i.test(t)?Vy(e,ht.Default.convertURL(t)):Dy(e,t)),3===arguments.length&&Vy(e,t,o)}var Cy=function(){function e(){c(this,e),this.frameList=[],this.tempCanvas=document.createElement("canvas"),this.tempCanvasCtx=null,this.gifInfo={},this.stream=null,this.currentDisposaMethod=null,this.lastDisposaMethod=null,this.currentFrameIndex=-1,this.transparency=null,this.loaded=!1,this.delayTimes=[]}return s(e,[{key:"load",value:function(a){var o,e,i=this;"undefined"!=typeof Worker?((o=new vy).onWorkerMsg=function(e){var e=e.data,t=e.type,e=e.data;"header"===t?i.parseHeaderByWorker(e):"img"===t?(i.doImgByWorker(e.img,e.imageData),i.pushFrame()):"loaded"===t?(i.onLoaded&&i.onLoaded(a,i),r.handleGifLoaded(a,i.frameList),o.destroy()):"unfound"===t?r.handleUnfoundGif(a):"global"===t&&(i.delayTimes=e.delayTimes,i.transparency=e.transparency,i.lastDisposaMethod=e.lastDisposaMethod)},o.create(),o.sendMsgToWorker(new fy(a,location.href).toString())):((e=new XMLHttpRequest).open("GET",a,!0),"overrideMimeType"in e?e.overrideMimeType("text/plain; charset=x-user-defined"):"responseType"in e?e.responseType="arraybuffer":e.setRequestHeader("Accept-Charset","x-user-defined"),e.onload=function(e){"response"in this||(this.response=Ge(o=new VBArray(this.responseText).toArray()).call(o,String.fromCharCode).join(""));var t,o=this.response;0<Oe(t=o.toString()).call(t,"ArrayBuffer")&&(o=new Uint8Array(o)),404===e.target.status?r.handleUnfoundGif(a):(i.stream=new yy(o),i.parseHeader(),i.parseBlock(),i.onLoaded&&i.onLoaded(a,i),r.handleGifLoaded(a,i.frameList))},e.onerror=function(e){r.handleUnfoundGif(a)},e.send())}},{key:"isLoaded",value:function(){return this.loaded}},{key:"getFrameLength",value:function(){return this.frameList.length}},{key:"parseHeaderByWorker",value:function(e){this.gifInfo=e;var t=this.tempCanvas;t.width=e.width,t.height=e.height,t.style.width=e.width+"px",t.style.height=e.height+"px",t.getContext("2d").setTransform(1,0,0,1,0,0)}},{key:"parseHeader",value:function(){var e=this.stream,t=this.gifInfo,o=this.tempCanvas;if(t.sig=e.read(3),t.ver=e.read(3),"GIF"!==t.sig)throw new Error("Not a GIF file.");t.width=e.readUnsigned(),t.height=e.readUnsigned();var a=xy(e.readByte());t.gctFlag=a.shift(),t.colorRes=my(Ii(a).call(a,0,3)),t.sorted=a.shift(),t.gctSize=my(Ii(a).call(a,0,3)),t.bgColor=e.readByte(),t.pixelAspectRatio=e.readByte(),t.gctFlag&&(t.gct=this.parseCT(1<<t.gctSize+1)),o.width=t.width,o.height=t.height,o.style.width=t.width+"px",o.style.height=t.height+"px",o.getContext("2d").setTransform(1,0,0,1,0,0)}},{key:"parseBlock",value:function(){var e=this.stream,t={};switch(t.sentinel=e.readByte(),String.fromCharCode(t.sentinel)){case"!":t.type="ext",this.parseExt(t);break;case",":t.type="img",this.parseImg(t),this.pushFrame();break;case";":t.type="eof",this.loaded=!0;break;default:throw new Error("Unknown block: 0x"+t.sentinel.toString(16))}"eof"!==t.type&&this.parseBlock()}},{key:"parseExt",value:function(e){function t(e){var t;n.readByte(),e.identifier=n.read(8),e.authCode=n.read(3),"NETSCAPE"===e.identifier?(t=e,n.readByte(),t.unknown=n.readByte(),t.iterations=n.readUnsigned(),t.terminator=n.readByte()):e.appData=i.readSubBlocks()}var o,a,i=this,n=this.stream;switch(e.label=n.readByte(),e.label){case 249:e.extType="gce",o=e,n.readByte(),a=xy(n.readByte()),o.reserved=Ii(a).call(a,0,3),o.disposalMethod=my(Ii(a).call(a,0,3)),i.currentDisposaMethod=o.disposalMethod,o.userInput=a.shift(),o.transparencyGiven=a.shift(),o.delayTime=n.readUnsigned(),o.transparencyIndex=n.readByte(),o.terminator=n.readByte(),i.delayTimes.push(o.delayTime),i.transparency=o.transparencyGiven?o.transparencyIndex:null;break;case 254:e.extType="com",e.comment=i.readSubBlocks();break;case 1:e.extType="pte",a=e,n.readByte(),a.ptHeader=n.readBytes(12),a.ptData=i.readSubBlocks();break;case 255:e.extType="app",t(e);break;default:e.extType="unknown",e.data=i.readSubBlocks()}}},{key:"parseImg",value:function(e){function t(e,t){for(var o=new Array(e.length),a=e.length/t,i=[0,4,2,1],n=[8,8,4,2],r=0,l=0;l<4;l++)for(var s=i[l];s<a;s+=n[l]){var u=s,h=r;h=Me(e).call(e,h*t,(h+1)*t),Ii(o).apply(o,Ee(u=[u*t,t]).call(u,h)),r++}return o}var o=this.stream,a=(e.leftPos=o.readUnsigned(),e.topPos=o.readUnsigned(),e.width=o.readUnsigned(),e.height=o.readUnsigned(),xy(o.readByte())),a=(e.lctFlag=a.shift(),e.interlaced=a.shift(),e.sorted=a.shift(),e.reserved=Ii(a).call(a,0,2),e.lctSize=my(Ii(a).call(a,0,3)),e.lctFlag&&(e.lct=this.parseCT(1<<e.lctSize+1)),e.lzwMinCodeSize=o.readByte(),this.readSubBlocks());e.pixels=by(e.lzwMinCodeSize,a),e.interlaced&&(e.pixels=t(e.pixels,e.width)),this.doImg(e)}},{key:"parseCT",value:function(e){for(var t=this.stream,o=[],a=0;a<e;a++)o.push(t.readBytes(3));return o}},{key:"doImgByWorker",value:function(e,t){this.tempCanvasCtx||(this.tempCanvasCtx=this.tempCanvas.getContext("2d"));var o=this.frameList,a=this.tempCanvas,i=this.tempCanvasCtx,n=this.gifInfo,r=this.lastDisposaMethod,l=(this.transparency,o.length);e.lctFlag?e.lct:n.gct,0<l&&(3===r?null!==this.currentFrameIndex&&-1<this.currentFrameIndex?i.putImageData(o[this.currentFrameIndex].data,0,0):i.clearRect(0,0,a.width,a.height):this.currentFrameIndex=l-1,2===r)&&i.clearRect(0,0,a.width,a.height),i.putImageData(t,0,0)}},{key:"doImg",value:function(e){this.tempCanvasCtx||(this.tempCanvasCtx=this.tempCanvas.getContext("2d"));var t=this.frameList,o=this.tempCanvas,a=this.tempCanvasCtx,i=this.gifInfo,n=this.lastDisposaMethod,r=this.transparency,l=t.length,s=e.lctFlag?e.lct:i.gct,u=(0<l&&(3===n?null!==this.currentFrameIndex&&-1<this.currentFrameIndex?a.putImageData(t[this.currentFrameIndex].data,0,0):a.clearRect(0,0,o.width,o.height):this.currentFrameIndex=l-1,2===n)&&a.clearRect(0,0,o.width,o.height),a.getImageData(e.leftPos,e.topPos,e.width,e.height));ze(i=e.pixels).call(i,function(e,t){e!==r&&(u.data[4*t+0]=s[e][0],u.data[4*t+1]=s[e][1],u.data[4*t+2]=s[e][2],u.data[4*t+3]=255)}),a.putImageData(u,e.leftPos,e.topPos),this.lastDisposaMethod=this.currentDisposaMethod}},{key:"pushFrame",value:function(){var e=this.tempCanvasCtx,t=this.frameList,o=this.gifInfo;e&&(e=e.getImageData(0,0,o.width,o.height),(o=document.createElement("canvas")).width=e.width,o.height=e.height,o.getContext("2d").putImageData(e,0,0),t.push({delay:this.delayTimes[this.delayTimes.length-1],data:e,image:o}))}},{key:"readSubBlocks",value:function(){for(var e,t=this.stream,o="";e=t.readByte(),o+=t.read(e),0!==e;);return o}}]),e}(),Ty={},Vy=function(t,e,o){var a=new Cy;(Ty[t]=a).load(e),a.onLoaded=function(e){Ty[t]=a.frameList,o&&o(e,a.frameList)}},Dy=function(e,t){Ty[e]=t};return r.comp={button:function(e,t,o,a,i){var n=o.getValue("text"),r=o.getValue("disabled"),l=o.getValue("font"),s=o.getValue("icon"),u=o.getValue("iconPosition"),h=o.getValue("iconWidth"),c=o.getValue("iconHeight"),d=o.getValue("iconGap"),g=o.getColor("iconColor"),f=o.getColor("hoverIconColor"),p=o.getColor("activeIconColor"),v=o.getColor("textColor"),y=o.getColor("hoverTextColor"),x=o.getColor("activeTextColor"),m=o.getColor("disabledTextColor"),b=o.getValue("borderWidth"),w=o.getColor("borderColor"),k=o.getColor("hoverBorderColor"),C=o.getColor("activeBorderColor"),T=o.getColor("disabledBorderColor"),V=o.getColor("background"),D=o.getColor("hoverBackground"),I=o.getColor("activeBackground"),S=o.getColor("disabledBackground"),L=o.getValue("borderRadius"),O=o.getValue("handleClick"),o=Ye(i,a,o);(P=je(Ai($r),4))[0],P[1],P[2],P[3];var B,R,L=(P=je(Pi(L),4))[0],E=P[1],H=P[2],P=P[3],A=t.x,_=t.y,M=t.width,t=t.height;r?(V=S,w=T,v=m,b=b||1):(V=Hi(o,V,D,I,!0),w=Hi(o,w,k,C,!0),g=Hi(o,g,f,p,!1,!0),v=Hi(o,v,y,x,!0)),e.fillStyle=V,e.beginPath(),xe(e,A,_,M,t,L,E,P,H),e.closePath(),Ue(e).call(e),b&&w&&(e.strokeStyle=w,e.lineWidth=b,e.stroke()),!s&&Fe(n)?(e.textAlign="center",e.textBaseline="middle",e.font=l,e.fillStyle=v,e.fillText(n,A+M/2,_+t/2)):s&&!Fe(n)?Kr(e,Jr(s),"uniform",A+.5*(M-h),_+.5*(t-c),h,c,a,i,g):s&&Fe(n)&&(S=He(l,n),Le===u||Be===u?(T=_+.5*(t-c-S.height-d),B={x:A,height:S.height,width:M},R={x:A+.5*(M-h),width:h,height:c},Le===u?(B.y=T+c+d,R.y=T):Be===u&&(B.y=T,R.y=T+S.height+d)):(m=A+.5*(M-h-S.width-d),B={width:S.width,y:_,height:t},R={y:.5*(t-c),width:h,height:c},Re===u?(B.x=m,R.x=m+S.width+d):(B.x=m+h+d,R.x=m)),qr(e,n,l,v,B.x,B.y,B.width,B.height,"center","middle"),Kr(e,Jr(s),"uniform",R.x,R.y,R.width,R.height,a,i,g)),o&&(o.disabled=r,o.onClick=O)},input:function(e,t,o,a,i){var n,r,l=o.getValue("value"),s=o.getValue("placeholder"),u=o.getColor("placeholderColor"),h=o.getValue("disabled"),c=o.getValue("borderWidth"),d=o.getColor("borderColor"),g=o.getValue("borderPattern"),f=o.getColor("focusBorderColor")||d,p=o.getValue("borderRadius"),v=o.getValue("padding"),y=o.getColor("background"),x=o.getColor("focusBackground")||y,m=o.getValue("icon"),b=o.getValue("iconWidth"),w=o.getValue("iconHeight"),k=o.getValue("iconAlign"),C=o.getValue("font"),T=o.getValue("textAlign"),V=o.getColor("textColor"),O=o.getValue("maxLength"),D=o.getValue("inputType"),E=o.getValue("enterEndInputable"),H=o.getValue("onKeyDown"),W=o.getValue("onKeyUp"),F=o.getValue("onChange"),N=o.getColor("disabledLayerColor")||"rgba(255, 255, 255, 0.35)",I=o.getValue("formatter"),S=Ye(i,a,o),L=S&&S.editing,B=S&&S.editingValue,R=(P=je(Pi(v),4))[0],j=P[1],z=P[2],P=P[3],G=(p=je(Pi(p),4))[0],U=p[1],Y=p[2],p=p[3],A=t.x,_=t.y,M=t.width,t=t.height;a&&L?(r=x,d=f):r=y,e.beginPath(),xe(e,A,_,M,t,G,U,p,Y),e.closePath(),r&&(e.fillStyle=r,Ue(e).call(e)),(c&&d||L&&c&&f)&&(e.save(),e.strokeStyle=L?f:d,e.lineWidth=c,g&&g.length&&e.setLineDash(g),e.stroke(),e.restore()),l=(Fe(l)?l:"")+"",B&&L||(x=!l&&s,n=(I?I(l,a,i):l)||s||"",y=l?V:u,r=Math.max(0,M-P-j),f=Math.max(0,t-R-z),d=A+P,g=_+R,L&&(n=s||"",y=u),n&&(e.save(),e.beginPath(),e.rect(d,g,r,f),e.clip(),!x&&a&&"password"===D&&(n=function(){for(var e="",t=0;t<n.length;t++)e+="•";return e}()),Qr(e,n,C,y,d,_+1,r,t,T,"middle"),e.restore())),m&&(B="left"===k?A:"center"===k?A+.5*(M-b):A+M-b,el(e,tl(m),"uniform",B,.5*(t-w),b,w,a,i)),h&&(I=c/2,e.beginPath(),xe(e,A-I,_-I,M+c,t+c,G,U,p,Y),e.fillStyle=N,e.closePath(),Ue(e).call(e)),S&&(S.disabled=h,S.font=C,S.value=l,S.placeholder=s,S.textAlign=T,S.maxLength=O,S.textColor=V,S.inputType=D,S.enterEndInputable=E,S.onKeyUp=W,S.onKeyDown=H,S.onChange=F,S.padding=v,S.selectTextOnFocus=o.getValue("selectTextOnFocus"),S.onBlur=o.getValue("onBlur"),S.onFocus=o.getValue("onFocus"),S.instance={endEdit:function(){var e=X(this,"value",a);S.editing&&S.inputDOM&&(Fn(a,0,S.inputDOM,S,e),i.getView().removeEventListener("mousedown",S.handleWindowClick),i.getView().removeEventListener("touchstart",S.handleWindowClick))}})},inputNumber:function(e,t,o,a,i){var n,r=o.getValue("value"),l=o.getValue("placeholder"),s=o.getColor("placeholderColor"),O=o.getColor("min"),E=o.getColor("max"),H=o.getColor("step"),u=o.getValue("disabled"),h=o.getValue("borderWidth"),c=o.getColor("borderColor"),d=o.getColor("focusBorderColor")||c,g=o.getValue("borderRadius"),f=o.getValue("padding"),p=o.getColor("background"),v=o.getColor("focusBackground")||p,y=o.getValue("icon"),x=o.getValue("iconWidth"),m=o.getValue("iconHeight"),b=o.getValue("iconAlign"),w=o.getValue("font"),k=o.getValue("textAlign"),C=o.getColor("textColor"),W=o.getValue("maxLength"),F=o.getValue("enterEndInputable"),N=o.getValue("buttonVisible"),j=o.getValue("onKeyDown"),z=o.getValue("onKeyUp"),G=o.getValue("onChange"),U=o.getColor("disabledLayerColor")||"rgba(255, 255, 255, 0.35)",T=Ye(i,a,o),V=T&&T.editing,D=T&&T.editingValue,I=(B=je(Pi(f),4))[0],S=B[1],L=B[2],B=B[3],R=(g=je(Pi(g),4))[0],P=g[1],Y=g[2],g=g[3],A=t.x,_=t.y,M=t.width,t=t.height;a&&V?(n=v,c=d):n=p,e.beginPath(),xe(e,A,_,M,t,R,P,g,Y),e.closePath(),n&&(e.fillStyle=n,Ue(e).call(e)),(h&&c||V&&h&&d)&&(e.strokeStyle=V?d:c,e.lineWidth=h,e.stroke()),(D||0===D)&&V||(v=Fe(r)?r:Fe(l)?l:"",p=Fe(r)?C:s,n=Math.max(0,M-B-S),d=Math.max(0,t-I-L),D=A+B,S=_+I,V&&(v=Fe(l)?l:"",p=s),Fe(v)&&(e.save(),e.beginPath(),e.rect(D,S,n,d),e.clip(),Vh(e,v,w,p,D,_+1,n,t,k,"middle"),e.restore())),N&&(L=A+M-20,B=_+h/2,V=5<(I=t-h)/2?2.5:I/2*.4,e.strokeStyle=c,e.beginPath(),e.moveTo(L,B),e.lineTo(L,B+I),e.moveTo(L,B+I/2),e.lineTo(20+L,B+I/2),e.stroke(),e.beginPath(),e.moveTo(6+L,B+I/4+V),e.lineTo(10+L,B+I/4-V),e.lineTo(14+L,B+I/4+V),e.stroke(),e.beginPath(),e.moveTo(6+L,B+I/4*3-V),e.lineTo(10+L,B+I/4*3+V),e.lineTo(14+L,B+I/4*3-V),e.stroke(),T)&&(T.buttonRects=[{x:L,y:B,width:20,height:t/2},{x:L,y:B+t/2,width:20,height:t/2}]),y&&(s="left"===b?A:"center"===b?A+.5*(M-x):A+M-x,Dh(e,Ih(y),"uniform",s,.5*(t-m),x,m,a,i)),u&&(S=h/2,e.beginPath(),xe(e,A-S,_-S,M+h,t+h,R,P,g,Y),e.fillStyle=U,e.closePath(),Ue(e).call(e)),T&&(T.disabled=u,T.font=w,T.value=r,T.placeholder=l,T.textAlign=k,T.maxLength=W,T.textColor=C,T.enterEndInputable=F,T.onKeyUp=z,T.onKeyDown=j,T.onChange=G,T.padding=f,T.step=H,T.min=O,T.max=E,T.selectTextOnFocus=o.getValue("selectTextOnFocus"),T.onBlur=o.getValue("onBlur"),T.onFocus=o.getValue("onFocus"))},textarea:function(t,e,o,a,i){var n,r,l,s,u=o.getValue("value"),h=o.getValue("placeholder"),c=o.getColor("placeholderColor"),d=o.getValue("disabled"),g=o.getValue("borderWidth"),f=o.getColor("borderColor"),p=o.getValue("borderPattern"),v=o.getColor("focusBorderColor"),y=o.getValue("borderRadius"),x=o.getValue("padding"),m=o.getColor("background"),b=o.getColor("focusBackground")||m,w=o.getValue("textAlign"),k=o.getColor("textColor"),C=o.getValue("lineHeight"),T=o.getValue("font"),V=o.getValue("wordBreak"),O=o.getValue("maxLength"),E=o.getValue("enterEndInputable"),H=o.getValue("onKeyUp"),W=o.getValue("onKeyDown"),F=o.getValue("onChange"),D=o.getValue("formatter"),N=o.getColor("disabledLayerColor")||"rgba(255, 255, 255, 0.35)",I=Ye(i,a,o),S=I&&I.editing,j=I&&I.editingValue,L=(R=je(Pi(x),4))[0],z=R[1],G=R[2],B=R[3],y=(R=je(Pi(y),4))[0],U=R[1],Y=R[2],R=R[3],P=e.x,A=e.y,_=e.width,M=e.height;a&&S?(s=b,f=v):s=m,t.beginPath(),xe(t,P,A,_,M,y,U,R,Y),t.closePath(),s&&(t.fillStyle=s,Ue(t).call(t)),(g&&f||S&&g&&v)&&(t.save(),t.strokeStyle=S?v:f,t.lineWidth=g,p&&t.setLineDash(p),t.stroke(),t.restore()),u=(Fe(u)?u:"")+"",j&&S||(e=(D?D(u,a,i):u)||h||"",n=u?k:c,r=Math.max(0,_-B-z),b=Math.max(0,M-L-G),S&&(e=h||"",n=c),e&&(t.save(),t.beginPath(),t.rect(P+B,A+L,r,b),t.clip(),m=Ei(e,T,r,V),l=A+L,ze(m).call(m,function(e){A+M<l||(ol(t,e,T,n,P+B,l,r,C,w,"middle"),l+=C)}),t.restore())),d&&(s=g/2,t.beginPath(),xe(t,P-s,A-s,_+g,M+g,y,U,R,Y),t.fillStyle=N,t.closePath(),Ue(t).call(t)),I&&(I.disabled=d,I.font=T,I.value=u,I.placeholder=h,I.textAlign=w,I.maxLength=O,I.textColor=k,I.enterEndInputable=E,I.padding=x,I.wordBreak=V,I.onKeyUp=H,I.onKeyDown=W,I.onChange=F,I.lineHeight=C,I.selectTextOnFocus=o.getValue("selectTextOnFocus"),I.onBlur=o.getValue("onBlur"),I.onFocus=o.getValue("onFocus"))},radio:function(e,t,o,a,i){var n=o.getValue("disabled"),r=o.getValue("checked"),l=o.getColor("normalColor"),s=o.getColor("background"),u=o.getColor("activeColor"),h=o.getColor("disabledColor"),c=o.getColor("disabledBackground"),d=(o.getValue("symbol"),o.getColor("hoverColor")),g=o.getColor("hoverBackground"),f=o.getColor("activeHoverColor"),p=o.getColor("activeHoverBackground"),v=o.getColor("checkedHoverColor"),y=o.getColor("checkedHoverBackground"),i=Ye(i,a,o),u=r?u:l,l=t.x,x=t.y,m=t.width,t=t.height,b=Math.min(m,t);a&&(n?(u=h,s=c):i.pressed?(r?u=ht.Default.darker(u,Ui.activeDarker):s=ht.Default.darker(s,Ui.activeDarker),f&&(u=f),p&&(s=p)):i.hover&&(r?(u=ht.Default.darker(u,Ui.hoverDarker),v&&(u=v),y&&(s=y)):(s=ht.Default.darker(s,Ui.hoverDarker),d&&(u=d),g&&(s=g)))),s&&(e.beginPath(),e.fillStyle=s,e.arc(l+.5*m,x+.5*t,.5*b,0,2*Math.PI),Ue(e).call(e)),e.beginPath(),e.strokeStyle=u,e.lineWidth=1.5,e.arc(l+.5*m,x+.5*t,.5*b,0,2*Math.PI),e.stroke(),r&&(e.beginPath(),e.fillStyle=u,e.arc(l+.5*m,x+.5*t,.25*b,0,2*Math.PI),Ue(e).call(e)),a&&!a.__inputType&&(a.__inputType=qi),i&&(i.disabled=n,i.onChange=o.getValue("onChange"),i.group=o.getValue("group"),i.value=o.getValue("value"))},checkbox:function(e,t,o,a,i){var n=o.getValue("checked"),r=o.getValue("disabled"),l=o.getColor("borderColor"),s=o.getColor("activeBorderColor"),u=o.getColor("disabledBorderColor"),h=o.getColor("background"),c=o.getColor("activeBackground"),d=o.getColor("disabledBackground"),g=o.getValue("borderRadius"),f=o.getColor("iconColor"),p=o.getColor("disabledIconColor"),i=Ye(i,a,o),v=t.x,y=t.y,x=t.width,t=t.height,m=Math.min(x,t),h=n?c:h;h=r?(l=u,f=p,d):Hi(a,h,null,null,!0),n&&!r&&(l=s),t<x?v+=.5*(x-t):x<t&&(y+=.5*(t-x)),e.beginPath(),xe(e,v,y,m,m,g),e.closePath(),h&&(e.fillStyle=h,Ue(e).call(e)),e.strokeStyle=l,e.lineWidth=1,e.stroke(),n&&(e.beginPath(),e.moveTo(v+.125*m,y+.5*m),e.lineTo(v+m*(3/8),y+.75*m),e.lineTo(v+.8125*m,y+.25*m),e.lineWidth=Math.max(1,m/16),e.lineCap="round",e.strokeStyle=f,e.stroke()),a&&!a.__inputType&&(a.__inputType=Ki),i&&(i.disabled=r,i.checked=n,i.onChange=o.getValue("onChange"),i.group=o.getValue("group"),i.value=o.getValue("value"))},colorPicker:function(e,t,o,a,i){var n,r=o.getValue("disabled"),l=o.getValue("borderWidth"),s=o.getValue("borderColor"),u=o.getValue("disabledBorderColor"),h=o.getValue("focusBorderColor"),c=o.getValue("borderRadius"),d=o.getValue("textColor"),g=o.getValue("value"),f=o.getValue("font"),p=o.getValue("fullMode"),v=o.getValue("showDropDownIcon"),y=o.getValue("dropDownIcon"),x=o.getValue("dropDownIconColor"),m=o.getValue("dropDownIconWidth"),b=o.getValue("dropDownIconHeight"),O=o.getValue("onChange"),o=Ye(i,a,o),w=(c=je(Pi(c),4))[0],k=c[1],C=c[2],c=c[3],T=t.x,V=t.y,D=t.width,t=t.height,I=T+D+5,S=V+t+5,L=!1;if(r?s=d=u:o&&o.editing&&h&&(s=h),e.save(),p){e.beginPath(),xe(e,T,V,D,t,w,k,c,C),e.closePath(),e.clip();for(var B=V,R=0;B<S;B+=5,R++)for(var L=R%2!=0,P=T;P<I;P+=5)e.fillStyle=L?ll:rl,e.fillRect(P,B,5,5),L=!L}else{I=(n={x:T+4,y:V+4,width:1.66*(t-8),height:t-8}).x+n.width,S=n.y+n.height,e.beginPath(),e.rect(n.x,n.y,n.width,n.height),e.closePath(),e.clip();for(var A=n.y,_=0;A<S;A+=5,_++){L=_%2!=0;for(var M=n.x;M<I;M+=5)e.fillStyle=L?ll:rl,e.fillRect(M,A,5,5),L=!L}}e.restore(),e.beginPath(),xe(e,T,V,D,t,w,k,c,C),e.closePath(),g&&p?(e.fillStyle=g,Ue(e).call(e)):g&&!p&&(e.fillStyle=g,e.fillRect(n.x,n.y,n.width,n.height),sl.setColor(g),al(e,sl,f,d,n.x+n.width+4,V,D-n.width-8,t,"left","middle")),l&&(e.lineWidth=l,e.strokeStyle=s,e.stroke()),v&&il(e,nl(y||"ht.vector.dropDownIcon"),"uniform",T+D-8-m,V+.5*(t-b),m,b,a,i,x),o&&(o.disabled=r,o.onChange=O)},comboBox:function(e,t,o,a,i){var n,r,l=o.getValue("value"),O=o.getValue("placeholder"),E=o.getColor("placeholderColor"),s=o.getValue("dataSource"),u=o.getValue("disabled"),h=o.getValue("borderWidth"),c=o.getColor("borderColor"),d=o.getColor("disabledBorderColor"),g=o.getColor("focusBorderColor"),f=o.getValue("borderRadius"),p=o.getValue("padding"),v=o.getColor("background"),y=o.getColor("disabledBackground"),x=o.getColor("focusBackground")||v,m=o.getValue("icon"),b=o.getValue("iconWidth"),w=o.getValue("iconHeight"),k=o.getValue("iconAlign"),H=o.getValue("font"),W=o.getValue("textAlign"),C=o.getColor("textColor"),T=o.getColor("disabledTextColor"),F=o.getValue("dropDownIcon"),N=o.getColor("dropDownIconColor"),V=o.getValue("dropDownIconWidth"),D=o.getValue("dropDownIconHeight"),j=o.getValue("drawUnMatchValue"),I=Ye(i,a,o),S=I&&I.editing,z=(p=je(Pi(p),4))[0],G=p[1],U=p[2],p=p[3],L=(f=je(Pi(f),4))[0],B=f[1],Y=f[2],f=f[3],R=t.x,P=t.y,A=t.width,t=t.height;if(a?u?(n=y,c=d,C=T,h=h||1):S?(n=x,c=g):n=v:n=v,e.beginPath(),xe(e,R,P,A,t,L,B,f,Y),e.closePath(),n&&(e.fillStyle=n,Ue(e).call(e)),(h&&c||S&&h&&g)&&(e.strokeStyle=S?g:c,e.lineWidth=h,e.stroke()),s)for(var _={},M=0,X=s.length;M<X;M++)_[s[M].value]=s[M];y=_&&_[l],d=!1,void 0!==l&&y?(r=Fe(y.label)?y.label:y.value,m=y.icon,d=!0):Fe(l)&&j&&(r=l,d=!0),T=Fe(r)?r:O||"",x=Math.max(0,A-p-G-V-8),v=Math.max(0,t-z-U),L=R+p,B=P+z,d||u||(C=E||Ui.placeholderColor),e.save(),e.beginPath(),e.rect(L,B,x,v),e.clip(),ul(e,T,H,C,m?L+b:L,B,x,v,W,"middle"),e.restore(),m&&(f="left"===k?L:"center"===k?R+.5*(A-b):R+A-b-G,hl(e,cl(m),"uniform",f,.5*(t-w),b,w,a,i)),hl(e,cl(F||"ht.vector.dropDownIcon"),"uniform",R+A-8-V,P+.5*(t-D),V,D,a,i,N),I&&(I.disabled=u,I.dataSource=s,I.dropIconWidth=o.getValue("dropIconWidth"),I.dropIconHeight=o.getValue("dropIconHeight"),I.dropRowHeight=o.getValue("dropRowHeight"),I.dropWidth=o.getValue("dropWidth"),I.dropBackground=o.getValue("dropBackground"),I.dropLabelFont=o.getValue("dropLabelFont"),I.dropLabelColor=o.getValue("dropLabelColor"),I.dropLabelHoverColor=o.getValue("dropLabelHoverColor"),I.dropActiveLabelColor=o.getValue("dropActiveLabelColor"),I.dropActiveBackground=o.getValue("dropActiveBackground"),I.dropHoverBackground=o.getValue("dropHoverBackground"),I.dropMaxHeight=o.getValue("dropMaxHeight"),I.onChange=o.getValue("onChange"),I.dropBorderColor=o.getValue("dropBorderColor"),I.dropBorderWidth=o.getValue("dropBorderWidth"),I.scrollSpeed=o.getValue("scrollSpeed"),I.searchInputVisible=o.getValue("searchInputVisible"),I.selectableFunc=o.getValue("selectableFunc"),I.dateType=o.getValue("dateType"),I.dropDownProperty=o.getValue("dropDownProperty"),I.dropDownBackground=o.getValue("dropDownBackground"),I.dropDownBorderWidth=o.getValue("dropDownBorderWidth"),I.dropDownBorderColor=o.getColor("dropDownBorderColor"),I.dropDownBorderType=o.getValue("dropDownBorderType"),I.dropDownBorderRadius=o.getValue("dropDownBorderRadius"),I.okButtonTextFont=o.getValue("okButtonTextFont"),I.okButtonTextColor=o.getColor("okButtonTextColor"),I.okButtonBackground=o.getColor("okButtonBackground"),I.cancelButtonTextFont=o.getValue("cancelButtonTextFont"),I.cancelButtonTextColor=o.getColor("cancelButtonTextColor"),I.cancelButtonBackground=o.getColor("cancelButtonBackground"),I.timeButtonTextFont=o.getValue("timeButtonTextFont"),I.timeButtonTextColor=o.getColor("timeButtonTextColor"),I.dateRangePaneLabelFont=o.getValue("dateRangePaneLabelFont"),I.dateRangePaneLabelColor=o.getColor("dateRangePaneLabelColor"),I.shortcutListLabelFont=o.getValue("shortcutListLabelFont"),I.shortcutListLabelColor=o.getColor("shortcutListLabelColor"),I.dropBoxBorderWidth=o.getValue("dropBoxBorderWidth"),I.dropBoxBorderColor=o.getColor("dropBoxBorderColor"),I.dropBoxBorderType=o.getValue("dropBoxBorderType"),I.dropBoxBorderRadius=o.getValue("dropBoxBorderRadius"),I.textDisableColor=o.getColor("textDisableColor"),I.hideDropDownButtons=o.getValue("hideDropDownButtons"),I.dropDownSyncZoom=o.getValue("dropDownSyncZoom"),I.searchInputStyle=o.getValue("searchInputStyle"),I.format=o.getValue("format"),I.dropDownStyle=o.getValue("dropDownStyle"),I.langue=o.getValue("langue"),I.autoApply=o.getValue("autoApply"),I.applyText=o.getValue("applyText"),I.cancelText=o.getValue("cancelText"),I.buttonAlign=o.getValue("buttonAlign"),I.buttonGap=o.getValue("buttonGap"),I.delimiter=o.getValue("delimiter"),I.formatSeparator=o.getValue("formatSeparator"))},gauge:function(e,t,o,O,E){var a=o.getValue("pointerRadius"),i=o.getColor("pointerColor"),n=o.getValue("value"),r=o.getValue("max"),l=o.getValue("showTick"),s=o.getValue("tickEvery"),u=o.getColor("tickColor"),h=o.getValue("tickWidth"),c=(o.getValue("tickRadius"),o.getValue("bigTickEvery")),d=o.getColor("bigTickColor"),g=o.getValue("bigTickWidth"),f=(o.getValue("bigTickRadius"),o.getValue("showLabel")),p=o.getValue("labelEvery"),v=o.getColor("labelColor"),y=o.getValue("labelFont"),x=o.getValue("labelRadius"),m=o.getValue("showShadow"),b=o.getValue("shadowBlur"),w=o.getColor("shadowColor"),k=o.getValue("shadowOffsetX"),C=o.getValue("shadowOffsetY"),o=(wl=o.getValue("clockwise"),kl=o.getValue("min"),ml=o.getValue("startAngle"),bl=o.getValue("endAngle"),yl=Math.abs(r-kl),xl=Math.abs(bl-ml),t.x),T=t.y,V=t.width,t=t.height,D=Math.min(V,t)/2,n=vl(n,wl);if(e.save(),m&&(e.shadowColor=w,e.shadowBlur=b,e.shadowOffsetX=k,e.shadowOffsetY=C),e.translate(o+.5*V,T+.5*t),l){if(c){e.beginPath(),e.strokeStyle=d,e.lineWidth=g;for(var I=kl;I<=r;I+=c){var S=vl(I,wl),L=D*Math.cos(S),S=D*Math.sin(S);e.moveTo(.84*L,.84*S),e.lineTo(L,S)}e.stroke()}if(s){e.beginPath(),e.strokeStyle=u,e.lineWidth=h;for(var B=kl;B<=r;B+=s){var R=vl(B,wl),P=D*Math.cos(R),R=D*Math.sin(R);e.moveTo(.9*P,.9*R),e.lineTo(P,R)}e.stroke()}}if(f&&p){x=pl(x,D),e.font=y,e.fillStyle=v,e.textAlign="center",e.textBaseline="middle";for(var A=kl;A<=r;A+=p){var _=vl(A,wl),M=x*Math.cos(_),_=x*Math.sin(_);e.fillText(A.toFixed(p.toString().split(".")[1]?p.toString().split(".")[1].length:0),M,_)}}m=.05*(a=pl(a,D)),e.rotate(n),e.beginPath(),e.moveTo(-1.5*m,0),e.lineTo(0,-m),e.lineTo(a,0),e.lineTo(0,m),e.closePath(),e.fillStyle=i,Ue(e).call(e),e.restore()},table:function(y,x,o,m,b){var a,v,l=o.getValue("columns"),e=o.getValue("dataSource"),E=o.getColor("thBackground"),t=o.getColor("tdBackground"),w=o.getValue("thHeight"),H=o.getValue("tdHeight"),k=o.getValue("textLineHeight"),W=o.getColor("thColor"),F=o.getColor("tdColor"),N=o.getValue("thFont"),j=o.getValue("tdFont"),C=o.getValue("borderWidth"),z=o.getColor("borderColor"),G=o.getColor("columnLineColor"),T=o.getValue("columnLineWidth"),U=o.getValue("columnLinePattern"),Y=o.getColor("rowLineColor"),i=o.getValue("rowLineWidth"),X=o.getValue("rowLinePattern"),n=o.getValue("showHeadRowLine"),V=o.getValue("cellPadding"),r=o.getValue("showHead"),Z=o.getColor("hoverBackground"),q=o.getColor("hoverColor"),K=o.getColor("selectBackground"),J=o.getColor("selectColor"),s=o.getValue("translateY")||0,D=o.getValue("translateX")||0,$=o.getValue("scrollable"),Q=o.getValue("autoHideScrollBar"),ee=o.getColor("scrollBarColor"),te=o.getValue("scrollBarWidth"),oe=o.getValue("scrollBarWidthAbsolute"),ae=o.getValue("XscrollBarMinWidth"),ie=o.getValue("YscrollBarMinHeight"),ne=o.getValue("YscrollBarVisible"),re=o.getValue("XscrollBarVisible"),le=o.getValue("drawRow"),u=o.getValue("multiple"),h=o.getValue("onSelectRow"),se=o.getValue("onHoverCell"),ue=o.getValue("onClickCell"),he=o.getValue("onClickCellImage"),ce=o.getValue("onScrollToBottom"),de=o.getValue("handleCellImage"),I=o.getValue("selectedIndex")||[],ge=o.getValue("visibleFunc"),fe=o.getValue("columnVisibleFunc"),pe=o.getValue("resizable"),ve=o.getValue("resizeLineWidth"),ye=o.getValue("resizeLineColor"),xe=o.getValue("resizeInteractiveSize"),me=o.getValue("showHeadColumnLineOnly"),be=o.getValue("showContentColumnLineOnly"),we=o.getValue("adjustRowHeight"),S=Ye(b,m,o),L=x.x,c=x.y,B=x.width,d=x.height,ke=B-2*C,Ce=d-2*C,g=[],R=[],P=[],Te=[],Ve=[];if(r&&(v=[L+C,c+C,ke,w]),a=[L+C,c+w*r+C,B,Ce-w*r],We(I)||ht.Default.isArray(I)||(I=[I]),y.save(),y.beginPath(),y.rect(L,c,B,d),y.clip(),E&&r&&(y.fillStyle=E,y.fillRect.apply(y,Ze(v))),t&&(y.fillStyle=t,y.fillRect.apply(y,Ze(a))),l&&0<l.length&&(ze(l).call(l,function(e,t){(fe&&fe(e,t,m,b)||!fe)&&(P.push(e),Te.push(t))}),P.length)){var A=P.length,_=En(P,ke-T*(A-1)),De=e.length,M=[],Ie=[],E=S.customColWidths||[],O=L+C+D;if(r)for(var t=1,f=((t=b&&b.getZoom?b.getZoom():t)<1&&(xe/=t),0);f<A;f++)!function(){var e,t=P[f],o=t.drawHeadCell,a=_[f]-2*V,i=t.headColor||t.color||W,n=t.headFont||t.font||N,r=t.headAlign||t.align||"left",l=t.headVAlign||t.vAlign||"middle",s=("function"==typeof i&&(i=i(t)),"function"==typeof n&&(n=n(t)),O+=V,y.save(),y.beginPath(),t.displayName||t.key),u=[O,c+C,a,w];y.rect.apply(y,u),y.clip(),e=function(){var e;Wl.apply(void 0,Ee(e=[y,s,n,i]).call(e,u,[r,l]))},o?o(y,s,Hn(u),{color:i,font:n,defaultDraw:e,data:m,column:t,colIndex:Te[f]}):e(),y.restore(),O+=a+T+V,Ie.push({x:O-xe/2-T/2,y:c,width:xe,height:w})}();y.save(),y.beginPath(),y.rect(L+C,c+C+(r?w:0),ke,Ce-w*r),y.clip();var Se=c,p=(e&&0<De&&(ze(e).call(e,function(e,t){(ge&&ge(e,t,m,b)||!ge)&&(g.push(e),R.push(t))}),ze(g).call(g,function(e,t){var a,i,n,r;M.push((a=e,i=R[t],n=k,e=l,t=we,r=Math.max(n,H),ze(e).call(e,function(e,t){var o=e.format,e=a[e.key];"string"==typeof(e=o?o(e,a,i,t):e)&&(o=e.match(Gl))&&o.length&&(r=Math.max(r,n*(o.length+1)))}),r=t?t(a,i,r):r))}),!u&&1<I.length&&(I=Me(I).call(I,0,1)),ze(g).call(g,function(u,h){var c=R[h],d=M[h],g=Se+i*(h+n*r*1)+w*r+C+s,e={x:L,y:g,width:B,height:d};if(Se+=d,O=L+C+D,zl(Hn(a),e)){y.save(),le&&le.call(o,y,u,c,e,Oe(R).call(R,c),m,b);for(var f=S&&S.hoverIndex===c,p=I&&-1!==Oe(I).call(I,c),t=(p&&K?(y.fillStyle=K,y.fillRect(L,g,B,d)):!p&&f&&Z&&(y.fillStyle=Z,y.fillRect(L,g,B,d)),function(){var o=P[v],a=Te[v],e=o.drawCell,i=_[v]-2*V,n=o.bodyFont||o.font||j,r=o.bodyColor||o.color||F,t=(p&&J&&(r=J),"function"==typeof(r=!p&&f&&q?q:r)&&(r=r(u[o.key],u)),"function"==typeof n&&(n=n(u[o.key],u)),{x:O+=V,y:g,width:i,height:d});if(!zl(t,x))return O+=i+T+V,"continue";function l(){var t,e=o.isIcon;o.isIndex&&(e=!1,s=h+1,o.format)&&(s=o.format(s,u,c,a)),e?0<i&&Fl(y,Nl(s),"centerUniform",O,g+1,i,d-2,m,b):null!=(e=s)&&""!==e&&(((e="string"==typeof s?s.match(Gl):null)?e.length:0)?(e=s.split(Gl),t=g,"middle"===o.vAlign?t=g+(d-e.length*k)/2:"bottom"===o.vAlign&&(t=g+(d-e.length*k)),ze(e).call(e,function(e){Wl(y,e,n,r,O,t,i,k,o.align||"left",o.vAlign||"middle"),t+=k})):Wl(y,s,n,r,O,g,i,d,o.align||"left",o.vAlign||"middle"))}var s=u[o.key];o.format&&(s=o.format(s,u,c,a)),y.save(),y.beginPath(),y.rect(O,g,i,d),y.clip();e?e(y,s,{x:O,y:g,width:i,height:d},{column:o,colIndex:a,row:u,rowIndex:c,font:n,color:r,view:b,defaultDraw:l,data:m,isHoverRow:f,isSelectedRow:p},Ve):l(),O+=i+T+V,y.restore()}),v=0;v<A;v++)t();y.restore()}})),S&&(S.rowHeights=M,S.colWidths=_,S.headHeight=r?w:0,S.rowLineWidth=i,S.columnLineWidth=T,S.translateX=D,S.translateY=s,S.autoHideScrollBar=Q,S.multiple=u,S.selectedIndex=I,S.dataSource=e,S.columns=l,S.onSelectRow=h,S.onHoverCell=se,S.onClickCell=ue,S.onClickCellImage=he,S.onScrollToBottom=ce,S.handleCellImage=de,S.rawDatas=g,S.rawIndexs=R,S.rawCols=P,S.rawColIndexs=Te,S.headRect=v,S.bodyRect=a,S.resizable=pe,S.resizeRects=Ie,S.customColWidths=E,S.onClickHeadCell=o.getValue("onClickHeadCell"),S.pannable=o.getValue("pannable"),S.scrollBarInteractiveSize=o.getValue("scrollBarInteractiveSize"),S.scrollSpeed=o.getValue("scrollSpeed"),S.rowHoverable=o.getValue("rowHoverable"),S.rowSelectable=o.getValue("rowSelectable"),S.drawCellImageInfo=Ve),c+C+w*r+s);y.beginPath(),n&&r&&(y.moveTo(L,p+=i/2),y.lineTo(L+B,p),p+=i/2);for(var Le,Be,Re=0;Re<De&&!(c+d<(p+=M[Re]+i/2));Re++)p<c||(y.moveTo(L,p),y.lineTo(L+B,p)),p+=i/2;if(i&&(y.strokeStyle=Y,y.lineWidth=i,X&&1<X.length&&y.setLineDash(X),y.stroke()),y.restore(),T){var Pe=L+C+D,Ae=c+(r?w:0);me||(be?Ae=p:Ae+=a[3]),y.beginPath();for(var _e=0;_e<A;_e++)Pe+=_[_e]+T/2,y.moveTo(Pe,c),y.lineTo(Pe,Ae),Pe+=T/2;y.strokeStyle=G,y.lineWidth=T,U&&1<U.length&&y.setLineDash(U),y.stroke()}m&&S&&$&&(Le=T?T*(A-1):0,Be=i?(De-1)*i+n*i:0,ze(_).call(_,function(e){Le+=e}),ze(M).call(M,function(e){Be+=e}),t={x:L+C,y:c+C+(r?w+n*i:0),width:ke,height:Ce-(r?w+n*i:0)},u={width:Le,height:Be},e={x:D,y:s},h=b&&b.getZoom?b.getZoom():1,Pl(y,t,u,e,{visible:!Q||S.scrollBarVisible,color:ee,barWidth:oe?te/h:te,gap:2/h,XscrollBarMinWidth:ae,YscrollBarMinHeight:ie,YscrollBarVisible:ne,XscrollBarVisible:re},S))}C&&jl(y,z,L,c,B,d,C),S.resizeDragPoint&&ye&&ve&&(se=S.resizeDragPoint.x,y.strokeStyle=ye,y.lineWidth=ve,y.beginPath(),y.moveTo(se,c),y.lineTo(se,c+d),y.stroke()),y.restore()},pie:function(x,e,t,y,m){var o=t.getValue("dataSource"),a=t.getValue("radius"),i=t.getValue("center"),b=t.getValue("startAngle"),n=t.getValue("endAngle"),O=t.getValue("tooltip.show"),E=t.getValue("tooltip.formatter"),H=t.getValue("tooltip.font"),w=t.getValue("roseType"),W=t.getValue("seriesName"),k=t.getValue("hoverOffset"),F=t.getValue("avoidLabelOverlap"),N=t.getValue("color"),j=t.getValue("minRoseRadius"),r=t.getValue("minAngle"),l=t.getValue("gapAngle"),z=t.getValue("drawLabelLineContent"),G=t.getValue("onSelected"),U=t.getValue("tooltip.draw");if("false"===w&&(w=!1),o instanceof Array){360<(n=n<b?b:n)-b&&(n=b+360),b*=-Mg/180,n*=Mg/180;var Y,X,Z,q,K=e.x,s=e.y,J=e.width,u=e.height,$=Math.min(J,u),h=0,Q=0,c=-b,a=je(a,2),d=a[0],C=void 0===d?0:d,d=a[1],T=void 0===d?.5:d,a=je(i,2),d=a[0],g=void 0===d?.5:d,i=a[1],f=void 0===i?.5:i,ee=n-Math.abs(b),te=(0<=C&&C<=1&&(C*=$/2),0<=T&&T<=1&&(T*=$/2),g=0<=g&&g<=1?g*J+K:g+K,f=0<=f&&f<=1?f*u+s:f+s,o=ti(o).call(o,function(){return 0<=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).value}),[]),o=ti(o).call(o,function(){return!1!==(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).visible&&(te.push(N[(1<arguments.length?arguments[1]:void 0)%N.length]),!0)}),p=Ge(o).call(o,function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).value||0}),oe=zi(p).call(p,function(e,t){return e+t},0),ae=Ge(p).call(p,function(e){return e/oe}),ie=Math.max.apply(Math,Ze(p)),ne=T-C,re=Ge(p).call(p,function(e){e=e/ie*ne;return e<j?j:e}),v=Ge(ae).call(ae,function(e){return e*ee}),le=ee,se=0,ue=(r*=Og,v=Ge(v).call(v,function(e,t){return e<r?(le-=r,r):(se+=p[t],e)}),v=le<=.001?(Y=ee/p.length,Ge(v).call(v,function(e,t){return Y})):(X=le/se,Ge(v).call(v,function(e,t){return e===r?r:p[t]*X})),"area"===w&&(Z=(n+b)/o.length,v=Ge(v).call(v,function(e,t){return Z})),0<o.length&&(d=360/o.length)<l&&(l=d),l*=Og,o.length*l),a=Ye(m,y,t),V=[],he=[],ce=[],de=[],ge=[];if(a){0<o.length&&(q=new Ig(t),ze(o).call(o,function(e,t){var o,a,i,n;e&&(o=ae[t],a=re[t],i=v[t],n=c+(i=(i-=ue*o)<0?0:i)/2,h+=i,0===e.value&&(n+=1e-10,h+=1e-10),V.push(new Ag({percent:o,roseRadius:a,lineAngle:n,arcAngle:i,arcEndAngle:h,arcStartAngle:Q,seriesName:W,index:t,source:e,centerX:g,centerY:f,outerRadius:T,innerRadius:C,roseType:w,hoverOffset:k,color:te,view:m,data:y},q)),c+=i+l,Q=h+=l)}),c=-b,h=Q=b);for(var D=a.foucusArcNum,I=0,fe=V.length;I<fe;I++){var pe=V[I].arcAngle;he.push({x:g+T*Math.cos(c),y:f+T*Math.sin(c)}),ce.push(pe),c+=pe+l,I===fe-1&&(c=-b)}x.save(),x.beginPath(),x.rect(e.x,e.y,e.width,e.height),x.clip(),x.save(),x.translate(g,f),x.rotate(-b),Ne("fill"),Ne("stroke"),x.restore();for(var ve=V,ye=de,xe=D,S=0,me=ve.length;S<me;S++){var L=ve[S],B=xe===S,R=L.getLabelLinePoints(B),be=R.x0,we=R.y0,ke=R.x1,R=R.y1,P=L.getLabelLineLabelInfo(B),Ce=P.labelTextArray,Te=P.textHeight,P=P.beginHeight;ye.push({x0:be,y0:we,x1:ke,y1:R,labelTextArray:Ce,labelLineIsShow:(B?L.labelLineEmphasis:L.labelLineNormal).show,lineLength2:(B?L.labelLineEmphasis:L.labelLineNormal).length2,oneTextHeight:Te,allTextHeight:2*P})}if(F){var Ve=de;var De=g;var Ie=s;var Se=T;var Le=u;for(var Be=[],Re=[],A=0;A<Ve.length;A++)(Ve[A].x0<De?Be:Re).push(Ve[A]);function Pe(e,t){if(Sd(e).call(e,function(e,t){return e.y0-t.y0}),0<(e=ti(e).call(e,function(e){if(e.labelLineIsShow)return e})).length){for(var o=e[0].allTextHeight/2+3,a=e[e.length-1].allTextHeight/2,i=Le-o-a-3,n=e.length,r=0,l=0,s=e.length;l<s;l++)if(i<(r+=e[l].allTextHeight)){n=l;break}var u=i/(n-1);u===1/0&&(u=0);for(var h=0;h<n;h++)e[h].avoidIsShow=!0,e[h].x1=De+t*(Se+10),e[h].y1=Ie+o+h*u}}0<Be.length&&Pe(Be,-1),0<Re.length&&Pe(Re,1)}for(var _=0,Ae=V.length;_<Ae;_++)(function(){var e=V[_],t=D===_,o=t?e.labelLineEmphasis:e.labelLineNormal,a=o.show,i=o.width,n=o.type,r=o.font,l=o.lineColor,o=o.textColor;if(void 0!==e.value&&!1!==a){var a=de[_],s=a.x0,u=a.y0,h=a.x1,c=a.y1,d=a.oneTextHeight,g=a.allTextHeight,f=a.labelTextArray,p=a.lineLength2,a=a.avoidIsShow;if(F&&!a)return;x.save(),x.lineWidth=i,x.font=r,x.strokeStyle=l,x.fillStyle=o,x.setLineDash("dashed"===n?[2,2]:[]);var v=h<=s?-1:1;x.textAlign=h<=s?"right":"left",x.textBaseline="top",x.beginPath(),0<i?(x.moveTo(s,u),x.lineTo(h,c),h+=v*p,x.lineTo(h,c),x.stroke()):h+=v*p,z?z(x,h+3*v,c,v,f,t,e.source,y,m):ze(f).call(f,function(e,t){x.fillText(e,h+3*v,c-g/2+d*t)}),x.restore()}})();for(var _e=V,Me=ge,Oe=0,Ee=_e.length;Oe<Ee;Oe++){var He=_e[Oe].getLabelPoints(),We=He.textX,He=He.textY;Me.push({textX:We,textY:He})}x.save(),x.textAlign="center",x.textBaseline="top";for(var M=0,Fe=V.length;M<Fe;M++)!function(){var o,a,i,n,e=V[M],t=D===M,r=t?e.labelEmphasis:e.labelNormal,l=r.show,s=r.position,u=r.color,r=r.font;void 0!==e.value&&!1!==l&&(x.save(),x.font=r,x.fillStyle=u,l=ge[M],o="center"===s?g:l.textX,a="center"===s?f:l.textY,u=(r=e.getLabelInfo(t)).labelTextArray,i=r.textHeight,n=r.beginHeight,ze(u).call(u,function(e,t){x.fillText(e,o,a-n+i*t)}),x.restore())}();x.restore(),x.restore(),a&&(a.arcPoints=he,a.arcAngles=ce,a.center={x:g,y:f},a.radius={outerRadius:T,innerRadius:C},a.hoverOffset=k,a.tooltip={show:!_g(O)||O,formatter:E||"",font:H,drawTooltip:U},a.pieItems=V,a.onSelected=G)}}function Ne(e){for(var t=0,o=V.length;t<o;t++){var a=V[t],i=a.arcEndAngle,n=a.arcStartAngle,r=a.roseRadius,l=a.itemStyle,s=l.color,u=l.borderWidth,h=l.borderColor,l=l.borderType,c=void 0;if(0!==a.value&&void 0!==a.value&&("stroke"===e&&0<u||"fill"===e)){if(x.save(),x.beginPath(),x.moveTo(C*Math.cos(n),C*Math.sin(n)),D===t?(c=w?r+k+C:T+k,x.arc(0,0,c,n,i,!1),x.arc(0,0,C,i,n,!0),"fill"===e&&(x.globalAlpha=.9,x.shadowBlur=10,x.shadowColor="rgba(0, 0, 0, 0.5)")):(c=w?r+C:T,x.arc(0,0,c,n,i,!1),x.arc(0,0,C,i,n,!0)),x.closePath(),"fill"===e){if("string"==typeof s)x.fillStyle=s;else if("object"===Xe(s)){var r=s.type,d=s.colorStops,g=null;if("radial"===r?g=x.createRadialGradient(0,0,C,0,0,c):"linear"===r&&(n=(i=function(e,t){for(var o=ht.Math.Vector2,a=Math.cos,i=Math.sin,n=e.arcStartAngle,r=e.arcEndAngle,l=e.roseRadius,e=e.innerRadius,l=e+l,s=r-n,u={x:l*a(n),y:l*i(n)},h={x:l*a(r),y:l*i(r)},n={x:e*a(n),y:e*i(n)},e={x:e*a(r),y:e*i(r)},r=t,t=r+Math.PI/2,c=t+Math.PI/2,d=c+Math.PI/2,g=[{x:l*a(r),y:l*i(r)},{x:l*a(t),y:l*i(t)},{x:l*a(c),y:l*i(c)},{x:l*a(d),y:l*i(d)}],f=[u,h,n,e],p=0;p<4;p++){var v=g[p],y=new o(u),x=new o(v),m=y.clone().normalize().dot(x.normalize()),m=Math.acos(m);0<y.x*x.y-x.x*y.y?m<s&&f.push(v):2*Math.PI-m<s&&f.push(v)}for(var b=-1/0,w=1/0,k=0,C=f.length;k<C;k++)var T=f[k].y,b=Math.max(b,T),w=Math.min(w,T);return{minY:w,maxY:b}}(a,b)).minY,s=i.maxY,g=x.createLinearGradient(0,n,0,s)),g&&d instanceof Array){for(var f=0,p=d.length;f<p;f++){var v=d[f],y=v.offset,v=v.color;void 0!==y&&void 0!==v&&g.addColorStop(y,v)}x.fillStyle=g}}Ue(x).call(x)}else"stroke"===e&&(x.strokeStyle=h,x.lineWidth=u,x.setLineDash("dashed"===l?[2,2]:[]),x.stroke());x.globalAlpha=1,x.restore()}}}},ruler:function(h,n,r,O,E){r.getValue("value");var c=r.getValue("max"),d=r.getValue("min"),e=r.getValue("labelEvery"),t=r.getValue("labelFont"),o=r.getColor("labelColor"),a=r.getValue("labelAlign"),H=r.getValue("labelDistance"),i=r.getValue("labelOffsetX"),l=r.getValue("labelOffsetY"),s=r.getValue("labelFormatter"),g=r.getValue("direction"),f=r.getValue("paddingBefore"),p=r.getValue("paddingAfter"),u=r.getColor("background"),W=r.getValue("smallTickEvery"),F=r.getColor("smallTickColor"),N=r.getValue("smallTickWidth"),j=r.getValue("smallTickLongness"),z=r.getValue("mediumTickEvery"),G=r.getColor("mediumTickColor"),U=r.getValue("mediumTickWidth"),Y=r.getValue("mediumTickLongness"),X=r.getValue("largeTickEvery"),Z=r.getColor("largeTickColor"),q=r.getValue("largeTickWidth"),K=r.getValue("largeTickLongness"),J=r.getValue("reverse"),v=r.getValue("cursors"),y=n.x,x=n.y,m=n.width,b=n.height,w=(u&&(h.fillStyle=u,h.fillRect(y,x,m,b)),c-d),k=b,u=(g!==Pe&&g!==Re||(k=m),[{every:W,color:F,longness:j,width:N},{every:z,color:G,longness:Y,width:U},{every:X,color:Z,longness:K,width:q}]);if(J){if(ze(u).call(u,function(e){if(Il(e)){var t=Tl(e.longness,k);if(h.beginPath(),h.strokeStyle=e.color,h.lineWidth=e.width,g===Le||g===Be){var o=y+m-f,a=(m-f-p)*(Il(e)/w),i=g===Le?x:x+b;g===Be&&(t=0-t);for(var n=d;n<=c;n+=Il(e))h.moveTo(o,i),h.lineTo(o,i+t),o-=a}else{var r=x+b-f,l=(b-f-p)*(Il(e)/w),s=g===Pe?y:y+m;g===Re&&(t=0-t);for(var u=d;u<=c;u+=Il(e))h.moveTo(s,r),h.lineTo(s+t,r),r-=l}h.stroke()}}),e){var C=Tl(H,k);if(h.fillStyle=o,h.font=t,g===Le||g===Be){var T=y+m-f+i,$=e/w*(m-f-p),V=(g===Le?x:x+b)+l;g===Be?C=0-C-He(t,"1").height:h.textBaseline="hanging";for(var D=d;D<=c;D+=e){var I=s?s(D):D,S=He(t,I);a===Ae?Sl(h,I,t,o,T-.5*S.width,V+C,S.width,S.height,a,"middle"):a===Re?h.fillText(I,T-He(t,I).width+2,V+C):a===Pe&&h.fillText(I,T,V+C),T-=$}}else{var Q=x+b-f+l,ee=e/w*(b-f-p),te=(g===Pe?y:y+m)+i;h.textBaseline="middle",g===Re&&(C=0-C);for(var L=d;L<=c;L+=e){var oe=s?s(L):L+"";g===Re?h.fillText(oe,te+C-He(t,oe).width+2,Q):h.fillText(oe,te+C,Q),Q-=ee}}}v&&ze(v).call(v,function(e){var t,o=e.value,a=e.color,i=e.size,i=void 0===i?2:i,e=e.drawTop;o=g===Le||g===Be?[y+(t=m-p-f)+f-(o-d)/w*t-i/2,x,i,b]:[y,x+(t=b-f-p)+f-(o-d)/w*t-i/2,m,i],h.fillStyle=void 0===a?"red":a,h.fillRect.apply(h,Ze(o)),e&&e(h,n,{x:o[0],y:o[1],width:o[2],height:o[3]},r,O,E)})}else{if(ze(u).call(u,function(e){if(Il(e)){var t=Tl(e.longness,k);if(h.beginPath(),h.strokeStyle=e.color,h.lineWidth=e.width,g===Le||g===Be){var o=y+f,a=(m-f-p)*(Il(e)/w),i=g===Le?x:x+b;g===Be&&(t=0-t);for(var n=d;n<=c;n+=Il(e))h.moveTo(o,i),h.lineTo(o,i+t),o+=a}else{var r=x+f,l=(b-f-p)*(Il(e)/w),s=g===Pe?y:y+m;g===Re&&(t=0-t);for(var u=d;u<=c;u+=Il(e))h.moveTo(s,r),h.lineTo(s+t,r),r+=l}h.stroke()}}),e){var B=Tl(H,k);if(h.fillStyle=o,h.font=t,g===Le||g===Be){var R=y+f+i,ae=e/w*(m-f-p),ie=(g===Le?x:x+b)+l;g===Be?B=0-B-He(t,"1").height:h.textBaseline="hanging";for(var P=d;P<=c;P+=e){var A=s?s(P):P,_=He(t,A);a===Ae?Sl(h,A,t,o,R-.5*_.width,ie+B,_.width,_.height,a,"middle"):a===Re?h.fillText(A,R-_.width+2,ie+B):a===Pe&&h.fillText(A,R,ie+B),R+=ae}}else{var ne=x+f+l,re=e/w*(b-f-p),le=(g===Pe?y:y+m)+i;h.textBaseline="middle",g===Re&&(B=0-B);for(var M=d;M<=c;M+=e){var se=s?s(M):M+"";g===Re?h.fillText(se,le+B-He(t,se).width+2,ne):h.fillText(se,le+B,ne),ne+=re}}}v&&ze(v).call(v,function(e){var t=e.value,o=e.color,a=e.size,a=void 0===a?2:a,e=e.drawTop;t=g===Le||g===Be?[y+f+(t-d)/w*(m-p-f)-a/2,x,a,b]:[y,x+f+(t-d)/w*(b-f-p)-a/2,m,a],h.fillStyle=void 0===o?"red":o,h.fillRect.apply(h,Ze(t)),e&&e(h,n,{x:t[0],y:t[1],width:t[2],height:t[3]},r,O,E)})}},multilineText:function(o,e,t,a,i){var n=t.getValue("content"),r=t.getValue("font"),l=t.getValue("textAlign"),s=t.getValue("color"),u=t.getValue("lineHeight"),h=t.getColor("background"),c=t.getValue("padding"),d=t.getColor("borderColor"),g=t.getValue("borderWidth"),f=t.getValue("borderRadius"),p=t.getValue("dash"),v=t.getValue("decoration"),t=t.getValue("dashPattern"),y=e.x,x=e.y,m=e.width,e=e.height,b=(c=je(Pi(c),4))[0],w=c[1],k=c[2],c=c[3],C=(f=je(Pi(f),4))[0],T=f[1],V=f[2],f=f[3],D=(o.beginPath(),xe(o,y,x,m,e,C,T,f,V),o.closePath(),Gn(o,{borderWidth:g,borderColor:d,dash:p,dashPattern:t,background:h}),c),I=b,S=0,L=m-c-w,x=(y=n.split(/\n/)).length*u+b+k,e=c+b;ze(y).call(y,function(e){var t=He(r,e);S=Math.max(S,t.width),Ul(o,e,r,s,D,I,L,u,l,"middle",v),I+=u}),e+=S,!a||a.constructor!==ht.Node||a.getWidth()===e&&a.getHeight()===x||(a.setSize(e,x),a.setSize3d(e,100,x))},dateTimePicker2:function(e,t,o,a,i){var n,r,l=o.getValue("value"),s=o.getValue("placeholder"),O=o.getColor("placeholderColor"),u=o.getValue("disabled"),h=o.getValue("borderWidth"),c=o.getColor("borderColor"),d=o.getColor("disabledBorderColor"),g=o.getColor("focusBorderColor"),f=o.getValue("borderRadius"),p=o.getValue("padding"),v=o.getColor("background"),y=o.getColor("disabledBackground"),x=o.getColor("focusBackground")||v,m=o.getValue("icon"),b=o.getValue("iconWidth"),w=o.getValue("iconHeight"),k=o.getValue("iconAlign"),E=o.getValue("font"),H=o.getValue("textAlign"),C=o.getColor("textColor"),T=o.getColor("disabledTextColor"),W=o.getValue("dropDownIcon"),F=o.getColor("dropDownIconColor"),V=o.getValue("dropDownIconWidth"),D=o.getValue("dropDownIconHeight"),I=(o.getValue("seconds"),Ye(i,a,o)),S=I&&I.editing,L=(p=je(Pi(p),4))[0],B=p[1],N=p[2],p=p[3],R=(f=je(Pi(f),4))[0],P=f[1],j=f[2],f=f[3],A=t.x,_=t.y,M=t.width,t=t.height,y=(a?u?(n=y,c=d,C=T,h=h||1):S?(n=x,c=g):n=v:n=v,e.beginPath(),xe(e,A,_,M,t,R,P,f,j),e.closePath(),n&&(e.fillStyle=n,Ue(e).call(e)),(h&&c||S&&h&&g)&&(e.strokeStyle=S?g:c,e.lineWidth=h,e.stroke()),!1),d=(Fe(l)&&(r=l,y=!0),Fe(r)?r:s||""),T=Math.max(0,M-p-B-V-8),x=Math.max(0,t-L-N),v=A+p,R=_+L;y||u||(C=O||Ui.placeholderColor),e.save(),e.beginPath(),e.rect(v,R,T,x),e.clip(),dl(e,d,E,C,m?v+b:v,R,T,x,H,"middle"),e.restore(),m&&(P="left"===k?v:"center"===k?A+.5*(M-b):A+M-b-B,gl(e,fl(m),"uniform",P,.5*(t-w),b,w,a,i)),gl(e,fl(W||"ht.vector.dropDownIcon"),"uniform",A+M-8-V,_+.5*(t-D),V,D,a,i,F),I&&(I.disabled=u,I.dropIconWidth=o.getValue("dropIconWidth"),I.dropIconHeight=o.getValue("dropIconHeight"),I.dropRowHeight=o.getValue("dropRowHeight"),I.dropWidth=o.getValue("dropWidth"),I.dropBackground=o.getValue("dropBackground"),I.dropLabelFont=o.getValue("dropLabelFont"),I.dropLabelColor=o.getValue("dropLabelColor"),I.dropLabelHoverColor=o.getValue("dropLabelHoverColor"),I.dropActiveLabelColor=o.getValue("dropActiveLabelColor"),I.dropActiveBackground=o.getValue("dropActiveBackground"),I.dropHoverBackground=o.getValue("dropHoverBackground"),I.dropMaxHeight=o.getValue("dropMaxHeight"),I.onChange=o.getValue("onChange"),I.dropBorderColor=o.getValue("dropBorderColor"),I.dropBorderWidth=o.getValue("dropBorderWidth"),I.scrollSpeed=o.getValue("scrollSpeed"),I.searchInputVisible=o.getValue("searchInputVisible"),I.selectableFunc=o.getValue("selectableFunc"),I.dateType=o.getValue("dateType"),I.dropDownProperty=o.getValue("dropDownProperty"),I.dropDownBackground=o.getValue("dropDownBackground"),I.dropDownBorderWidth=o.getValue("dropDownBorderWidth"),I.dropDownBorderColor=o.getColor("dropDownBorderColor"),I.dropDownBorderType=o.getValue("dropDownBorderType"),I.dropDownBorderRadius=o.getValue("dropDownBorderRadius"),I.okButtonTextFont=o.getValue("okButtonTextFont"),I.okButtonTextColor=o.getColor("okButtonTextColor"),I.okButtonBackground=o.getColor("okButtonBackground"),I.cancelButtonTextFont=o.getValue("cancelButtonTextFont"),I.cancelButtonTextColor=o.getColor("cancelButtonTextColor"),I.cancelButtonBackground=o.getColor("cancelButtonBackground"),I.timeButtonTextFont=o.getValue("timeButtonTextFont"),I.timeButtonTextColor=o.getColor("timeButtonTextColor"),I.dateRangePaneLabelFont=o.getValue("dateRangePaneLabelFont"),I.dateRangePaneLabelColor=o.getColor("dateRangePaneLabelColor"),I.shortcutListLabelFont=o.getValue("shortcutListLabelFont"),I.shortcutListLabelColor=o.getColor("shortcutListLabelColor"),I.dropBoxBorderWidth=o.getValue("dropBoxBorderWidth"),I.dropBoxBorderColor=o.getColor("dropBoxBorderColor"),I.dropBoxBorderType=o.getValue("dropBoxBorderType"),I.dropBoxBorderRadius=o.getValue("dropBoxBorderRadius"),I.textDisableColor=o.getColor("textDisableColor"),I.hideDropDownButtons=o.getValue("hideDropDownButtons"),I.dropDownSyncZoom=o.getValue("dropDownSyncZoom"),I.searchInputStyle=o.getValue("searchInputStyle"),I.format=o.getValue("format"),I.dropDownStyle=o.getValue("dropDownStyle"),I.langue=o.getValue("langue"),I.autoApply=o.getValue("autoApply"),I.applyText=o.getValue("applyText"),I.cancelText=o.getValue("cancelText"),I.buttonAlign=o.getValue("buttonAlign"),I.buttonGap=o.getValue("buttonGap"),I.delimiter=o.getValue("delimiter"),I.seconds=o.getValue("seconds"))},slider:function(e,t,o,a,i){var n=o.getValue("min"),r=o.getValue("max"),l=o.getValue("value"),s=o.getValue("step"),u=o.getValue("sliderImage"),h=o.getValue("getSliderAttr"),c=o.getValue("sliderBorderWidth"),d=o.getValue("sliderBorderRadius"),g=o.getColor("sliderBorderColor"),f=o.getColor("sliderBackground"),p=o.getValue("sliderWidth"),v=o.getValue("sliderHeight"),y=o.getValue("sliderOffsetX"),x=o.getValue("sliderOffsetY"),m=o.getColor("barBackground"),b=o.getColor("barValueBackground"),w=o.getValue("barGradient"),k=o.getColor("barGradientColor"),C=o.getValue("barWidth"),T=o.getValue("barBorderRadius"),V=o.getValue("padding"),D=o.getValue("disabled"),I=o.getColor("disabledLayerColor"),S=o.getColor("showToolTip"),L=o.getColor("toolTipFormat"),B=Ye(i,a,o),l=Math.min(r,Math.max(n,l)),R=t.x,P=t.y,A=t.width,t=t.height,_=Math.abs(r-n);T<1&&(T*=C),Un(e,V={x:R+V,y:P+(t-C)/2,width:A-2*V,height:C},m,T);(m=ht.Default.clone(V)).width*=(l-n)/_,w&&(b=ht.Default.createGradient(e,w,b,k,V.x,V.y,V.width,V.height)),Un(e,m,b,T),_=m.x+m.width-p/2+y,w=m.y+(C-v)/2+x;u?(k=(k=B._sliderData)||(B._sliderData=new ht.Data),b=h?h(l,a,i):{},h&&k.setAttrObject(b),Yl(e,ht.Default.getImage(u),_,w,p,v,k)):(d<1&&(d*=Math.min(p,v)),e.beginPath(),xe(e,_,w,p,v,d),e.closePath(),e.fillStyle=f,Ue(e).call(e),c&&(e.lineWidth=c,e.strokeStyle=g,e.stroke())),D&&(e.fillStyle=I,e.fillRect(R,P,A,t)),B&&(B.disabled=D,B.value=l,B.max=r,B.min=n,B.step=s,B.showToolTip=S,B.toolTipFormat=L,B.barRect=V,B.onChange=o.getValue("onChange"),B.sliderRect={x:_,y:w,width:p,height:v})},rangeSlider:function(e,t,o,a,i){var n=o.getValue("min"),r=o.getValue("max"),l=o.getValue("value"),s=o.getValue("step"),u=o.getValue("sliderImage"),h=o.getValue("sliderBorderWidth"),c=o.getValue("sliderBorderRadius"),d=o.getColor("sliderBorderColor"),g=o.getColor("sliderBackground"),f=o.getValue("sliderWidth"),p=o.getValue("sliderHeight"),v=o.getValue("sliderOffsetX"),y=o.getValue("sliderOffsetY"),x=o.getColor("barBackground"),m=o.getColor("barValueBackground"),b=o.getValue("barGradient"),w=o.getColor("barGradientColor"),k=o.getValue("barWidth"),C=o.getValue("barBorderRadius"),T=o.getValue("padding"),V=o.getValue("disabled"),D=o.getColor("disabledLayerColor"),I=o.getColor("showToolTip"),S=o.getColor("toolTipFormat"),i=Ye(i,a,o),a=t.x,L=t.y,B=t.width,t=t.height,R=(P=je(l,2))[0],P=P[1],R=Math.max(n,R),P=Math.min(r,P),A=Math.abs(r-n);C<1&&(C*=k),Un(e,T={x:a+T,y:L+(t-k)/2,width:B-2*T,height:k},x,C);(x=ht.Default.clone(T)).width*=(P-R)/A,x.x+=(R-n)/A*T.width,b&&(m=ht.Default.createGradient(e,b,m,w,T.x,T.y,T.width,T.height)),Un(e,x,m,C),P=x.x-f/2+v,R=x.x+x.width-f/2+v,A=x.y+(k-p)/2+y;u?(Xl(e,ht.Default.getImage(u),P,A,f,p),Xl(e,ht.Default.getImage(u),R,A,f,p)):(c<1&&(c*=Math.min(f,p)),e.beginPath(),xe(e,P,A,f,p,c),e.closePath(),e.fillStyle=g,Ue(e).call(e),h&&(e.lineWidth=h,e.strokeStyle=d,e.stroke()),e.beginPath(),xe(e,R,A,f,p,c),e.closePath(),e.fillStyle=g,Ue(e).call(e),h&&(e.lineWidth=h,e.strokeStyle=d,e.stroke())),V&&(e.fillStyle=D,e.fillRect(a,L,B,t)),i&&(i.disabled=V,i.value=l,i.max=r,i.min=n,i.step=s,i.valueBarDraggable=o.getValue("valueBarDraggable"),i.onChange=o.getValue("onChange"),i.showToolTip=I,i.toolTipFormat=S,i.barRect=T,i.valueBarRect=x,i.sliderRect={x:P,y:A,width:f,height:p},i.sliderRect2={x:R,y:A,width:f,height:p})},multipleComboBox:function(n,e,t,o,a){var r,l,s,u,h,O,E,H,W,F,i,c=t.getValue("value"),d=t.getValue("dataSource"),N=t.getValue("placeholder"),j=t.getValue("disabled"),g=t.getValue("borderWidth"),f=t.getColor("borderColor"),p=t.getColor("focusBorderColor"),v=t.getValue("borderRadius"),y=t.getColor("background"),x=t.getColor("focusBackground")||y,z=t.getColor("disabledLayerColor"),m=t.getValue("itemFont"),G=t.getColor("itemTextColor"),b=t.getColor("itemBorderWidth"),U=t.getColor("itemBorderColor"),Y=t.getColor("itemBorderRadius"),X=t.getColor("itemBackground"),Z=t.getColor("itemGradient"),q=t.getColor("itemGradientColor"),K=t.getValue("itemPadding"),J=t.getValue("itemHGap"),$=t.getValue("itemVGap"),Q=t.getValue("closeIconOnLeft"),w=t.getValue("closeIconSize"),ee=t.getColor("closeIconColor"),k=t.getValue("padding"),C=Ye(a,o,t),te=t.getValue("placeholderColor"),T=C&&C.editing,oe=t.getValue("translateY")||0,ae=t.getValue("translateX")||0,ie=t.getValue("scrollable"),ne=t.getValue("autoHideScrollBar"),re=t.getColor("scrollBarColor"),le=t.getValue("scrollBarWidth"),se=t.getValue("scrollBarWidthAbsolute"),ue=t.getValue("XscrollBarMinWidth"),he=t.getValue("YscrollBarMinHeight"),V=e.x,D=e.y,I=e.width,e=e.height,S=(k=je(Pi(k),4))[0],L=k[1],B=k[2],k=k[3],ce=(v=je(Pi(v),4))[0],de=v[1],ge=v[2],v=v[3],R=(o&&T?(i=x,f=p):i=y,n.beginPath(),xe(n,V,D,I,e,ce,de,v,ge),n.closePath(),i&&(n.fillStyle=i,Ue(n).call(n)),(g&&f||T&&g&&p)&&(n.strokeStyle=T?p:f,n.lineWidth=g,n.stroke()),[]),fe=(c&&d&&ze(c).call(c,function(e){for(var t=0;t<d.length;t++)if(e===d[t].value){R.push(d[t]);break}}),[]),P=(x=je(Pi(K),4))[0],pe=x[1],A=x[2],_=x[3],ve=[V+k-b/2,D+S-b/2,I-k-L+b,e-S-B+b+1],M=(n.save(),n.beginPath(),n.rect.apply(n,ve),n.clip(),1),ye=0;0<R.length?(s=(l=[V+k+b/2+ae,D+S+b/2+oe,I-k-L-b,e-S-B-b])[0],u=l[1],h=0,y=je(Pi(Y),4),O=y[0],E=y[1],H=y[2],W=y[3],F=X,ze(R).call(R,function(e){var t=e.label||e.value,o=He(m,t),a=(r=r||o.height,h&&s+o.width+J+b+7>l[0]+l[2]&&(s=l[h=0],u+=r+$+b+P+A,M++),[s,u,o.width+_+pe+w+2,o.height+P+A]),i=(b&&(n.beginPath(),n.strokeStyle=U,xe.apply(void 0,Ee(i=[n]).call(i,a,[O,E,W,H])),n.closePath(),X&&(Z&&q&&(F=ql.apply(void 0,Ee(i=[n,Z,X,q]).call(i,a))),n.fillStyle=F,Ue(n).call(n)),n.stroke()),[a[0]+_+o.width+2,a[1]+P,w,a[3]-A-P]);Q&&(i[0]=a[0]+_,a[0]+=w+2),a[2]=a[2]-w-2,fe.push({value:e.value,rect:i}),n.beginPath(),n.strokeStyle=ee,n.lineCap="round",n.moveTo(i[0],i[1]+(i[3]-w)/2),n.lineTo(i[0]+i[2],i[1]+(i[3]-w)/2+w),n.moveTo(i[0]+i[2],i[1]+(i[3]-w)/2),n.lineTo(i[0],i[1]+(i[3]-w)/2+w),n.stroke(),Zl.apply(void 0,Ee(e=[n,t,m,G]).call(e,a,["center","middle"])),s+=o.width+J+b+_+pe+w+2,ye=Math.max(ye,-ae+s-ve[0]+L),h++})):N&&(i=He(m,N),T=[V+k,D+S,I-k-L,i.height+P+A],Zl.apply(void 0,Ee(p=[n,N,m,te||Ui.placeholderColor]).call(p,T,["left","middle"])),r=i.height),n.restore(),j&&(f=[V-g/2,D-g/2,I+g,e+g],n.save(),n.beginPath(),xe.apply(void 0,Ee(K=[n]).call(K,f,[ce,de,v,ge])),n.clip(),n.fillStyle=z,Ue(n).call(n),n.restore()),o&&(o.__suggestHeight=S+B+(P+A+r)*M+$*(M-1)),C&&(C.value=c,C.valueItemInfo=fe,C.disabled=j,C.dataSource=d,C.dropIconWidth=t.getValue("dropIconWidth"),C.dropIconHeight=t.getValue("dropIconHeight"),C.dropRowHeight=t.getValue("dropRowHeight"),C.dropWidth=t.getValue("dropWidth"),C.dropBackground=t.getValue("dropBackground"),C.dropLabelFont=t.getValue("dropLabelFont"),C.dropLabelColor=t.getValue("dropLabelColor"),C.dropActiveLabelColor=t.getValue("dropActiveLabelColor"),C.dropActiveBackground=t.getValue("dropActiveBackground"),C.dropHoverBackground=t.getValue("dropHoverBackground"),C.dropMaxHeight=t.getValue("dropMaxHeight"),C.onChange=t.getValue("onChange"),C.hideSelected=t.getValue("hideSelected"),C.maxSelection=t.getValue("maxSelection"),C.pannable=t.getValue("pannable"),C.scrollBarInteractiveSize=t.getValue("scrollBarInteractiveSize"),C.scrollSpeed=t.getValue("scrollSpeed"),C.autoHideScrollBar=ne,C.dropDownSyncZoom=t.getValue("dropDownSyncZoom")),o&&C&&ie&&(C.bodyRect=x={x:V,y:D,width:I,height:e},Y={width:ye,height:0<M?(r+b+P+A)*M+$*(M-1)+S+B:0},y={x:ae,y:oe},k=a&&a.getZoom?a.getZoom():1,Pl(n,x,Y,y,{visible:!ne||C.scrollBarVisible,color:re,barWidth:se?le/k:le,gap:2/k,XscrollBarMinWidth:ue,YscrollBarMinHeight:he},C))},richTextPane:function(s,e,t,u,h){var c,o=t.getValue("content"),a=t.getColor("background"),i=t.getValue("bgGradient"),n=t.getColor("bgGradientColor"),r=t.getValue("showArrow"),d=t.getValue("arrowOrientation"),l=t.getValue("arrowPosition"),g=t.getValue("padding"),f=t.getValue("vGap"),p=t.getValue("hGap"),v=t.getValue("font"),y=t.getValue("color"),x=t.getColor("borderColor"),m=t.getValue("borderWidth")||0,b=t.getValue("dash"),w=t.getValue("dashPattern"),k=t.getValue("vAlign"),g=(t=je(Pi(g),4))[0],C=(t[1],t[2],t[3]),T=e.x+m/2,t=e.y+m/2,V=e.width-m,e=e.height-m,D=[T,t,V,e];s.save(),r?(s.beginPath(),D=Be===d?(r=V-10,s.moveTo(T,t),s.lineTo(T+V,t),s.lineTo(T+V,t+e-10),s.lineTo(T+r*l+10,t+e-10),s.lineTo(T+r*l+5,t+e),s.lineTo(T+r*l,t+e-10),s.lineTo(T,t+e-10),s.closePath(),[T,t,V,e-10]):Pe===d?(r=e-10,s.moveTo(T+10,t),s.lineTo(T+V,t),s.lineTo(T+V,t+e),s.lineTo(T+10,t+e),s.lineTo(T+10,t+r*l+10),s.lineTo(T,t+r*l+5),s.lineTo(T+10,t+r*l),s.closePath(),[T+10,t,V-10,e]):Re===d?(r=e-10,s.moveTo(T,t),s.lineTo(T+V-10,t),s.lineTo(T+V-10,t+r*l),s.lineTo(T+V,t+r*l+5),s.lineTo(T+V-10,t+r*l+10),s.lineTo(T+V-10,t+e),s.lineTo(T,t+e),s.closePath(),[T,t,V-10,e]):(s.moveTo(T+(r=V-10)*l,t+10),s.lineTo(T+r*l+5,t),s.lineTo(T+r*l+10,t+10),s.lineTo(T+V,t+10),s.lineTo(T+V,t+e),s.lineTo(T,t+e),s.lineTo(T,t+10),s.closePath(),[T,t+10,V,e-10])):(s.beginPath(),s.rect(T,t,V,e)),Gn(s,{borderWidth:m,borderColor:x,background:a,bgGradient:i,bgGradientColor:n,contentRect:D,dash:b,dashPattern:w}),a&&(i&&(a=(r=ht.Default).createGradient.apply(r,Ee(l=[s,i,a,n]).call(l,Ze(D)))),s.fillStyle=a,Ue(s).call(s)),x&&m&&(s.lineWidth=m,s.strokeStyle=x,s.stroke()),s.textAlign="left",o&&(o.length,c=t+g+(d===Le?10:0),ze(o).call(o,function(e,t){var n=T+C+(d===Pe?10:0),r=0,l=(o.length,[]);ze(e).call(e,function(e,t){var o=zn(e.text,u,h),e=He(e.font||v,o);r=Math.max(r,e.height),e.width,l[t]=e.width}),ze(e).call(e,function(e,t){var o=zn(e.text,u,h),a=zn(e.font,u,h)||v,i=zn(e.vAlign,u,h)||k;s.fillStyle=zn(e.color,u,h)||y,s.font=a,"top"===(s.textBaseline=i)?s.fillText(o,n,c):"middle"===i?s.fillText(o,n,c+r/2):s.fillText(o,n,c+r),n+=l[t]+p}),c+=f+r})),s.restore()},textBox:function(o,e,t,O,a){var i=t.getValue("content"),E=t.getValue("autoScale"),n=t.getValue("font"),r=t.getValue("wordBreak"),l=t.getValue("vAlign"),s=t.getColor("color"),u=t.getValue("lineHeight"),h=t.getValue("textAlign"),c=t.getValue("padding"),d=t.getColor("background"),H=t.getValue("fillContent"),g=t.getColor("borderColor"),f=t.getValue("borderWidth"),p=t.getValue("borderRadius"),W=t.getValue("dash"),v=t.getValue("dashPattern"),F=t.getValue("bgGradient"),N=t.getColor("bgGradientColor"),j=t.getValue("translateX"),z=t.getValue("translateY"),G=t.getColor("scrollBarColor"),U=t.getValue("scrollable"),Y=t.getValue("autoHideScrollBar"),X=t.getValue("scrollBarWidth"),Z=t.getValue("scrollBarWidthAbsolute"),q=t.getValue("underline"),y=(c=je(Pi(c),4))[0],K=c[1],J=c[2],c=c[3],x=(p=je(Pi(p),4))[0],m=p[1],b=p[2],p=p[3],w=(o.save(),o.beginPath(),o.rect(e.x,e.y,e.width,e.height),o.clip(),{x:e.x+f/2,y:e.y+f/2,width:e.width-f,height:e.height-f});if(o.beginPath(),xe(o,w.x,w.y,w.width,w.height,x,m,p,b),o.closePath(),Gn(o,{borderWidth:f,borderColor:g,dash:W,dashPattern:v,background:d,bgGradient:F,bgGradientColor:N,contentRect:[w.x,w.y,w.width,w.height]}),i&&O){o.save();var $,Q,x=e.x,m=e.y,k=x+c,C=m+y,T=Aa(e.width)-c-K,V=Aa(e.height)-y-J,D=Ei(i,n,T,r);if(E&&D.length*u>V){var I,ee,S,L,B,p=T+"-"+V+n+u,b=Lh[p],te=0,oe=0;if((b=b||(Lh[p]={}))&&b[i])L=(I=b[i])*u,B=Aa(T*(ee=1/I)),Aa(V*ee),D=Ei(i,n,B,r);else{for(;te<4;){if(L=(I=Math.sqrt(V/((D.length+oe)*u)))*u,B=Aa(T*(ee=1/I)),Aa(V*ee),(S=Ei(i,n,B,r)).length*L>V)oe+=Math.ceil((S.length*L-V)/L+.5);else{if(!(S.length*L<V&&Math.abs(V-S.length*L)>2*L)){D=S;break}oe-=Math.floor((V-S.length*L)/L)}4==++te&&(D=S)}b[i]=I}k=x+c,C=m+y,l===Be?C=C+V-L*D.length:l===_e&&(C+=(V-L*D.length)/2),o.save(),o.translate(k,C),o.scale(I,I),k=C=0,ze(D).call(D,function(e,t){ht.Default.drawText(o,e,n,s,k,C,B,u,h,l),q&&(e=He(n,e),Sh(o,{x:k,y:C,height:u,width:B},e.width,h,s)),C+=u}),o.restore()}else if(H&&(D.length+1)*u<V){var R,P,A,_,ae,M,f=T+"-"+V+n+u,g=(g=Lh[f])||(Lh[f]={}),ie=0,l="top";if(g&&g[i])R=g[i],_=R*u,M=Aa(T*(P=1/R)),Aa(V*P),o.scale(R,R),D=Ei(i,n,M,r);else{for(var ne=Math.sqrt(V/(D.length*u));ie<4;){if(_=(R=ne)*u,M=Aa(T*(P=1/R)),Aa(V*P),ae&&o.scale(ae,ae),o.scale(R,R),!((A=Ei(i,n,M,r)).length*_>V||A.length*_<V&&V-A.length*_>.8*_)){D=A;break}ae=P,ne*=Math.sqrt(V/(A.length*_)),4==++ie&&(D=A)}g[i]=R}k=(x+c)*P,C=(m+y)*P,ze(D).call(D,function(e,t){ht.Default.drawText(o,e,n,s,k,C,M,_,h,l),q&&(e=He(n,e),Sh(o,{x:k,y:C,height:u,width:M},e.width,h,s)),C+=u})}else!E&&U?(W=x+c,$=(v=m+y)-u,Q=v+V+u,o.save(),o.beginPath(),o.rect(W,v,T,V),o.clip(),C+=z,ze(D).call(D,function(e,t){$<=C&&C<Q&&(ht.Default.drawText(o,e,n,s,k,C,T,u,h,l),q)&&(e=He(n,e),Sh(o,{x:k,y:C,height:u,width:T},e.width,h,s)),C+=u}),o.restore(),d=Ye(a,O,t),F=T,N=D.length*u,w=a&&a.getZoom?a.getZoom():1,K=Z?X/w:X,d&&(d.translateX=j,d.translateY=z,d.autoHideScrollBar=Y),Pl(o,{x:k,y:m+y,width:T,height:V},{width:F,height:N},{x:j,y:z},{visible:!Y||d.scrollBarVisible,color:G,gap:0,barWidth:K},d||{})):("middle"===l?C+=(V-D.length*u)/2:"bottom"===l&&(C+=V-D.length*u),ze(D).call(D,function(e,t){ht.Default.drawText(o,e,n,s,k,C,T,u,h,l),q&&(e=He(n,e),Sh(o,{x:k,y:C,height:u,width:T},e.width,h,s)),C+=u}));o.restore()}o.restore()},textEllipsis:function(e,t,o,a,i){var n=o.getValue("content"),r=o.getValue("font"),l=o.getValue("align"),s=o.getValue("vAlign"),u=o.getColor("color"),h=o.getValue("padding"),c=o.getColor("background"),d=o.getColor("borderColor"),g=o.getValue("borderWidth"),f=o.getValue("borderRadius"),p=o.getValue("dash"),v=o.getValue("dashPattern"),y=o.getValue("bgGradient"),o=o.getColor("bgGradientColor"),x=(h=je(Pi(h),4))[0],m=h[1],b=h[2],h=h[3],w=(f=je(Pi(f),4))[0],k=f[1],C=f[2],f=f[3];e.beginPath(),xe(e,t.x,t.y,t.width,t.height,w,k,f,C),e.closePath(),Gn(e,{borderWidth:g,borderColor:d,dash:p,dashPattern:v,background:c,bgGradient:y,bgGradientColor:o,contentRect:[t.x,t.y,t.width,t.height]});var T=(w=[t.x+h,t.y+x,t.width-h-m,t.height-x-b])[2],V="";if(T<He(r,n).width)for(var D=0;D<n.length;D++)if(V+=n[D],T<He(r,V+"...").width){n=(V=Me(V).call(V,0,-1))+"...";break}(k=ht.Default).drawText.apply(k,Ee(f=[e,n,r,u]).call(f,w,[l,s]))},verticalTextBox:function(a,e,t,O,E){var o=t.getValue("content"),i=t.getValue("font"),n=t.getColor("color"),r=t.getValue("padding"),l=t.getValue("startOnRight"),s=t.getColor("background"),u=t.getColor("borderColor"),h=t.getValue("borderWidth"),c=t.getValue("borderRadius"),d=t.getValue("dash"),g=t.getValue("dashPattern"),f=t.getValue("bgGradient"),p=t.getColor("bgGradientColor"),v=t.getValue("wordBreak"),y=t.getValue("vGap"),x=t.getValue("hGap"),m=t.getValue("autoWrap"),t=t.getValue("fillContent"),b=(r=je(Pi(r),4))[0],w=r[1],H=r[2],r=r[3],k=(c=je(Pi(c),4))[0],C=c[1],W=c[2],c=c[3];if(a.beginPath(),xe(a,e.x,e.y,e.width,e.height,k,C,c,W),a.closePath(),Gn(a,{borderWidth:h,borderColor:u,dash:d,dashPattern:g,background:s,bgGradient:f,bgGradientColor:p,contentRect:[e.x,e.y,e.width,e.height]}),o){var T,V,k={x:e.x+r,y:e.y+b,width:e.width-r-w,height:e.height-b-H},C=k.x,D=k.y,I=k.width,S=k.height,L=m?Bh(o,i,S,y,v):[o],B=He(i,"图"),R=B.width,P=B.height;if(a.save(),t){var A=L.length*(Number(R)+Number(x)),c=/(\d+)([\S\s]+)/.exec(i),_=c[1],M=c[2];if(A<I){for(;A<I;)L=Bh(o,i=++_+M,S,y,v),B=He(i,"图"),R=B.width,P=B.height,A=L.length*(Number(R)+Number(x));L=Bh(o,i=--_+M,S,y,v),B=He(i,"图"),R=B.width,P=B.height,A=L.length*(Number(R)+Number(x))}else if(I<A){for(;I<A&&1<=_;)L=Bh(o,i=--_+M,S,y,v),B=He(i,"图"),R=B.width,P=B.height,A=L.length*(Number(R)+Number(x));L=Bh(o,i=_+M,S,y,v),B=He(i,"图"),R=B.width,P=B.height,A=L.length*(Number(R)+Number(x))}}a.fillStyle=n,a.textAlign="start",a.textBaseline="top",a.font=i,l?(T=C+I-R,V=D,ze(L).call(L,function(e){for(var t=0;t<e.length;t++){var o=e[t];a.fillText(o,T,V),V+=y+P}V=D,T=T-R-x})):(T=C,V=D,ze(L).call(L,function(e){for(var t=0;t<e.length;t++){var o=e[t];a.fillText(o,T,V),V+=y+P}V=D,T+=R+x})),a.restore()}},tree:function(h,c,e,d,g){var f,p,v,t=e.getValue("dataSource"),y=e.getValue("itemHeight"),x=e.getValue("getItemHeight"),m=e.getValue("badgeHeight"),b=e.getValue("badgeSpace"),w=e.getValue("badgeRadius"),k=e.getValue("translateX"),o=e.getValue("translateY"),a=e.getValue("borderWidth"),C=e.getValue("rowLineWidth"),O=e.getValue("treeFont"),E=e.getValue("badgeFont"),T=e.getColor("textColor"),V=e.getColor("hoverBackColor"),H=e.getColor("hoverTextColor"),D=e.getColor("selectBackColor"),W=e.getColor("selectTextColor"),i=e.getColor("backColor"),F=e.getColor("borderColor"),N=e.getValue("rowLineColor"),j=e.getValue("showLine"),I=e.getValue("showCheckbox"),z=(e.getValue("checkAll"),e.getValue("showIcon")),G=e.getValue("showBadge"),S=e.getValue("visibleFunc")||function(){return!0},L=e.getColor("itemBackColor"),U=e.getValue("showToggleIcon"),n=e.getValue("borderRadius")||0,r=Ye(g,d,e),l=null,B=null,s=c.x,u=c.y,R=c.width,P=c.height,A=0,_=-C,M={togglesRect:[],visibleRowsRect:[],checksRect:[],badgesRect:[]};r&&(r.treeTableDataModel?l=r.treeTableDataModel:(l=new kh,r.treeTableDataModel=l),l.reset(e,c),l.init(t),0===t.length&&l.clear(),I)&&l.eachByBreadthFirst(function(e){e.a("checked")&&(e.checkAfter(),e.checkBefore())}),l&&(f=l.getTreeIconInfo(e),i&&(h.save(),h.fillStyle=i,h.beginPath(),ht.Default.drawRoundRect(h,s+a/2,u+a/2,R-a,P-a,n),h.closePath(),Ue(h).call(h),h.restore()),h.save(),h.font=O,h.fillStyle=T,h.textBaseline="top",h.textAlign="start",p=2*h.measureText("e").width,h.beginPath(),ht.Default.drawRoundRect(h,s,u,R,P,n),h.clip(),v=[],l.getRoots().each(function e(t){var o,a,i,n,r,l,s,u;(S(t.a("dataInfo"))||dh(t.a("dataInfo"),S))&&(t.a("treeTextWH",{textWidth:h.measureText(t.a("text")).width+2,textHeight:p}),t.initNodeRect(B,d,g),o=(B=t).a("rowRect"),s=(l=t.a("treeTextRect")).x,l=l.width,o={x:o.x-k,y:o.y,width:o.width,height:o.height},_+=(x?x(t.a("dataInfo",d,g)):y)+C,A=Math.max(A,s-k+l),Ch(c,o)&&(s=t.a("_isHovering"),l=t.a("selected"),a=t.a("disabled"),L&&(u=o.x,i=o.y,n=o.width,r=o.height,h.save(),h.fillStyle=L,h.fillRect(u,i,n,r+1),h.restore()),V&&s&&(u=o.x,i=o.y,n=o.width,r=o.height,h.save(),h.fillStyle=V,h.fillRect(u,i,n,r),h.restore()),D&&l&&(s=o.x,u=o.y,i=o.width,n=o.height,h.save(),h.fillStyle=D,h.fillRect(s,u,i,n),h.restore()),U&&t.drawTreeToggleIcon(h,d,g,f,M),I&&t.drawTreeCheckIcon(h,d,g,f,M),z&&t.drawTreeIcon(h,d,g,f),G&&t.drawTreeBadge(h,d,g,{badgeFont:E,badgeHeight:m,badgeSpace:b,badgeRadius:w},M),t.drawTreeText(h,d,g,{textColor:T,selectTextColor:W,hoverTextColor:H}),a&&(r=o.x,l=o.y,s=o.width,u=o.height,h.save(),h.fillStyle="rgba(192, 192, 192, 0.5)",h.fillRect(r,l,s,u),h.restore()),t.drawRowLine(h,{rowLineWidth:C,rowLineColor:N},o),M.visibleRowsRect.push({node:t,visibleRowRect:o}),v.push(t)),t.a("expanded"))&&t.getChildren().each(e)}),j&&l.drawTreeCable(h,v,S),l.drawBorder(h,F),h.restore(),r&&(r.translateX=k,r.translateY=o,r.rectInfo=M),l.drawScrollBar(h,e,g,r,A,_,{x:s+a,y:u+a,width:R-2*a,height:P-2*a}))},treeTable:function(m,b,w,k,C){var f=w.getValue("dataSource"),T=w.getValue("translateX"),p=w.getValue("translateY"),e=w.getValue("borderWidth"),v=w.getColor("borderColor"),y=w.getValue("columnLineWidth"),x=w.getColor("columnLineColor"),V=w.getValue("rowLineWidth"),N=w.getColor("rowLineColor"),t=w.getValue("showLine"),D=w.getValue("showCheckbox"),j=w.getValue("showIcon"),z=w.getColor("lineColor"),o=w.getValue("showHead"),a=w.getValue("thHeight"),G=w.getValue("tdHeight"),I=w.getValue("tdFont"),U=w.getColor("thColor"),S=w.getColor("tdColor"),Y=w.getColor("thBackground"),X=w.getColor("tdBackground"),L=w.getValue("visibleFunc")||function(){return!0},Z=w.getValue("drawRow"),B=w.getColor("hoverTextColor"),R=w.getColor("hoverBackColor"),P=w.getColor("selectTextColor"),A=w.getColor("selectBackColor"),i=Ye(C,k,w),n=null,_=null,r=b.x,l=b.y,s=b.width,u=b.height,h=0,M=o?0:-V,O={togglesRect:[],visibleRowsRect:[],checksRect:[],headCellsRect:[]};if(i&&(i.treeTableDataModel?n=i.treeTableDataModel:(n=new kh,i.treeTableDataModel=n),n.reset(w,b,i),n.init(f),D)&&n.eachByBreadthFirst(function(e){e.a("checked")&&(e.checkAfter(),e.checkBefore())}),n){for(var q=n.a("visibleColumns"),E=n.getTreeIconInfo(w),K=n.a("treeColumnIndex"),H=(m.save(),t&&(m.strokeStyle=z,m.setLineDash([1,1]),m.lineWidth=.5,m.lineJoin="miter"),m.font=I,m.fillStyle=S,m.textBaseline="top",m.textAlign="start",2*m.measureText("e").width),W=(m.beginPath(),m.rect(r,l,s,u),m.clip(),0),F=[],c=(m.save(),m.beginPath(),m.rect(r+e,l+e+(o?a:0),b.width-2*e,u-2*e-(o?a:0)),m.clip(),n.getRoots().each(function e(t){if(L(t.a("dataInfo"))){t.a("treeTextWH",{textWidth:m.measureText(t.a("text")).width+2,textHeight:H}),t.initNodeRect(_),W++;var o={x:(o=(_=t).a("rowRect")).x-T,y:o.y,width:o.width,height:o.height};if(M+=G+V,Th(b,o)){var a,i,n,r=t.a("cellsRect"),l=r.length,s=t.a("_isHovering"),u=t.a("selected"),h=t.a("disabled");if(t.drawTableRow(m,{comp:w,visibleRowRect:o,tdBackground:X,drawRow:Z}),R&&s&&(s=o.x,i=o.y,n=o.width,a=o.height,m.save(),m.fillStyle=R,m.fillRect(s,i,n,a),m.restore()),A&&u&&(s=o.x,i=o.y,n=o.width,a=o.height,m.save(),m.fillStyle=A,m.fillRect(s,i,n,a),m.restore()),0<l)for(var c=0;c<l;c++){var d=r[c],g=d.x,f=d.y,p=d.width,v=d.height,y=q[c],x=t.getTextColor({textColor:S,hoverTextColor:B,selectTextColor:P},y);m.save(),m.beginPath(),x!==S&&(m.fillStyle=x),c==K?(m.rect(g,b.y,p,b.height),m.clip(),t.drawTreeToggleIcon(m,k,C,E,O),D&&t.drawTreeCheckIcon(m,k,C,E,O),j&&t.drawTreeIcon(m,k,C,E),t.drawTreeText(m,k,C,{textColor:x,selectTextColor:P,hoverTextColor:B})):(m.rect(g,f,p,v),m.clip(),t.drawTableCell(m,{comp:w,data:k,column:y,cellRect:d,tdFont:I,tdColor:x,colIndex:c,textHeight:H,visibleRowIndex:W})),m.restore()}h&&(u=o.x,s=o.y,i=o.width,n=o.height,m.save(),m.fillStyle="rgba(192, 192, 192, 0.5)",m.fillRect(u,s,i,n),m.restore()),t.drawRowLine(m,{rowLineWidth:V,rowLineColor:N},o),O.visibleRowsRect.push({node:t,visibleRowRect:o}),F.push(t)}t.a("expanded")&&t.getChildren().each(e)}}),m.restore(),t&&n.drawTreeCable(m,F,L),n.drawTableHead(m,i,{comp:w,data:k,columnLineColor:x,thColor:U,thBackground:Y}),n.drawBorder(m,v),n.drawDragColumnLine(m,i),m.restore(),n.a("columnsRect")),d=0,g=c.length;d<g;d++)h+=c[d].width,d!==g-1&&(h+=y);i&&(i.translateX=T,i.translateY=p,i.rectInfo=O),n.drawScrollBar(m,w,C,i,h,M,{x:r+e,y:l+e+(o?a:0),width:s-2*e,height:u-2*e-(o?a:0)})}},chart:function(t,e,o,a,i){var n,r,l,s,u,h,c=o.getValue("series"),d=o.getValue("xAxis"),g=o.getValue("yAxis"),f=o.getValue("colors"),p=o.getColor("background"),v=o.getValue("backgroundIncludeAxis"),y=o.getValue("onRectSelected"),x=o.getValue("onXAxisLabelClicked"),m=o.getValue("rectSelectBorderColor"),b=o.getValue("rectSelectBackground"),w=o.getValue("boundaryGap"),k=o.getValue("tooltipPointerType"),C=o.getValue("onItemClicked"),T=o.getValue("hoverDraw"),k={show:o.getValue("tooltip"),lineWidth:o.getValue("tooltipLineWidth"),lineColor:o.getColor("tooltipLineColor"),type:"auto"===k?w?"shadow":"line":k,formatter:o.getValue("tooltipFormatter"),drawTooltip:o.getValue("drawTooltip")};c&&c.length&&(n={color:f&&f.length?f:rg,xAxis:Pd(d,ng),yAxis:Pd(g,ig),series:c,tooltip:k,onRectSelected:y,onXAxisLabelClicked:x,rectSelectBorderColor:m,rectSelectBackground:b,onItemClicked:C,hoverDraw:T},r={data:a,view:i,boundaryGap:w,rect:e,contentRect:hg(e),valueAxis:he,seriesDatas:Ge(c).call(c,function(e){return!1===e.visible?[]:zn(e.data,a,i)}),seriesColors:[],interactiveInfo:{}},ze(f=n.xAxis).call(f,function(e){e._axisObj=new sg(e,n,r)}),ze(d=n.yAxis).call(d,function(e){e._axisObj=new ug(e,n,r)}),Rd(n,r),a&&(g=Ye(i,a,o))&&(r.hoverIndex=(k=g).hoverIndex,r._dragging=k._dragging,r.rectPoint1=k.rectPoint1,r.rectPoint2=k.rectPoint2,k._dragging)&&k.rectPoint1&&k.rectPoint2&&(r.selectRect=cg(k.rectPoint1,k.rectPoint2)),p&&(v||(e=r.bounds.bodyRect),t.fillStyle=ir(t,p,e),t.fillRect(e.x,e.y,e.width,e.height)),ze(y=n.yAxis).call(y,function(e){e._axisObj.draw(t)}),ze(x=n.xAxis).call(x,function(e){e._axisObj.draw(t)}),c&&c.length&&(l=t,u=r,C=(s=n).series,T=s.hoverDraw,w=u.interactiveInfo.axisInfos=Ge(w=s.xAxis).call(w,function(e){return Ge(e=e._axisObj.axisInfos).call(e,function(e){return{position:e.position,label:e.label,series:[]}})}),u.barSeries=[],u.barStackMap={},u.barStackCount=0,u.barCategoryGap=null,u.diffPointsList=[],u.labelInfo=[],ze(C).call(C,function(e,t){var o;e.type!==on&&e.type!==rn&&e.type!==ln||!1===e.visible||((e.stack?((o=u.barStackMap[e.stack])||(o=u.barStackMap[e.stack]={stackData:[],series:[]},u.barStackCount++),o.series):u.barSeries).push(e),Fe(e.barCategoryGap)&&(u.barCategoryGap=e.barCategoryGap))}),ze(C).call(C,function(e,t){var o,a=e.type;a===an?o=Qd:a===on?o=eg:a===nn?o=tg:a!==rn&&a!==ln||(o=og),o&&o(l,e,t,s,u)}),ze(C).call(C,function(e,t){e=e.label||{};e.show&&ag(l,e,u.labelInfo[t])}),void 0!==u.hoverIndex)&&(C=w[0][u.hoverIndex])&&(C=C.position,f=u.bounds.bodyRect,T&&"function"==typeof T?(l.save(),h={x:C-(h=f.width/w[0].length)/2,y:f.y,width:h,height:f.height},T(l,h,u.data,u.view,{index:u.hoverIndex}),l.restore()):"shadow"===s.tooltip.type?(T=f.width/w[0].length,l.save(),l.globalAlpha=.3,l.fillStyle=s.tooltip.lineColor,l.fillRect(C-T/2,f.y,T,f.height),l.restore()):(l.strokeStyle=s.tooltip.lineColor,l.lineWidth=s.tooltip.lineWidth,l.beginPath(),l.moveTo(C,f.y),l.lineTo(C,f.y+f.height),l.stroke()),u._hoverHandlers)&&(w=(h=u.bounds.bodyRect).x,T=h.y,C=h.width,f=h.height,l.save(),l.beginPath(),l.rect(w,T,C,f),l.clip(),ze(h=u._hoverHandlers).call(h,function(e){e()}),l.restore()),r.selectRect&&(g=(d=r.selectRect).x,k=d.y,v=d.width,p=d.height,t.fillStyle=b,t.fillRect(g,k,v,p),t.strokeStyle=m,t.strokeRect(g,k,v,p)),ze(e=n.xAxis).call(e,function(e){e._axisObj.drawMarkLine(t)}),ze(y=n.yAxis).call(y,function(e){e._axisObj.drawMarkLine(t)}),a)&&((x=Ye(i,a,o)).ui=r,x.option=n,x.tooltipOffsetX=o.getValue("tooltipOffsetX"),x.tooltipOffsetY=o.getValue("tooltipOffsetY"))},radioButton:function(O,e,t,o,a){var E=t.getValue("value"),i=t.getValue("values")||[],n=t.getValue("labels")||[],H=t.getValue("borderWidth"),W=t.getValue("borderRadius"),F=t.getValue("font"),N=t.getColor("labelColor"),j=t.getColor("borderColor"),z=t.getColor("background"),G=t.getColor("hoverLabelColor"),U=t.getColor("hoverBorderColor"),Y=t.getColor("hoverBackground"),X=t.getColor("activeLabelColor"),Z=t.getColor("activeBorderColor"),q=t.getColor("activeBackground"),K=t.getColor("disabledLabelColor"),J=t.getColor("disabledBorderColor"),$=t.getColor("disabledBackground"),Q=t.getValue("vertical"),ee=t.getValue("onChange"),r=t.getValue("disabled"),a=Ye(a,o,t),te=e.x,oe=e.y,ae=e.width,ie=e.height,l=Math.min(i.length,n.length);if(l){_h=Mh=null,Fe(E)&&(o=Oe(i).call(i,E),Mh=0<=o?o:null),a&&Fe(a.hoverIndex)&&(_h=a.hoverIndex);for(var s=[],u=0;u<l;u++)u!==_h&&u!==Mh&&s.push(u);(Fe(_h)&&_h===Mh||(Fe(Mh)&&s.push(Mh),Fe(_h)))&&s.push(_h);var h,c,ne,d,g,f,p,v,y,re,x,m,b,w,k=[];if(Q)for(var le=ie/l,C=0;C<s.length;C++){var T=s[C],V=n[T],D={x:te,y:oe+T*le,width:ae,height:le},I=(k.push({rect:D,index:T}),Ph(T,r,N,G,X,K)),S=Ph(T,r,j,U,Z,J),L=Ph(T,r,z,Y,q,$);v=O,T=Ah(T,l),y=W,V=V,re=F,I=I,x=H,S=S,L=L,w=b=m=void 0,m=(D=D).x,b=D.y,w=D.width,D=D.height,v.save(),v.beginPath(),0===T?xe(v,m,b,w,D,y,y,0,0):1===T?xe(v,m,b,w,D,0):2===T?xe(v,m,b,w,D,0,0,y,y):xe(v,m,b,w,D,y),v.closePath(),L&&(v.fillStyle=L,Ue(v).call(v)),S&&x&&(v.lineWidth=x,v.strokeStyle=S,v.stroke()),v.clip(),Oh(v,V,re,I,m,b,w,D,"center","middle"),v.restore()}else for(var se=ae/l,B=0;B<s.length;B++){var R=s[B],P=n[R],A={x:te+se*R,y:oe,width:se,height:ie},ue=(k.push({rect:A,index:R}),Ph(R,r,N,G,X,K)),_=Ph(R,r,j,U,Z,J),M=Ph(R,r,z,Y,q,$);h=O,R=Ah(R,l),c=W,P=P,ne=F,ue=ue,d=H,_=_,M=M,p=f=g=void 0,g=(A=A).x,f=A.y,p=A.width,A=A.height,h.save(),h.beginPath(),0===R?xe(h,g,f,p,A,c,0,c,0):1===R?xe(h,g,f,p,A,0):2===R?xe(h,g,f,p,A,0,c,0,c):xe(h,g,f,p,A,c),h.closePath(),M&&(h.fillStyle=M,Ue(h).call(h)),_&&d&&(h.lineWidth=d,h.strokeStyle=_,h.stroke()),h.clip(),Oh(h,P,ne,ue,g,f,p,A,"center","middle"),h.restore()}a&&(a.disabled=r,a.onChange=ee,a.buttonRects=k,a.values=i)}},carousel:function(e,t,o,a,i){var n=o.getValue("dataSource"),r=o.getValue("minScale"),O=o.getValue("minOpacity"),l=o.getValue("vertical"),s=o.getValue("index"),u=o.getValue("gap"),h=o.getValue("itemWidth"),c=o.getValue("itemHeight"),d=o.getColor("itemBackground"),g=o.getColor("itemColor"),f=o.getValue("font"),p=o.getColor("background"),v=o.getValue("drawItem"),E=o.getValue("animation"),H=o.getValue("onClickItem"),y=Ye(i,a,o),x=t.x,m=t.y,b=t.width,t=t.height,w=s%1;if(s|=0,p&&(e.fillStyle=p,e.fillRect(x,m,b,t)),n&&n.length&&h&&c){var p=1-r,k=1-O,C=[],T=l?Eh(c,t,u,r):Eh(h,b,u,r),V=p/T,D=k/T;if(e.save(),e.beginPath(),e.rect(x,m,b,t),e.clip(),l){for(var W=x+b/2,F=m+t/2-c/2-u-w*c,N=0;N<T;N++){var I=r+V*(T-N-1-w),j=O+D*(T-N-1-w),z=s-N-1;if(z<0||z>=n.length)break;var G=n[z],S=[(W-h*I/2)/I,(F-=c*I)/I,h,c];e.save(),e.globalAlpha=j,e.scale(I,I),v?v(e,G,Hn(S),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,S)),yr.apply(void 0,Ee(j=[e,G,f,g]).call(j,S,[Ae,_e]))),e.restore(),F-=u,C.push({index:z,rect:{x:S[0]*I,y:S[1]*I,width:S[2]*I,height:S[3]*I}})}for(var F=m+t/2+c/2+u-w*(c+u),U=0;U<T;U++){var L=r+V*(T-U-1+w),Y=O+D*(T-U-1+w),X=s+U+1;if(X<0||X>=n.length)break;var Z=n[X],B=[(W-h*L/2)/L,F/L,h,c];e.save(),e.globalAlpha=Y,e.scale(L,L),v?v(e,Z,Hn(B),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,B)),yr.apply(void 0,Ee(Y=[e,Z,f,g]).call(Y,B,[Ae,_e]))),e.restore(),F+=c*L+u,C.push({index:X,rect:{x:B[0]*L,y:B[1]*L,width:B[2]*L,height:B[3]*L}})}F=m+t/2-c/2-w*c;p=n[s];p&&(k=1-D*w,M=[(W-h*(l=1-V*w)/2)/l,F/l,h,c],e.save(),e.globalAlpha=k,e.scale(l,l),v?v(e,p,Hn(M),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,M)),yr.apply(void 0,Ee(k=[e,p,f,g]).call(k,M,[Ae,_e]))),e.restore(),C.push({index:s,rect:{x:M[0]*l,y:M[1]*l,width:M[2]*l,height:M[3]*l}}))}else{for(var q=m+t/2,K=x+b/2-h/2-u-w*h,J=0;J<T;J++){var R=r+V*(T-J-1-w),$=O+D*(T-J-1-w),Q=s-J-1;if(Q<0||Q>=n.length)break;var ee=n[Q],P=[(K-=h*R)/R,(q-c*R/2)/R,h,c];e.save(),e.globalAlpha=$,e.scale(R,R),v?v(e,ee,Hn(P),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,P)),yr.apply(void 0,Ee($=[e,ee,f,g]).call($,P,[Ae,_e]))),e.restore(),K-=u,C.push({index:Q,rect:{x:P[0]*R,y:P[1]*R,width:P[2]*R,height:P[3]*R}})}for(var K=x+b/2+h/2+u-w*(h+u),te=0;te<T;te++){var A=r+V*(T-te-1+w),oe=O+D*(T-te-1+w),ae=s+te+1;if(ae<0||ae>=n.length)break;var ie=n[ae],_=[K/A,(q-c*A/2)/A,h,c];e.save(),e.globalAlpha=oe,e.scale(A,A),v?v(e,ie,Hn(_),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,_)),yr.apply(void 0,Ee(oe=[e,ie,f,g]).call(oe,_,[Ae,_e]))),e.restore(),K+=h*A+u,C.push({index:ae,rect:{x:_[0]*A,y:_[1]*A,width:_[2]*A,height:_[3]*A}})}K=x+b/2-h/2-w*h;var M,p=n[s];p&&(k=1-D*w,l=[K/(M=1-V*w),(q-c*M/2)/M,h,c],e.save(),e.globalAlpha=k,e.scale(M,M),v?v(e,p,Hn(l),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,l)),yr.apply(void 0,Ee(m=[e,p,f,g]).call(m,l,[Ae,_e]))),e.restore(),C.push({index:s,rect:{x:l[0]*M,y:l[1]*M,width:l[2]*M,height:l[3]*M}}))}e.restore(),y&&(y.itemInfos=C,y.index=s,y.animation=E,y.dataSource=n,y.onClickItem=H,y.scrollable=o.getValue("scrollable"))}},carousel2:function(e,t,o,a,i){var n=o.getValue("dataSource"),r=o.getValue("vertical"),l=o.getValue("gap"),s=o.getValue("itemWidth"),u=o.getValue("itemHeight"),h=o.getColor("itemBackground"),c=o.getColor("itemColor"),d=o.getValue("font"),g=o.getColor("background"),f=o.getValue("drawItem"),p=o.getValue("offset")||0,v=(Ye(i,a,o),t.x),y=t.y,o=t.width,x=t.height;if(!(!(i instanceof ht.graph.GraphView||i instanceof ht.graph3d.Graph3dView)||t.height<1||t.width<1)&&(g&&(e.fillStyle=g,e.fillRect(v,y,o,x)),n)&&n.length&&s&&u){e.save(),e.beginPath(),e.rect(v,y,o,x),e.clip();var m=n.length;if(r){var b=u+l,w=y+p,k=v+(o-s)/2,C=0;if((w%=b*n.length)<=y)for(;;){if(Jn({x:k,y:w,width:s,height:u},t))break;C++,w+=b}else if(y<w)for(;;){if(!Jn({x:k,y:w,width:s,height:u},t)&&w<y){w+=b,C++;break}w-=b,C--}for(;;){var T={x:k,y:w,width:s,height:u};if(!Jn(T,t))break;var V=C%m,V=n[V=V<0?m+C:V];f?f(e,V,T,a,i):(h&&(e.fillStyle=h,e.fillRect(k,w,s,u)),yr(e,V,d,c,k,w,s,u,Ae,_e)),w+=b,C++}}else{var D=s+l,I=y+(x-u)/2,S=v+p,L=0;if((S%=D*n.length)<=v)for(;;){if(Jn({x:S,y:I,width:s,height:u},t))break;L++,S+=D}else if(v<S)for(;;){if(!Jn({x:S,y:I,width:s,height:u},t)&&S<v){S+=D,L++;break}S-=D,L--}for(;;){var B={x:S,y:I,width:s,height:u};if(!Jn(B,t))break;var R=L%m,R=n[R=R<0?m+L:R];f?f(e,R,B,a,i):(h&&(e.fillStyle=h,e.fillRect(S,I,s,u)),yr(e,R,d,c,S,I,s,u,Ae,_e)),S+=D,L++}}e.restore()}},timeAxisChart:function(t,e,o,a,i){var n,r,l,s,u,h,c,d=o.getValue("series"),g=o.getValue("xAxis"),f=o.getValue("yAxis"),p=o.getValue("colors"),v=o.getColor("background"),y=o.getValue("backgroundIncludeAxis"),x=o.getValue("backgroundDraw"),m=o.getValue("onRectSelected"),b=o.getValue("rectSelectBorderColor"),w=o.getValue("rectSelectBackground"),k=o.getValue("maxVisiblePoint"),C=o.getValue("endProtectPoint"),T=o.getValue("xAxisRange"),V=o.getValue("onItemClicked"),D={show:o.getValue("tooltip"),lineWidth:o.getValue("tooltipLineWidth"),lineColor:o.getValue("tooltipLineColor"),pattern:o.getValue("tooltipLinePattern"),formatter:o.getValue("tooltipFormatter"),draw:o.getValue("tooltipDraw")};d&&d.length&&(h={series:d,xAxis:g=g&&!Xn(g)?[g]:g,yAxis:f=f&&!Xn(f)?[f]:f,color:p},n={color:p&&p.length?p:rg,xAxis:Pd(g,dg),yAxis:Pd(f,ig),series:d,tooltip:D,onRectSelected:m,rectSelectBorderColor:b,rectSelectBackground:w,onItemClicked:V},r={data:a,view:i,maxVisiblePoint:k,endProtectPoint:C,xAxisRange:T,originalOption:h,rect:e,contentRect:Yn(e),valueAxis:he,seriesDatas:Ge(d).call(d,function(e){return!1===e.visible?[]:zn(e.data,a,i)}),seriesColors:[],interactiveInfo:{}},ze(p=n.xAxis).call(p,function(e){e._axisObj=new gg(e,n,r)}),ze(g=n.yAxis).call(g,function(e){e._axisObj=new ug(e,n,r)}),Rd(n,r),a&&(f=Ye(i,a,o))&&(r.hoverTime=(D=f).hoverTime,r._dragging=D._dragging,r.rectPoint1=D.rectPoint1,r.rectPoint2=D.rectPoint2,D._dragging)&&D.rectPoint1&&D.rectPoint2&&(r.selectRect=xr(D.rectPoint1,D.rectPoint2)),x?(y||(e=r.bounds.bodyRect),x(t,e,{data:a,view:i,background:v})):v&&(y||(e=r.bounds.bodyRect),t.fillStyle=ir(t,v,e),t.fillRect(e.x,e.y,e.width,e.height)),ze(m=n.xAxis).call(m,function(e){e._axisObj.draw(t)}),ze(V=n.yAxis).call(V,function(e){e._axisObj.draw(t)}),d&&d.length&&(l=t,u=r,c=(s=n).series,u.interactiveInfo.axisInfos=Ge(k=s.xAxis).call(k,function(e){return Ge(e=e._axisObj.axisInfos).call(e,function(e){return{position:e.position,label:e.label,series:c}})}),ze(c).call(c,function(e,t){"line"===e.type&&fg(l,e,t,s,u)}),void 0!==u.hoverTime)&&(C=(k=s.xAxis[0]._axisObj.zoomTimeRange)[0],k=k[1],h=(T=u.bounds.bodyRect).x,p=T.y,g=T.width,T=T.height,h=h+(u.hoverTime-C)/(k-C)*g,C=(k=s.tooltip).lineColor,g=k.lineWidth,k=k.pattern,l.strokeStyle=C,l.lineWidth=g,k&&l.setLineDash(k),l.beginPath(),l.moveTo(h,p),l.lineTo(h,p+T),l.stroke(),u._hoverHandlers)&&(g=(C=u.bounds.bodyRect).x,k=C.y,h=C.width,p=C.height,l.save(),l.beginPath(),l.rect(g,k,h,p),l.clip(),ze(T=u._hoverHandlers).call(T,function(e){e()}),l.restore()),ze(f=n.xAxis).call(f,function(e){e._axisObj.drawMarkLine(t)}),ze(D=n.yAxis).call(D,function(e){e._axisObj.drawMarkLine(t)}),r.selectRect&&(y=(x=r.selectRect).x,v=x.y,e=x.width,m=x.height,t.fillStyle=w,t.fillRect(y,v,e,m),t.strokeStyle=b,t.strokeRect(y,v,e,m)),a)&&((V=Ye(i,a,o)).ui=r,V.option=n)},pagination:function(l,e,t,s,u){var h=t.getValue("current"),o=t.getValue("pageSize"),a=t.getValue("total"),O=t.getValue("align"),i=t.getValue("itemWidth"),c=t.getValue("itemHeight"),d=t.getValue("gap"),g=t.getColor("labelColor"),f=t.getColor("background"),p=t.getValue("borderWidth"),v=t.getColor("borderColor"),y=t.getValue("borderRadius"),x=t.getValue("font"),m=t.getColor("hoverLabelColor"),b=t.getColor("hoverBorderColor"),w=t.getColor("hoverBackground"),k=t.getColor("activeLabelColor"),C=t.getColor("activeBorderColor"),T=t.getColor("activeBackground"),V=t.getColor("disabledLabelColor"),D=t.getColor("disabledBorderColor"),I=t.getColor("disabledBackground"),E=t.getColor("disabledActiveLabelColor"),H=t.getColor("disabledActiveBorderColor"),W=t.getColor("disabledActiveBackground"),F=t.getColor("showFirstAndLast"),n=t.getValue("disabled"),r=s?Ye(u,s,t):{},N=e.x,j=e.y,z=e.width,e=e.height;if(a){for(var S=Math.ceil(a/o),G=7<S,U=G&&4<h,Y=G&&h<=S-4,a=1<h,o=h<S,L=[],B=0;B<S;B++)G?((0===B||B===S-1||Math.abs(B+1-h)<=2||!U&&B<5||!Y&&S-5<B)&&L.push({label:B+1,isDisabled:!!n}),1===B&&U&&L.push({label:hn,isDisabled:!!n}),B===S-2&&Y&&L.push({label:cn,isDisabled:!!n})):L.push({label:B+1,isDisabled:!!n});L.unshift({label:sn,isDisabled:!a||n}),F&&L.unshift({label:dn,isDisabled:!a||n}),L.push({label:un,isDisabled:!o||n}),F&&L.push({label:gn,isDisabled:!o||n});var X=r.hoverLabel;if(Re===O)for(var Z=N+z-p/2,q=j+(e-c)/2,K=L.length-1;0<=K;K--){var J=L[K],R=J.label,P=J.isDisabled,A=He(x,R),A=0<=Oe(Nh).call(Nh,R)?i:Math.max(i,A.width),A={x:Z-=A,y:q,width:A,height:c},P={active:h===R,hover:X===R,disabled:P},$=Wh(P,g,m,k,V,E),Q=Wh(P,v,b,C,D,H),ee=Wh(P,f,w,T,I,W);Hh(l,A,R,x,$,Q,y,p,ee,P,s,u),Z-=d,J.rect=A}else if(Pe===O)for(var te=N+p/2,oe=j+(e-c)/2,ae=0;ae<L.length;ae++){var ie=L[ae],_=ie.label,M=ie.isDisabled,ne=He(x,_),ne=0<=Oe(Nh).call(Nh,_)?i:Math.max(i,ne.width),re={x:te,y:oe,width:ne,height:c},M={active:h===_,hover:X===_,disabled:M},le=Wh(M,g,m,k,V,E),se=Wh(M,v,b,C,D,H),ue=Wh(M,f,w,T,I,W);Hh(l,re,_,x,le,se,y,p,ue,M,s,u),te+=ne+d,ie.rect=re}else{var he,ce=0,de=j+(e-c)/2,ge=[];ze(L).call(L,function(e){var t=e.label,e=(e.isDisabled,He(x,t)),t=0<=Oe(Nh).call(Nh,t)?i:Math.max(i,e.width);ce+=t,ge.push(t)}),he=N+z/2-(ce+=(L.length-1)*d)/2,ze(L).call(L,function(e,t){var o=e.label,a=e.isDisabled,t={x:he,y:de,width:ge[t],height:c},a={active:h===o,hover:X===o,disabled:a},i=Wh(a,g,m,k,V,E),n=Wh(a,v,b,C,D,H),r=Wh(a,f,w,T,I,W);Hh(l,t,o,x,i,n,y,p,r,a,s,u),he+=t.width+d,e.rect=t})}s&&(r.itemList=L,r.totalPage=S,r.current=h,r.disabled=n,r.onChange=t.getValue("onChange"))}},radio2:function(e,t,o,a,i){var n=o.getValue("disabled"),r=o.getValue("checked"),l=o.getColor("normalColor"),s=o.getColor("background"),u=o.getColor("activeColor"),h=o.getColor("disabledColor"),c=o.getColor("disabledBackground"),i=(o.getValue("symbol"),Ye(i,a,o)),u=(r=Fe(i.checked)?i.checked:r)?u:l,l=t.x,d=t.y,g=t.width,t=t.height,f=Math.min(g,t);a&&(n?(u=h,s=c):i.pressed?r?u=ht.Default.darker(u,Ui.activeDarker):s=ht.Default.darker(s,Ui.activeDarker):i.hover&&(r?u=ht.Default.darker(u,Ui.hoverDarker):s=ht.Default.darker(s,Ui.hoverDarker))),s&&(e.beginPath(),e.fillStyle=s,e.arc(l+.5*g,d+.5*t,.5*f,0,2*Math.PI),Ue(e).call(e)),e.beginPath(),e.strokeStyle=u,e.lineWidth=1.5,e.arc(l+.5*g,d+.5*t,.5*f,0,2*Math.PI),e.stroke(),r&&(e.beginPath(),e.fillStyle=u,e.arc(l+.5*g,d+.5*t,.25*f,0,2*Math.PI),Ue(e).call(e)),a&&!a.__inputType&&(a.__inputType=qi),i&&(i.disabled=n,i.onChange=o.getValue("onChange"),i.group=o.getValue("group"),i.value=o.getValue("value"),i.checked=r,i.__inputType=qi)},valueAxisChart:function(t,e,o,a,i){var n=o.getValue("series"),r=o.getValue("xAxis"),l=o.getValue("yAxis"),s=o.getValue("colors"),O=o.getColor("background"),E=o.getValue("backgroundIncludeAxis"),u=o.getValue("clipMode"),h={show:o.getValue("tooltip"),formatter:o.getValue("tooltipFormatter")},c=o.getValue("onRectSelected"),H=o.getValue("rectSelectBorderColor"),W=o.getValue("rectSelectBackground"),F=o.getValue("bottomPainter"),N=o.getValue("topPainter");if(n&&n.length){r&&!Xn(r)&&(r=[r]),l&&!Xn(l)&&(l=[l]);var d,g,f,p,v,y,x,j,m,z,b,w,G,U,Y,k,C,T,V,X,Z,q,K,D=Pd(r,ig),I=Pd(l,ig),S=(0<=Oe(S=[Pe,Re]).call(S,D[0].position)&&Oe(S=[Le,Be]).call(S,I[0].position)<0&&(I[0].position=Be),Oe(S=[Pe,Re]).call(S,D[0].position)<0&&0<=Oe(S=[Le,Be]).call(S,I[0].position)&&(D[0].position=Be),{series:n,xAxis:r,yAxis:l,color:s,clipMode:u}),L={color:s&&s.length?s:rg,xAxis:D,yAxis:I,series:n,tooltip:h,clipMode:u,onRectSelected:c,rectSelectBorderColor:H,rectSelectBackground:W},B={data:a,view:i,rect:e,contentRect:Yn(e),originalOption:S,seriesDatas:Ge(n).call(n,function(e){return!1===e.visible?[]:zn(e.data,a,i)}),seriesColors:[],interactiveInfo:{}},J=(ze(r=L.xAxis).call(r,function(e){e._axisObj=new Cg(e,L,B)}),ze(l=L.yAxis).call(l,function(e){e._axisObj=new Tg(e,L,B)}),d=L,g=$i,f=(s=B).leftAxis=[],p=s.rightAxis=[],v=s.topAxis=[],y=s.bottomAxis=[],z=m=j=x=0,ze(D=d.xAxis).call(D,function(e,t){var o,a;e.show&&(o=e.bodyGap,a=e._axisObj.position,e=e._axisObj.boundHeight,a===Le?(m+=e+o,v.push({axis:Ji,index:t})):a===Be?(z+=e+o,y.push({axis:Ji,index:t})):a===Pe?(x+=e+o,f.push({axis:Ji,index:t})):a===Re&&(j+=e+o,p.push({axis:Ji,index:t})))}),ze(D=d.yAxis).call(D,function(e,t){var o,a,i;e.show&&(o=e.bodyGap,a=e._axisObj.position,i=e._axisObj.boundWidth,a===Re?(j+=i+o,p.push({axis:he,index:t})):a===Pe?(x+=i+o,f.push({axis:he,index:t})):a===Le?(m+=i+o,v.push({axis:he,index:t})):a===Be&&(z+=i+o,y.push({axis:he,index:t})),g=Math.max(g,$i+e._axisObj.labelHeight/2))}),D=Ee(D=[]).call(D,p,f),I=Ee(I=[]).call(I,v,y),ze(D).call(D,function(e){e.axis===Ji?g=Math.max(g,$i+d.xAxis[e.index]._axisObj.labelHeight/2):e.axis===he&&(g=Math.max(g,$i+d.yAxis[e.index]._axisObj.labelHeight/2))}),m<g&&(m=g),z<g&&(z=g),h=s.contentRect,w=b=0,ze(I).call(I,function(e){var t,o;e.axis===Ji?t=d.xAxis[e.index]:e.axis===he&&(t=d.yAxis[e.index]),t.axisLabel.show&&(o=(e=je(t._axisObj.zoomValueRange,2))[0],e=e[1],o=(He(t.axisLabel.font||Gd,o)||{width:0,height:0}).width/2,w<o&&(w=o),o=He(t.axisLabel.font||Gd,e),b=Math.max(o.width/2,b))}),ze(D).call(D,function(e){var a;e.axis===Ji?a=d.xAxis[e.index]:e.axis===he&&(a=d.yAxis[e.index]),a.markLines&&ze(e=a.markLines).call(e,function(e){var t=e.value,e=e.labelStyle,o=e&&e.font||Gd;e&&e.formatter&&(t=e.formatter(t));e=He(o,t).width+6;a._axisObj.position===Pe&&b<e?b=e:a._axisObj.position===Re&&w<e&&(w=e)})}),x<w&&(x=w),G=h.x,u=h.y,c=h.width,h=h.height,U=[],Y=[],k=G,C=u,T=c-x-j,V=h-m-z,j<b&&(T=T-b+j),T=Math.max(0,T),V=Math.max(0,V),C=u+m,ze(D).call(D,function(e,t){var o=se(e),a=ue(e),i=o._axisObj.position,n=o.bodyGap;if(i===Re){for(var r=0,l=Oe(p).call(p,e);0<l;)r+=ue(p[--l]);U.push({x:G+x+T+r+n,y:C,width:a,height:V}),o._axisObj.rect={x:G+x+T+r+n,y:C,width:a,height:V}}else{for(var s=0,u=Oe(f).call(f,e);0<u;)s+=ue(f[--u]);U.push({x:k+s,y:C,width:a,height:V}),o._axisObj.rect={x:k+s,y:C,width:a,height:V}}}),k=G+x,C=u,ze(I).call(I,function(e,t){var o=se(e),a=ue(e),i=o._axisObj.position,n=o.bodyGap;if(i===Le){for(var r=0,l=Oe(v).call(v,e);0<l;)r+=ue(v[--l]);Y.push({x:k,y:C+r-n,width:T,height:a}),o._axisObj.rect={x:k,y:C+r-n,width:T,height:a}}else{for(var s=0,u=Oe(y).call(y,e);0<u;)s+=ue(y[--u]);Y.push({x:k,y:C+V+m+s+n,width:T,height:a}),o._axisObj.rect={x:k,y:C+V+m+s+n,width:T,height:a}}}),c={x:G+x,y:u+m,width:Math.max(0,T),height:Math.max(0,V)},s.bounds={xAxisRects:Y,yAxisRects:U,bodyRect:c},O&&(E||(e=B.bounds.bodyRect),t.fillStyle=ir(t,O,e),t.fillRect(e.x,e.y,e.width,e.height)),a&&(S=Ye(i,a,o))&&(B.hitPointIndex=(r=S).hitPointIndex,B.hitSeriesIndex=r.hitSeriesIndex,B.selectSeriesIndex=r.selectSeriesIndex,B.axisPointerPoint=r.axisPointerPoint,B._dragging=r._dragging,B.rectPoint1=r.rectPoint1,B.rectPoint2=r.rectPoint2,r._dragging)&&r.rectPoint1&&r.rectPoint2&&(B.selectRect=xr(r.rectPoint1,r.rectPoint2)),ze(l=L.xAxis).call(l,function(e){e._axisObj.draw(t)}),ze(h=L.yAxis).call(h,function(e){e._axisObj.draw(t)}),ze(D=L.xAxis).call(D,function(e){e._axisObj.drawMarkArea(t)}),ze(I=L.yAxis).call(I,function(e){e._axisObj.drawMarkArea(t)}),[]);if(F||N)for(var $=0;$<L.yAxis.length;$++)for(var Q=0;Q<L.xAxis.length;Q++){var ee,te=L.xAxis[Q],oe=L.yAxis[$],R=[],P=B.bounds.bodyRect,ae=P.x,ie=P.y,A=P.width,P=P.height,_=je(te._axisObj.zoomValueRange,2),ne=_[0],_=_[1]-ne,re=te._axisObj.axisOption.inverse,M=je(oe._axisObj.zoomValueRange,2),le=M[0],M=M[1]-le,oe=oe._axisObj.axisOption.inverse;0<=Oe(ee=[Le,Be]).call(ee,te._axisObj.position)?(re?(R[0]=-A/_,R[1]=0,R[2]=ae+A*(1+ne/_)):(R[0]=A/_,R[1]=0,R[2]=ae-A*ne/_),oe?(R[3]=0,R[4]=P/M,R[5]=ie-P*le/M):(R[3]=0,R[4]=-P/M,R[5]=ie+P*(1+le/M))):(re?(R[3]=P/_,R[4]=0,R[5]=ie-P*ne/_):(R[3]=-P/_,R[4]=0,R[5]=ie+P*(1+ne/_)),oe?(R[0]=0,R[1]=-A/M,R[2]=ae+A*(1+le/M)):(R[0]=0,R[1]=A/M,R[2]=ae-A*le/M)),J.push(R)}F&&(t.save(),c={xRange:Me(u=L.xAxis[0]._axisObj.zoomValueRange).call(u,0,2),yRange:Me(s=L.yAxis[0]._axisObj.zoomValueRange).call(s,0,2),rect:B.bounds.bodyRect,series:n,option:{xAxis:L.xAxis,yAxis:L.yAxis,ui:B,transforms:J}},F(t,a,i,c),t.restore()),n&&n.length&&(X=t,q=B,E=(Z=L).series,q.pointsInfo={},ze(E).call(E,function(e,t){pg(X,e,t,Z,q)})),N&&(t.save(),S={xRange:Me(O=L.xAxis[0]._axisObj.zoomValueRange).call(O,0,2),yRange:Me(e=L.yAxis[0]._axisObj.zoomValueRange).call(e,0,2),rect:B.bounds.bodyRect,series:n,option:{xAxis:L.xAxis,yAxis:L.yAxis,ui:B,transforms:J}},N(t,a,i,S),t.restore()),ze(r=L.xAxis).call(r,function(e){e._axisObj.drawMarkLine(t)}),ze(l=L.yAxis).call(l,function(e){e._axisObj.drawMarkLine(t)}),B.selectRect&&(D=(h=B.selectRect).x,I=h.y,u=h.width,s=h.height,t.fillStyle=W,t.fillRect(D,I,u,s),t.strokeStyle=H,t.strokeRect(D,I,u,s)),B.axisPointerPoint&&(K=B.bounds.bodyRect,ze(F=L.xAxis).call(F,function(e){e._axisObj.drawAxisPointer(t,B.axisPointerPoint,K)}),ze(c=L.yAxis).call(c,function(e){e._axisObj.drawAxisPointer(t,B.axisPointerPoint,K)})),a&&((E=Ye(i,a,o)).ui=B,E.option=L)}function se(e){var t=e.axis,e=e.index;return t===Ji?d.xAxis[e]:t===he?d.yAxis[e]:void 0}function ue(e){e=se(e);return e._axisObj.boundHeight||e._axisObj.boundWidth}},qrcode:function(e,t,o,a,i){var n=o.getColor("colorDark"),r=o.getColor("colorLight"),l=o.getColor("padding"),o=o.getValue("content");if(!We(o)){e.save();var s=uc[o],u=(s=s||(uc[o]=new sc(o))).getModuleCount(),o=t.x,h=t.y,c=t.width,t=t.height,d=10*u,g=o,f=h,p=Math.min(c,t),v=(c-=2*l,t-=2*l,Math.min(c,t)/d),y=(t<c?g=o+(c-t)/2:f=h+(t-c)/2,e.translate(g,f),e.fillStyle=r,e.fillRect(0,0,p,p),d/u);e.translate(l,l),e.fillStyle=n,e.scale(v,v),e.beginPath();for(var x=0;x<u;x++)for(var m=0;m<u;m++)s.isDark(x,m)&&e.rect(m*y,x*y,10,10);Ue(e).call(e),e.restore()}},dragSlider:function(r,e,t,i,n){var o={dataSource:t.getValue("dataSource"),color:t.getValue("color"),step:t.getValue("step"),total:t.getValue("total"),padding:t.getValue("padding"),onChange:t.getValue("onChange"),barWidth:t.getValue("barWidth"),barBackground:t.getValue("barBackground"),barBorderRadius:t.getValue("barBorderRadius"),sliderImage:t.getValue("sliderImage"),sliderBorderWidth:t.getValue("sliderBorderWidth"),sliderBorderRadius:t.getValue("sliderBorderRadius"),sliderBorderColor:t.getValue("sliderBorderColor"),sliderBackground:t.getValue("sliderBackground"),sliderWidth:t.getValue("sliderWidth"),sliderHeight:t.getValue("sliderHeight"),sliderOffsetX:t.getValue("sliderOffsetX"),sliderOffsetY:t.getValue("sliderOffsetY"),showToolTip:t.getValue("showToolTip"),toolTipFormat:t.getValue("toolTipFormat")},t=Ye(n,i,t),a=o.barBackground,l=o.barWidth,s=o.barBorderRadius,u=o.padding,h=o.sliderBackground,c=o.sliderBorderRadius,d=o.sliderBorderWidth,g=o.sliderBorderColor,f=o.sliderImage,p={itemsRect:[],dragIconsRect:[]},v=e.x,y=e.y,x=e.width,m=e.height,b=null,w=null;t&&(t.dragSliderDataModel?b=t.dragSliderDataModel:(b=new cc,t.dragSliderDataModel=b),b.reset(o,e),b.init(),r.save(),r.beginPath(),r.rect(v,y,x,m),r.clip(),a&&(r.save(),r.fillStyle=a,r.beginPath(),dc(r,v+u,y+(m-l)/2,x-2*u,l,s),r.closePath(),Ue(r).call(r),r.restore()),b.getRoots().each(function(e,t,o){e.initNodeRect(w);var a=(w=e).getAttrObject(),i=a.itemRect,a=a.color,n=0===t,t=t===o.size()-1;r.save(),r.fillStyle=a,r.beginPath(),dc(r,i.x,i.y,i.width,i.height,n?s:0,t?s:0,n?s:0,t?s:0),r.closePath(),Ue(r).call(r),r.restore(),p.itemsRect.push({dragSliderData:e,itemRect:i})}),b.getRoots().each(function(e,t,o){var a=e.getAttrObject().dragIconRect;f?fc(r,gc(f),"fill",a.x,a.y,a.width,a.height,i,n):(r.save(),r.fillStyle=h,r.beginPath(),dc(r,a.x,a.y,a.width,a.height,c,c,c,c),r.closePath(),Ue(r).call(r),d&&(r.lineWidth=d,r.strokeStyle=g,r.stroke()),r.restore()),p.dragIconsRect.push({dragSliderData:e,dragIconRect:a})}),r.restore(),t.rectInfo=p)},verticalBar:function(a,e,t,o,i){var n,r,l,s,u,h,c,d,g,f,p,v,y=t.getValue("colors"),x=t.getValue("labelColor"),m=t.getValue("dataSource"),b=t.getValue("font"),w=t.getValue("barPercent");m&&m.length&&(n=(o?ht.vector.getVectorInfo(i,o,t):{}).hoverIndex,r=e.x,i=e.y,o=e.width,t=e.height,l=t/m.length*w,s=t/m.length,u=(s-l)/2,c=[],g=(d=void(h=0)===g)?-1/0:g,ze(m).call(m,function(e){var t=ht.Default.getTextSize(b,e.name);h=Math.max(h,t.width),c.push(c),d&&(g=Math.max(g,e.value))}),f=o-h-10-48,p=i,v=r,ze(m).call(m,function(e,t){ht.Default.drawText(a,e.name,b,x,v=r,p,c[t].width,s,"left","middle"),v+=h+5;var o=e.value/g,o=Math.min(o,1);a.fillStyle=n===t?ht.Default.brighter(y[t]):y[t%y.length],a.fillRect(v,p+u,f*o,l),v+=f*o+5,ht.Default.drawText(a,e.value+"",b,x,v,p,48,s,"left","middle"),p+=s}))},checkGroup:function(r,e,t,l,s){var u,o,a,h,c,d,i=t.getValue("dataSource"),n=t.getValue("value"),g=t.getValue("vPadding"),f=t.getValue("hPadding"),p=t.getValue("vGap"),v=t.getValue("hGap"),y=t.getColor("boxBackground"),x=t.getColor("activeBoxBackground"),m=t.getColor("checkIconColor"),b=(t.getValue("layerImage"),t.getColor("labelColor")),w=t.getValue("labelFont"),k=t.getColor("activeLabelColor"),C=t.getValue("multiple"),T=t.getValue("getLabelColor"),V=Ye(s,l,t),D=n;i&&i.length&&(u=V.uiInfos=Ge(i).call(i,function(e){return{label:e.label,value:e.value}}),o=e.x,a=e.y,h=e.width,e.height,c=o+f,d=a+g,r.save(),r.textBaseline=_e,r.textAlign=Pe,C&&(D=(n||"").split(",")),ze(i).call(i,function(e,t){var o=e.label,a=e.value,i=C?0<=Oe(D).call(D,a):a===D,n=i?k:b;r.beginPath(),r.moveTo(c,d+8),r.lineTo(c+8,d),r.lineTo(c+16,d+8),r.lineTo(c+8,d+16),r.fillStyle=i?x:y,Ue(r).call(r),i&&(r.beginPath(),r.moveTo(c+3,d+8+1),r.lineTo(c+8,d+16-2),r.lineTo(c+16+4,d+8-6),r.lineTo(c+16+1,d+8-6),r.lineTo(c+8,d+16-5),r.lineTo(c+6,d+8+1),r.fillStyle=m,Ue(r).call(r)),We(o)&&(o=a),r.font=w,r.fillStyle=T?T(n,e,t,l,s):n,r.fillText(o,c+16+v,d+8),u[t].rect={x:c,y:d,width:Math.max(1,h-2*f),height:16},(u[t].active=i)&&(V.activeIndex=t),d=d+16+p}),r.restore(),V)&&(V.value=n,V.dataValue=D,V.dataSource=i,V.onChange=t.getValue("onChange"),V.multiple=C)},parallelogramTab:function(h,e,t,o,a){var c,i,d,g,n=t.getValue("dataSource"),f=t.getValue("value"),p=t.getValue("gap"),v=t.getValue("activeItemWidth"),y=t.getValue("activeItemHeight"),x=t.getValue("itemWidth"),m=t.getValue("itemHeight"),b=t.getColor("activeItemBackground"),w=t.getColor("itemBackground"),k=t.getColor("labelColor"),C=t.getValue("labelFont"),T=t.getColor("activeLabelColor"),V=t.getValue("activeLabelFont"),D=t.getValue("offset"),a=Ye(a,o,t);n&&n.length&&(c=a.uiInfos=Ge(n).call(n,function(e){return{value:e}}),o=e.x,i=e.y,e.width,d=i+e.height/2,g=o,h.font=C,ze(n).call(n,function(e,t){var o,a=e===f,i=a?y:m,n=a?v:x,r=D<1?i*D:r,l=[],s=a?b:w,u=a?T:k,a=a?V:C;t?((l=[]).push({x:g-r,y:d-i}),l.push({x:g+n-r,y:d-i}),l.push({x:g+n,y:d}),l.push({x:g,y:d}),o=xr(l),qn(h,l),h.fillStyle=s,Ue(h).call(h),h.fillStyle=u,h.font=a,h.fillText(e,o.x+o.width/2,o.y+o.height/2),g+=n+p,c[t].rect=o):(o=i/2,h.fillStyle=s,l.push({x:g,y:d-o}),l.push({x:g+n,y:d-o}),l.push({x:g+n+r,y:d+o}),l.push({x:g,y:d+o}),qn(h,l),Ue(h).call(h),i=xr(l),h.fillStyle=u,h.font=a,h.textBaseline=_e,h.textAlign=Ae,h.fillText(e,i.x+i.width/2,i.y+i.height/2+2),c[t].rect=i,c[t].active=e===f,g+=n+p+r,d+=o)}),a)&&(a.value=f,a.dataSource=n,a.onChange=t.getValue("onChange"))},radar:function(s,e,t,u,h){var c,o,O=this,a=t.getValue("series"),d=t.getValue("colors"),g=t.getValue("indicator")||[],E=t.getValue("min")||0,H=t.getValue("isCircle"),W=t.getValue("fillAlpha"),F=t.getValue("borderWidth"),N=t.getValue("splitLineVisible"),j=t.getValue("splitLineColor"),z=t.getValue("splitLineWidth"),G=t.getValue("splitLinePattern"),i=t.getValue("splitNumber"),n=t.getValue("splitColors"),U=t.getValue("axisLineVisible"),Y=t.getValue("axisLineColor"),X=t.getValue("axisLineWidth"),Z=t.getValue("axisLinePattern"),q=t.getValue("labelVisible"),K=t.getValue("labelPadding"),J=t.getValue("labelFont"),$=t.getValue("labelGap"),Q=t.getColor("labelColor"),ee=t.getValue("labelFormatter"),te=t.getValue("drawLabel"),oe=t.getValue("seriesValueVisible"),ae=t.getValue("seriesValueFont"),ie=t.getValue("seriesValueGap"),ne=t.getValue("seriesValueFormatter"),re=t.getValue("labelHandleClick"),r=Ye(h,u,t),l=(r&&(r.labelHandleClick=re),e.x),le=e.y,se=e.width,ue=e.height,f=Math.max(Math.min(se,ue)/2-K,10),p=5,he=n.length,v=-1/0,y=2*(t=Math.PI),ce=t/2;if(a&&(a=Yn(a),p=0,ze(a).call(a,function(e){var t;e.data?(e.data=zn(e.data,u,h),t=Math.max.apply(O,e.data),v<t&&(v=t),e.data.length>p&&(p=e.data.length)):e.data=[]})),p){if(c=y/p,s.save(),s.translate(l+se/2,le+ue/2),U){s.save(),s.beginPath();for(var de=0;de<p;de++)de&&s.rotate(c),s.moveTo(0,0),s.lineTo(0,-f);s.strokeStyle=Y,s.lineWidth=X,Z&&s.setLineDash(Z),s.stroke(),s.restore()}if(i){var x=f/i,ge=[];if(s.strokeStyle=j,s.lineWidth=z,G&&s.setLineDash(G),H){if(N)for(var fe=1;fe<=i;fe++){var pe=fe*x;s.beginPath(),s.arc(0,0,pe,0,y),s.stroke()}if(n&&n.length)for(var m=0;m<i;m++){var ve=n[m%he],ye=0<m?m*x:null,xe=(m+1)*x;s.beginPath(),s.fillStyle=ve,s.arc(0,0,xe,0,y),Fe(ye)&&s.arc(0,0,ye,0,y,!0),Ue(s).call(s)}}else{for(var me=1;me<=i;me++){var be=me*x,we=[];ge.push(we),s.beginPath();for(var b=0;b<p;b++){var w=c*b-ce,ke=Math.cos(w)*be,w=Math.sin(w)*be;we.push([ke,w]),b?s.lineTo(ke,w):s.moveTo(ke,w)}s.closePath(),N&&s.stroke()}if(n&&n.length)for(var k=0;k<i;k++){var Ce=n[k%he],Te=ge[k-1],Ve=ge[k];if(s.beginPath(),s.fillStyle=Ce,Te)for(var C=p-1;0<=C;C--){var T=je(Te[C],2),De=T[0],T=T[1];C===p-1?s.moveTo(De,T):s.lineTo(De,T)}for(var V=0;V<p;V++){var D=je(Ve[V],2),Ie=D[0],D=D[1];V?s.lineTo(Ie,D):s.moveTo(Ie,D)}Ue(s).call(s)}}}if(q){var Se=f+$;r.labelDatas=[],r.rects=[];for(var I=0;I<p;I++){var S,L,B,R,P,A,_,M=g[I]||{};We(M.name)||(S=M.name,L=I*c-Math.PI/2,A=I/p,B=Se*Math.cos(L),R=Se*Math.sin(L),P=He(J,S),r.labelDatas.push({ind:M}),zg(s,A),A=B+l-P.width/2,_=R+le-P.height/2,s.textBaseline===Be?_=R-P.height:s.textBaseline===Le?_=R:s.textBaseline===_e&&(_=R-P.height/2),s.textAlign===Re?A=B-P.width:s.textAlign===Pe?A=B:s.textAlign===Ae&&(A=B-P.width/2),r.rects.push({x:A+(l+se/2),y:_+(le+ue/2),width:P.width,height:P.height}),ee&&(S=ee(S,M,I,u,h)),s.font=J,s.fillStyle=Q,te?te(s,S,Se,L,{x:B,y:R},u,h):s.fillText(S,B,R))}}a&&(o=d.length,ze(a).call(a,function(e,t){var a,i;!1!==e.visible&&(a=e.color||d[t%o],i=[],s.beginPath(),ze(t=e.data).call(t,function(e,t){var o=(g[t]||{}).max||v,a=c*t-ce,e=e/(o-E)*f,o=Math.cos(a)*e,a=Math.sin(a)*e;i.push([o,a]),t?s.lineTo(o,a):s.moveTo(o,a)}),s.closePath(),s.globalAlpha=W,s.fillStyle=a,Ue(s).call(s),F&&(s.globalAlpha=1,s.strokeStyle=a,s.lineWidth=F,s.stroke()),ze(i).call(i,function(e,t){var t=g[t]||{},e=je(e,2),o=e[0],e=e[1];s.beginPath(),s.fillStyle=t.color||a,s.arc(o,e,2,0,y),Ue(s).call(s)}))}),oe)&&ze(a).call(a,function(n,r){var e,l;!1!==n.visible&&(l=n.color||d[r%o],s.font=ae,ze(e=n.data).call(e,function(e,t){var o=g[t]||{},a=o.max||v,i=c*t-ce,e=e/(a-E)*f+ie,a=Math.cos(i)*e,i=Math.sin(i)*e,e=t/p,t=n.data[t];zg(s,e),s.fillStyle=o.color||l,ne&&(t=ne(t,o,r,u,h)),s.fillText(t,a,i)}))}),s.restore()}},chartLegend:function(c,e,t,d,g){var o,f,a=t.getValue("dataSource"),p=t.getValue("colors"),v=t.getValue("orientation"),y=t.getValue("iconWidth"),x=t.getValue("iconHeight"),m=t.getValue("textGap"),i=t.getValue("hGap"),n=t.getValue("vGap"),r=t.getValue("hPadding"),l=t.getValue("vPadding"),b=t.getValue("font"),w=t.getColor("labelColor"),k=t.getColor("useItemColorOnLabel"),C=t.getColor("disabledLabelColor"),T=t.getColor("disabledIconColor"),V=t.getValue("drawIcon"),s=t.getValue("align"),u=t.getValue("vAlign"),h=t.getValue("vertical"),D=t.getValue("handleHover"),I=t.getValue("handleClick"),t=Ye(g,d,t),S=e.x,L=e.y,B=e.width,e=e.height;a&&a.length&&(B=B-2*(r=B/2<=r?B/2:r),e=e-2*(l=e/2<=l?e/2:l),S=S+r,r=L+l,o=[],ze(a).call(a,function(e){var e=He(b,e.name),t={};v===Pe||v===Re?(t.width=e.width+m+y,t.height=pc(e.height,x)):(t.width=pc(e.width,y),t.height=e.height+x+m),o.push(t)}),f=function(e,i,t){var n=t.align,r=t.vAlign,l=t.hGap,s=t.vGap,t=t.vertical,u=e.x,h=e.y,c=e.width,d=e.height,o=[],a=0,g=0,f=0,p=0;if(t){for(var v=0,y=0,x=0,m=i.length;x<m;x++){var b=i[x],w=p,p=pc(b.width,p);f+=s+b.height,a&&d<f?(v+=w+l,y=Math.max(y,f-2*s-b.height),o.push({itemCount:a,orientationSize:y}),f=p=a=y=0,x--):a++}a&&(v+=p,o.push({itemCount:a,orientationSize:f-l}))}else{for(var k=y=v=0,C=i.length;k<C;k++){var T=i[k],V=p;p=pc(T.height,p),g+=l+T.width,a&&c<g?(y+=V+s,v=Math.max(v,g-2*l-T.width),o.push({itemCount:a,orientationSize:v}),g=p=a=v=0,k--):a++}a&&(y+=p,o.push({itemCount:a,orientationSize:g-l}))}var D,I,S,L=1,B=1,e=i[0];return t?(g=n===Re?(L=-1,u+c):n===Pe?u:u+(c-v)/2,r===Be&&(B=-1),D=g,I=f,p=S=0,ze(o).call(o,function(e){var t=e.itemCount,e=e.orientationSize;I=r===_e?h+(d-e)/2:r===Be?h+d:h;for(var o=0;o<t;o++){var a=i[S];r===Be&&(I-=a.height),p=pc(a.width,p),a.x=n===Re?D-a.width:D,a.y=I,r===Be?I-=s:I+=(s+a.height)*B,S++}D+=(l+p)*L})):(n===Re?g=u+c-e.width:n===Pe&&(g=u),f=r===Be?(B=-1,h+d-e.height):r===Le?h:h+(d-y)/2,D=g,I=f,p=S=0,ze(o).call(o,function(e){var t=e.itemCount,e=e.orientationSize;D=n===Ae?u+(c-e)/2:n===Re?u+c-e:g;for(var o=0;o<t;o++){var a=i[S];p=pc(a.height,p),a.x=D,a.y=I,n===Re?D=(D+=l)+a.width:D+=(l+a.width)*L,S++}I+=(s+p)*B})),i}({x:S,y:r,width:B,height:e},o,{align:s,vAlign:u,hGap:i,vGap:n,vertical:h}),ze(a).call(a,function(e,t){var o,a,i=e.visible,n=e.name,r=f[t],l=r.x,s=r.y,u=r.width,r=r.height,h={width:y,height:x},u=(v===Le?(h.x=l+(u-y)/2,o=l+u/2,a=(h.y=s)+x+m,c.textAlign=Ae,c.textBaseline=Le):v===Be?(h.x=l+(u-y)/2,h.y=s+r-x,o=l+u/2,a=h.y-m,c.textAlign=Ae,c.textBaseline=Be):(v===Re?(h.x=l+u-y,h.y=s,o=h.x-m,a=s+r/2,c.textAlign=Re):(h.x=l,h.y=s+(r-x)/2,o=l+y+m,a=s+r/2,c.textAlign=Pe),c.textBaseline=_e),!1===i?T:p[t%p.length]);V?V(c,h,e,t,u,d,g):(c.fillStyle=u,c.fillRect(h.x,h.y,h.width,h.height)),c.font=b,c.fillStyle=k?p[t%p.length]:!1===i?C:w,c.fillText(n||t,o,a)}),t.rects=f,t.dataSource=a,t.handleHover=D,t.handleClick=I)},barChart:function(t,e,o,a,O){var i,n,s,u,h,r,c,d,g,f,p,l,v,y,x,m,b,w,k,C,T,V,D,I,E,H,S,W,L,B=o.getValue("series"),R=o.getValue("xAxis"),P=o.getValue("yAxis"),A=o.getValue("colors"),F=o.getColor("background"),N=o.getValue("backgroundIncludeAxis"),_=o.getValue("hoverDraw"),M=o.getValue("boundaryGap"),j=o.getValue("tooltipPointerType"),j={show:o.getValue("tooltip"),lineWidth:o.getValue("tooltipLineWidth"),lineColor:o.getColor("tooltipLineColor"),type:"auto"===j?M?"shadow":"line":j,formatter:o.getValue("tooltipFormatter")};B&&B.length&&(i={color:A&&A.length?A:Cf,xAxis:Pd(R,kf),yAxis:Pd(P,wf),series:B,tooltip:j,hoverDraw:_,clickBar:o.getValue("clickBar")},n={data:a,view:O,boundaryGap:M,rect:e,contentRect:If(e),valueAxis:Ji,seriesDatas:Ge(B).call(B,function(e){return!1===e.visible?[]:zn(e.data,a,O)}),seriesColors:new Array,interactiveInfo:new Object},ze(A=i.xAxis).call(A,function(e){e._axisObj=new Tf(e,i,n)}),ze(R=i.yAxis).call(R,function(e){e._axisObj=new Vf(e,i,n)}),s=i,(P=n).data,P.view,u=Ge(_=s.xAxis).call(_,function(e){return e._axisObj.boundHeight}),h=Ge(_=s.yAxis).call(_,function(e){return e._axisObj.boundWidth}),r=$i,c=P.leftAxis=[],d=P.rightAxis=[],g=P.bottomAxis=[],f=P.topAxis=[],y=v=l=p=0,ze(_=s.xAxis).call(_,function(e,t){var o;e.show&&(o=e.bodyGap,(e._axisObj.position===Le?(v+=u[t]+o,f):(y+=u[t]+o,g)).push(t))}),ze(_=s.yAxis).call(_,function(e,t){var o;e.show&&(o=e.bodyGap,(e._axisObj.position===Re?(l+=h[t]+o,d):(p+=h[t]+o,c)).push(t),r=Math.max(r,$i+e._axisObj.labelHeight/2))}),v<r&&(v=r),y<r&&(y=r),_=P.contentRect,m=x=0,P.valueAxis===Ji&&ze(w=s.xAxis).call(w,function(e){var t,o;e.axisLabel.show&&(t=e._axisObj.getValuesByValueRange(!0),o=He(e.axisLabel.font,t[t.length-1]).width/2,m<o&&(m=o),o=He(e.axisLabel.font,t[t.length-1]),x=Math.max(o.width/2,x))}),p<m&&(w=m-p,h[0]+=w,p=m),b=_.x,w=_.y,M=_.width,_=_.height,k=[],C=[],T=b,V=w,D=M-p-l,I=_-v-y,l<x&&(D=D-x+l),D=Math.max(0,D),I=Math.max(0,I),V=w+v,ze(h).call(h,function(e,t){var o=s.yAxis[t]._axisObj.position,a=s.yAxis[t].bodyGap;if(o===Re){for(var i=0,n=Oe(d).call(d,t);0<n;)i+=h[d[--n]];k.push({x:b+p+D+i+a,y:V,width:e,height:I})}else{for(var r=0,l=Oe(c).call(c,t);0<l;)r+=h[c[--l]];k.push({x:T+r,y:V,width:e,height:I})}}),T=b+p,V=w,ze(u).call(u,function(e,t){var o=s.xAxis[t]._axisObj.position,a=s.xAxis[t].bodyGap;if(o===Le){for(var i=0,n=Oe(f).call(f,t);0<n;)i+=u[f[--n]];C.push({x:T,y:V+i-a,width:D,height:e})}else{for(var r=0,l=Oe(g).call(g,t);0<l;)r+=u[g[--l]];C.push({x:T,y:V+I+v+r+a,width:D,height:e})}}),E=[],H=[],ze(M=s.series).call(M,function(e){("left"==e.renderArea?E:H).push(e)}),_={x:b+p,y:w+v,width:Math.max(0,D),height:Math.max(0,I)},0<E.length&&0<H.length?(M=[{x:b+p,y:w+v,width:Math.max(0,D)/2,height:Math.max(0,I)},{x:b+p+Math.max(0,D)/2,y:w+v,width:Math.max(0,D)/2,height:Math.max(0,I)}],P.bounds={xAxisRects:C,yAxisRects:k,bodyRect:_,bodySplitRect:M}):P.bounds={xAxisRects:C,yAxisRects:k,bodyRect:_},a&&(A=Ye(O,a,o))&&(n.hoverIndex=A.hoverIndex),F&&(N||(e=n.bounds.bodyRect),t.fillStyle=ir(t,F,e),t.fillRect(e.x,e.y,e.width,e.height)),ze(R=i.xAxis).call(R,function(e){e._axisObj.draw(t)}),ze(w=i.yAxis).call(w,function(e){e._axisObj.draw(t)}),B&&B.length&&(S=t,L=n,M=(W=i).series,P=W.hoverDraw,_=L.interactiveInfo.axisInfos=Ge(_=W.yAxis).call(_,function(e){return Ge(e=e._axisObj.axisInfos).call(e,function(e){return{position:e.position,label:e.label,series:[]}})}),L.barSeries=[],L.barCategoryGap=null,ze(M).call(M,function(e,t){!1!==e.visible&&(L.barSeries.push(e),Fe(e.barCategoryGap))&&(L.barCategoryGap=e.barCategoryGap)}),L.leftSeries=[],L.rightSeries=[],ze(M).call(M,function(e){("left"==e.renderArea?L.leftSeries:L.rightSeries).push(e)}),L.labelInfo=[],ze(M).call(M,function(e,t){mf&&mf(S,e,t,W,L)}),ze(M).call(M,function(e,t){e=e.label||{};e.show&&bf(S,e,L.labelInfo[t])}),void 0!==L.hoverIndex)&&(M=_[0][L.hoverIndex])&&(M=M.position,_=(A=L.bounds.bodyRect).height/_[0].length,M={x:A.x,y:M-_/2,width:A.width,height:_},P&&"function"==typeof P?(S.save(),P(S,M,L.data,L.view,{index:L.hoverIndex})):(S.save(),S.globalAlpha=.3,S.fillStyle=W.tooltip.lineColor,S.fillRect(M.x,M.y,M.width,M.height)),S.restore()),We(n.bounds.bodySplitRect)||(F=(N=n.bounds.bodyRect).x,e=N.y,R=N.width,B=N.height,t.beginPath(),t.moveTo(A=F+R/2,e),t.lineTo(A,e+B),t.stroke()),pr(i.tooltip,j),a)&&((_=Ye(O,a,o)).ui=n,_.option=i)},navigation:function(a,e,t,o,i){var n=Xn(t.getValue("menus"))?t.getValue("menus"):[],r=t.getValue("itemHeight"),l=(t.getValue("drawItem"),t.getValue("itemPadding")||5),s=t.getValue("iconSize")||10,u=t.getValue("iconGap")||5,h=t.getColor("childrenGap")||2,c=t.getColor("hoverColor"),d=t.getValue("showShadow"),g=t.getValue("hShadow"),f=t.getValue("vShadow"),p=t.getValue("shadowblur"),v=t.getColor("shadowColor"),y=t.getValue("font"),x=t.getColor("fontColor"),m=t.getColor("background"),b=t.getValue("bordWidth"),w=t.getColor("bordColor"),k=t.getValue("bordRadius"),C={font:y,fontColor:x,hoverColor:c,iconSize:s,iconGap:u,itemPadding:l},x=Ye(i,o,t),c=e.x,i=e.y,t=e.width,T=(e.height,{x:c,y:i,width:t,height:r}),V={height:0},D=(x.dm||(x.dm=new ht.DataModel),T.x),I=x.dm,S=[];ze(n).call(n,function(i,e){var t,o=He(y,i.name).width+2*l,o={x:D,y:T.y,width:o+s+2*u,height:T.height},n=(i._uuid||(i._uuid=tr()),I.getDataByTag(i._uuid));n||((n=new Pf(1)).setTag(i._uuid),I.add(n),i.isSelected&&I.sm().ss(n)),n.setRect(o),n.setMenuInfo(i),n.setName(i.name),n.setIcon(i.icon),S.push(i._uuid),Xn(i.children)&&ze(t=i.children).call(t,function(e,t){var o=He(y,e.name).width+2*l,a=T.height,t={x:D,y:T.y+(t+1)*a+h,width:o+s+2*u,height:a},o=(e._uuid||(e._uuid=tr()),I.getDataByTag(e._uuid));o||((o=new Pf(2)).setTag(e._uuid),I.add(o),e.isSelected&&I.sm().ss([I.getDataByTag(i._uuid),o])),o.setParent(n),o.setRect(t),o.setMenuInfo(e),o.setName(e.name),o.setIcon(e.icon),S.push(e._uuid)}),D+=o.width}),I.each(function(e){Oe(S).call(S,e.getTag())<0&&I.remove(e)}),a.save(),a.beginPath(),a.fillStyle=m,a.strokeStyle=w,xe(a,T.x,T.y,T.width,T.height,k),a.closePath(),0<b&&(a.lineWidth=b,a.stroke()),d&&(a.shadowColor=v,a.shadowBlur=p,a.shadowOffsetX=g,a.shadowOffsetY=f),Ue(a).call(a),a.restore(),I.getRoots().each(function(e,t){var o=e.getMenuInfo();e.isDrawChildren()&&(V=e.drawChildrenBg(a,m),e.eachChild(function(e,t){var o=e.getMenuInfo();e.draw(a,o,C)})),e.draw(a,o,C)}),I.a({mainMenuRect:T,ChildrenRect:V}),o&&o.a&&o.a("autoHeight",T.height+V.height+h)},timeLine:function(l,e,t,s,u){for(var o=e.x,h=e.y,c=e.height,a=e.width,i=Number(t.getValue("leftPadding")),n=Number(t.getValue("rightPadding")),r=t.getValue("scrollBarWidthAbsolute"),d=t.getValue("scrollBarWidth"),g=t.getValue("translateX"),f=t.getValue("translateY"),p=t.getValue("autoHideScrollBar"),v=t.getValue("scrollBarColor"),y=t.getValue("tickDistance"),x=t.getValue("tickTime"),m=Number(t.getValue("tickHeight")),b=t.getValue("tickLongnessFunc"),w=t.getColor("tickColorFunc"),k=t.getValue("tickWidthFunc"),C=new Date(t.getValue("startTime")).getTime(),T=new Date(t.getValue("endTime")).getTime(),V=t.getValue("tickLabelFont"),D=t.getValue("tickLabelColor"),O=t.getValue("tickLabelGap"),E=t.getValue("tickLabelVisibleFunc"),H=t.getValue("tickLabelFormatter")||function(e){return br(new Date(e),"HH:mm")},I=t.getValue("eventDraw"),S=t.getValue("timeEvents")||[],L=t.getValue("slotDraw"),B=t.getValue("timeSlots")||[],R=(l.save(),l.beginPath(),l.rect(e.x,e.y,e.width,e.height),l.clip(),C),P=i+g+o;R<=T;){l.save();var A=b(R),W=w(R);l.lineWidth=k(R),l.strokeStyle=ir(l,W,{x:P,y:h+m-A,width:1,height:A}),l.beginPath(),l.moveTo(P,h+m),l.lineTo(P,h+m-A),l.stroke(),E(R)&&(l.font=V,l.fillStyle=D,l.textAlign="center",l.textBaseline="top",l.fillText(H(R),P,h+m+Number(O))),l.restore(),P+=Number(y),R+=Number(x)}var _=i+g+o,M=y/x,e=(ze(S).call(S,function(e){var t,o,a,i=e.timestamp;e.dataInfo,(i=new Date(i).getTime())<C||T<i||(t=_+(i-C)*M,o=h+m,a=c-m,i=function(){mr(l,{width:14,height:200,fitSize:!0,comps:[{type:"shape",gradientPack:["linear",.5,0,.5,1,0,"#fff",.187,"#3f85ff",1,"rgba(63, 133, 255, 0)"],pixelPerfect:!0,points:[7.5,0,7.5,200,6.5,200,6.5,0]},{type:"shape",fillRule:"evenodd",gradientPack:["linear",.5,0,.5,1,0,"#fff",0,"#fff",1,"rgba(0, 96, 255, 0.502)"],pixelPerfect:!0,points:[14,14,7,0,0,14,14,14]}]},"centerUniform",t-7,o,14,a)},e.draw&&ht.Default.isFunction(e.draw)?e.draw(l,e,{defaultDraw:i,data:s,view:u,tickRect:{x:t,y:h,width:null,height:m},areaRect:{x:t,y:o,width:null,height:a}}):I&&ht.Default.isFunction(I)?I(l,e,{defaultDraw:i,data:s,view:u,tickRect:{x:t,y:h,width:null,height:m},areaRect:{x:t,y:o,width:null,height:a}}):i())}),ze(B).call(B,function(e){e.dataInfo;function t(){l.fillStyle=ir(l,{type:"linear",colorStops:[{offset:0,color:"rgba(48, 128, 255, 0)"},{offset:1,color:"rgba(31,120,255,0.6)"}]},{x:i,y:n,width:r,height:m}),l.fillRect(i,n,r,m)}var o=new Date(e.startTime).getTime(),a=new Date(e.endTime).getTime(),i=_+(o-C)*M,n=h,r=_+(a-C)*M-i;e.draw&&ht.Default.isFunction(e.draw)?e.draw(l,e,{defaultDraw:t,data:s,view:u,tickRect:{x:i,y:n,width:r,height:rectHeight},areaRect:{x:i,y:n+m,width:r,height:c-m}}):L&&ht.Default.isFunction(L)?L(l,e,{x:i,y:n,width:null,height:rectHeight},{defaultDraw:t,data:s,view:u}):t()}),Ye(u,s,t)),S=(T-C)/x*y+i+n,B=c,t=u&&u.getZoom?u.getZoom():1,i=r?d/t:d;e&&(e.translateX=g,e.translateY=f,e.autoHideScrollBar=p),Pl(l,{x:o,y:h,width:a,height:c},{width:S,height:B},{x:g,y:f},{visible:!p||e.scrollBarVisible,color:v,gap:0,barWidth:i},e||{}),l.restore()},gif:function(e,t,o,a,i){var n,r,l,s,u,h,c,d;a&&(n=o.getValue("gifPath"))&&(o=Ye(i,a,o),r=t.x,l=t.y,s=t.width,t=t.height,wy(n)&&void 0===wy(n).isLoaded?(u=wy(n),a&&o&&((!o._frame||o._frame>=u.length)&&(o._frame=0),h=Nd(),o._lastTime||(o._lastTime=h),c=o._lastTime,10*u[o._frame].delay<=h-c&&(o._frame=(o._frame+1)%u.length,o._lastTime=h),c=u[o._frame||0].image,mr(e,c,"fill",r,l,s,t),a)&&i&&Vn(function(){a.iv()})):wy(n)&&!1===wy(n).isLoaded()?(d=wy(n).onLoaded,wy(n).onLoaded=function(){d(),a.iv()}):wy(n)||ky(n,function(){a.iv()}))}},r.dragSliderInteractor=new k,r.pieInteractor=new ce,r.buttonInteractor=new $u,r.inputInteractor=new Da,r.textAreaInteractor=new La,r.radioInteractor=new su,r.checkboxInteractor=new n,r.colorPickerInteractor=new wc,r.dateTimePickerInteractor=new kc,r.dateTimePickerInteractor2=new Cc,r.comboBoxInteractor=new Ec,r.tableInteractor=new Hc,r.sliderInteractor=new Fc,r.rangeSliderInteractor=new Nc,r.multipleComboBoxInteractor=new jc,r.treeInteractor=new Gc,r.treeTableInteractor=new Yc,r.chartInteractor=new Jc,r.inputNumberInteractor=new $,r.dateRangePickerInteractor=new $c,r.dateRangePickerInteractor2=new Qc,r.radioButtonInteractor=new id,r.carouselInteractor=new ud,r.timeAxisChartInteractor=new Ie,r.carouselInteractor2=new hd,r.paginationInteractor=new pd,r.textBoxInteractor=new vd,r.radioInteractor2=new o,r.valueAxisChartInteractor=new yd,r.checkGroupInteractor=new Fg,r.parallelogramTabInteractor=new jg,r.chartLegendInteractor=new t,r.barChartInteractor=new Df,r.radarInteractor=new qg,r.navigationInteractor=new qc,r.timeLineInteractor=new Lf,r.Color=Yi,r.ListView=Vc,r.ListDropDown=Ic,r.getVectorInfo=Ye,r.getVectorInstances=function(e,t){e=gr(e,t);return e&&e.vectorInfos?Ge(t=e.vectorInfos).call(t,function(e){return e.instance}):[]},r.caluMultilineSize=function(e,t){var o=e.a("ht.content"),a=e.a(Gi.FONT),i=e.a(Gi.LINE_HEIGHT),e=e.a(Gi.PADDING),e=je(Pi(e),4),n=e[0],r=e[1],l=e[2],e=e[3],o=o.split(/\n/),s=0;return ze(o).call(o,function(e){e=He(a,e);s=Math.max(s,e.width)}),{width:s+e+r,height:o.length*i+n+l}},r.caluRichTextPaneSize=function(n,r){var e=n.a("ht.content"),t=n.a("ht.borderWidth")||1,o=n.a("ht.padding"),a=n.a("ht.showArrow"),i=n.a("ht.arrowOrientation"),l=n.a("ht.vGap"),s=n.a("ht.hGap"),u=n.a("ht.font"),o=je(Pi(o),4),h=o[0],c=o[1],d=o[2],o=o[3]+c+t,c=h+d+t,g=(a&&(i===Pe||i===Re?o+=10:c+=10),0),f=0;return e&&(ze(e).call(e,function(e,t){var a=0,i=(e.length-1)*s;ze(e).call(e,function(e,t){var o=zn(e.text,n,r),e=He(e.font||u,o);a=Math.max(a,e.height),i+=e.width}),g=Math.max(g,i),f+=a}),f+=(e.length-1)*l),{width:o+=g,height:c+=f}},r.setFormData=function i(n,e,r){return(e?e.getChildren():n.dm().getDatas()).each(function(e){var t=e.a(Gi.FORM_ITEM_NAME),o=e.a(Gi.FORM_ITEM_GROUP),a=r[t];if(t)void 0!==a&&e.a(Gi.VALUE,a);else if(o){if(void 0===(a=r[o]))return;e.__inputType===qi?e.a(Gi.CHECKED,e.a(Gi.VALUE)===a):e.__inputType===Ki&&e.a(Gi.CHECKED,0<=Oe(a).call(a,e.a(Gi.VALUE)))}e.hasChildren()&&i(n,e,r)}),r},r.breakText=Ei,r.parseCSSArray=Ai,r.openColorDropDown=Sr,r.openDateTimeDropDown=Lr,r.getFormData=function(e,t){var r={},l=t?t.getChildren():e.dm().getDatas();return l.each(function(e){var t,o=e.a(Gi.FORM_ITEM_NAME),a=e.a(Gi.FORM_ITEM_GROUP);if(o)r[o]=An(e);else if(a&&!r[Gi.FORM_ITEM_GROUP])if(e.__inputType===qi)for(var i=0;i<l.length;i++){var n=l.get(i);if(a===n.a(Gi.FORM_ITEM_GROUP)&&n.a(Gi.CHECKED)){r[a]=An(n);break}}else e.__inputType===Ki&&(t=[],l.each(function(e){a===e.a(Gi.FORM_ITEM_GROUP)&&e.a(Gi.CHECKED)&&t.push(An(e))}),r[a]=t)}),r},r.selectFile=_n,r.tooltip=B,r.getVersion=function(){return Zr},r.closeAllDropDown=function(){ze(kr).call(kr,function(e){e.close&&e.close()})},r.drawComp=function(e,t,o,a,i,n){var t=function(e,t){var o=e.draw,e=e.tag,a=Ee(a="".concat(o,".")).call(a,e),i=xf[a];if(!i){var n=vf(o),o=yf(o),r=o.width,l=o.height,s=o.events,u={type:n,prefix:e,pixelPerfect:!0,rect:[0,0,r,l]};if(s)for(var h in s)u[h]=s[h];if(t)for(var c in t)u[c]=t[c];xf[a]=i={width:r,height:l,fitSize:!0,comps:[u]}}return i}(t,n),n=o.x,r=o.y,l=o.width,o=o.height;ht.Default.drawImage(e,t,n,r,l,o,a,i,a&&a.s("body.color"))},r.drawVector=function(e,t,o,a,i,n){var t=function(e,t){var o=e.draw,e=e.tag,a=Ee(a="".concat(o,".")).call(a,e),i=xf[a];if(!i){var n={type:"image",name:o,prefix:e,pixelPerfect:!0,rect:[0,0,100,100]};if(t)for(var r in t)n[r]=t[r];xf[a]=i={width:100,height:100,fitSize:!0,comps:[n]}}return i}(t,n),n=o.x,r=o.y,l=o.width,o=o.height;ht.Default.drawImage(e,t,n,r,l,o,a,i,a&&a.s("body.color"))},r.setConfig=function(e,t){fn[e]=t},r.getGif=wy,r.getGifMap=function(){return Ty},r.setGif=ky,r.handleGifLoaded=function(){},r.handleUnfoundGif=function(){},r}();